kvm-59 doesn't work
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
exception 13 (0)
rax 0000000000000000 rbx 0000000000000000 rcx 0000000000000000 rdx 0000000000000600
rsi 0000000000000000 rdi 0000000000000000 rsp 0000000000000000 rbp 0000000000000000
r8 0000000000000000 r9 0000000000000000 r10 0000000000000000 r11 0000000000000000
r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000
rip 0000000000010000 rflags 00033046
cs f000 (000f0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ds 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
es 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)
tr 0000 (08c00000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)
ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)
gdt 0/ffff
idt 0/ffff
cr0 60000010 cr2 0 cr3 0 cr4 0 cr8 0 efer 0
code: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 --> fc f6 86 11 02 00 00 40 75 10 fa b8 18 00 00 00 8e d8 8e c0 8e e0 8e e8 8e d0 8d a6 e8 01 Aborted (core dumped)
With kvm-49 user land it works just fine.
Host is Intel-VT (Core2), kernel 2.6.24-rc5-git5 with the KVM modules out of the source tree.
-Andi
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 4 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Yes, I think -kernel is broken.
Izik?
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 9 lines · Avi Kivity
Quoted 4 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Yes, I think -kernel is broken.
Izik?
wasnt it was fixed with the qemu_ram_alloc(0xa0000) patch ??? (i remembred someone sent patch to fix it)
i will check it tomorrow....
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 11 lines · Anthony Liguori
Quoted 9 lines · Avi Kivity
Quoted 4 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Yes, I think -kernel is broken.
Quoted 7 lines
If you are using a guest with more than 3.75GB or so. The
load_kernelfunction usesphys_ram_base+ addr and that assumption is violated in KVM with guests > ~3.75GB of memory. We either need to allocate memory for the hole and never touch it or changeload_kernelto usecpu_physical_memory_rw. I know we discussed this before but I don't remember if we came to a consensus about what the correct fix is?
we can do munmap on the pci hole memory area, btw Anthony virtio will need this too right?
Quoted 7 lines
Regards,
Anthony Liguori
Quoted 3 lines
Izik?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 10 lines · Avi Kivity
Quoted 5 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Yes, I think -kernel is broken.
If you are using a guest with more than 3.75GB or so. The load_kernel function uses phys_ram_base + addr and that assumption is violated in KVM with guests > ~3.75GB of memory. We either need to allocate memory for the hole and never touch it or change load_kernel to use cpu_physical_memory_rw. I know we discussed this before but I don't remember if we came to a consensus about what the correct fix is?
Regards,
Anthony Liguori
Quoted 3 lines
Izik?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 9 lines · Izik Eidus
Quoted 7 lines · Avi Kivity
Quoted 5 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Quoted 8 lines
Quoted 4 lines
Yes, I think -kernel is broken.
Izik?
wasnt it was fixed with the
qemu_ram_alloc(0xa0000)patch ??? (i remembred someone sent patch to fix it)
Yes, but that only fixes it for guests that don't cross the 4GB boundary.
Regards,
Anthony Liguori
Quoted 12 lines
i will check it tomorrow....
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 6 lines
If you are using a guest with more than 3.75GB or so. The
load_kernelfunction usesphys_ram_base+ addr and that assumption is violated in KVM with guests > ~3.75GB of memory. We either need to allocate memory for the hole and never touch it or changeload_kernelto usecpu_physical_memory_rw. I know we discussed this before but I don't remember if we came to a consensus about what the correct fix is?
I used the default 128MB of RAM and the kernel also wasn't that big and also not linked to a high address (everything definitely < 16MB)
-andi
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 8 lines · Andi Kleen
Quoted 7 lines
If you are using a guest with more than 3.75GB or so. The
load_kernelfunction usesphys_ram_base+ addr and that assumption is violated in KVM with guests > ~3.75GB of memory. We either need to allocate memory for the hole and never touch it or changeload_kernelto usecpu_physical_memory_rw. I know we discussed this before but I don't remember if we came to a consensus about what the correct fix is?
Quoted 4 lines
I used the default 128MB of RAM and the kernel also wasn't that big and also not linked to a high address (everything definitely < 16MB)
Just tried it and it works without a problem. Using kvm*.git though, not kvm-59.
Are you using the modules that come with kvm or from an upstream kernel? (which?)
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 5 lines · Avi Kivity
Quoted 4 lines · Andi Kleen
Quoted 3 lines
Are you using the modules that come with kvm or from an upstream kernel? (which?)
Quoted 8 lines
Quoted 1 line
kvm from 2.6.24-rc5-gitXXX upstream kernels (see my original mail)
This points the finger at the memory allocation backward compatibility logic.
Izik, can you take a look there?
yes i will look on this tomorrow (as i said) (what weird about it that the new code is actualy protected by:kvm_qemu_check_extension(KVM_CAP_USER_MEMORY) call, so it shouldnt run
i will see it tomorrow.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 2 lines
Are you using the modules that come with kvm or from an upstream kernel? (which?)
kvm from 2.6.24-rc5-gitXXX upstream kernels (see my original mail)
-Andi
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 6 lines · Andi Kleen
Quoted 3 lines
Are you using the modules that come with kvm or from an upstream kernel? (which?)
kvm from 2.6.24-rc5-gitXXX upstream kernels (see my original mail)
This points the finger at the memory allocation backward compatibility logic.
Izik, can you take a look there?
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
FWIW it seems things are broken even without -kernel in -59 too. If I try to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.
-Andi
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Re: kvm-59 doesn't work II
In reply to a message not in the archive... and eventually it oopsed:
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: [<ffffffff8822c833>] :kvm:x86_emulate_memop+0x2c62/0x4527 PGD 11c8ae067 PUD 0 Oops: 0002 [1] SMP CPU 0 Modules linked in: xfrm_user xfrm4_tunnel af_key xfs kvm_intel kvm usblp deflate zlib_deflate zlib_inflate twofish_x86_64 twofish_common des_generic md5 sha1_ge
neric tunnel4 ipcomp esp4 ah4 cifs sha256_generic serpent pppoe pppox ppp_generi c slhc autofs4 snd_pcm_oss snd_mixer_oss snd_seq ipt_MASQUERADE iptable_nat nf_n at_sip nf_conntrack_sip nf_nat_ftp nf_nat_irc nf_nat ip6t_LOG ip6t_REJECT ip6tab le_filter ip6_tables xt_tcpudp nf_conntrack_ipv4 xt_state nf_conntrack_ftp nf_co nntrack_irc cbc nf_conntrack blkcipher cpufreq_conservative ipt_LOG ipt_REJECT i ptable_filter ip_tables dm_crypt x_tables binfmt_misc aes_x86_64 eeprom lm85 hwm on_vid snd_usb_audio pl2303 snd_usb_lib usbserial snd_rawmidi appledisplay snd_h da_intel snd_seq_device snd_hwdep snd_pcm snd_timer snd snd_page_alloc i2c_i801 i2c_core
Pid: 10723, comm: qemu-system-x86 Not tainted 2.6.24-rc5-git5-BASIL #1
RIP: 0010:[<ffffffff8822c833>] [<ffffffff8822c833>] :kvm:x86_emulate_memop+0x2c 62/0x4527 RSP: 0018:ffff81011d575738 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000044 RDX: 0000000000000000 RSI: ffff81011d5757d8 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000011b4b000 R09: 0000000000000001 R10: 00007fff581ec280 R11: ffffffff8823c388 R12: 0000000000000031 R13: 0000000000000000 R14: ffff81011d575908 R15: 0000000000000000 FS: 00002ac9553fd6e0(0000) GS:ffffffff80761000(0000) knlGS:0000000000000000 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010ef6e000 CR4: 00000000000026e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400 Process qemu-system-x86 (pid: 10723, threadinfo ffff81011d574000, task ffff81009 e5d6000) Stack: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ffffffff88237d20 0300000000000040 0000000000000000 030000000000004e 0000000000000000 0000000000000000 0000000000000000 0000000000000000 Call Trace: [<ffffffff88224a7b>] :kvm:emulate_instruction+0xf6/0x21a [<ffffffff8823c809>] :kvm_intel:handle_exception+0x19f/0x210 [<ffffffff882250d4>] :kvm:kvm_vcpu_ioctl_run+0x29c/0x3ad [<ffffffff882252f2>] :kvm:kvm_vcpu_ioctl+0x10d/0xd7c [<ffffffff80291a09>] do_ioctl+0x21/0x6b [<ffffffff80291c96>] vfs_ioctl+0x243/0x25c [<ffffffff80291ceb>] sys_ioctl+0x3c/0x5d [<ffffffff8020be5e>] system_call+0x7e/0x83 [<00002ac9538b8b57>] Code: 66 89 10 eb 7b 8b 94 24 28 01 00 00 48 8b 84 24 38 01 00 00 RIP [<ffffffff8822c833>] :kvm:x86_emulate_memop+0x2c62/0x4527 RSP <ffff81011d575738>
CR2: 0000000000000000
-Andi
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Hi Andi,
Please give us the _complete_ command line: how do you launch Qemu/KVM, and which Host and Guest OSes are?
Signature · 7 lines
-Alexey Eremenko "Technologov" ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 19 lines · Izik Eidus
Quoted 11 lines · Anthony Liguori
Quoted 9 lines · Avi Kivity
Quoted 4 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Yes, I think -kernel is broken.
Quoted 7 lines
If you are using a guest with more than 3.75GB or so. The
load_kernelfunction usesphys_ram_base+ addr and that assumption is violated in KVM with guests > ~3.75GB of memory. We either need to allocate memory for the hole and never touch it or changeload_kernelto usecpu_physical_memory_rw. I know we discussed this before but I don't remember if we came to a consensus about what the correct fix is?
Quoted 2 lines
we can do munmap on the pci hole memory area,
btw Anthony virtio will need this too right?
Yup. I don't think you want to munmap memory allocated by glibc.
I think a better thing to do would be to madvise(MADV_DONTNEED) although I don't think it's strictly needed. If you never touch the memory, then does it really matter?
Regards,
Anthony Liguori
Quoted 8 lines
Quoted 7 lines
Regards,
Anthony Liguori
Quoted 3 lines
Izik?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 21 lines · Anthony Liguori
Quoted 20 lines · Izik Eidus
Quoted 19 lines · Anthony Liguori
Quoted 9 lines · Avi Kivity
Quoted 4 lines · Andi Kleen
When I try my 64bit kernel with -kernel ... on kvm-59 I get before the kernel outputs anything:
Yes, I think -kernel is broken.
If you are using a guest with more than 3.75GB or so. The
load_kernelfunction usesphys_ram_base+ addr and that assumption is violated in KVM with guests > ~3.75GB of memory. We either need to allocate memory for the hole and never touch it or changeload_kernelto usecpu_physical_memory_rw. I know we discussed this before but I don't remember if we came to a consensus about what the correct fix is?
Quoted 4 lines
Quoted 2 lines
we can do munmap on the pci hole memory area,
btw Anthony virtio will need this too right?Yup. I don't think you want to munmap memory allocated by glibc.
i was thinking about allocate the memory with mmap instead of the qemu qemu_malloc...
Quoted 4 lines
I think a better thing to do would be to
madvise(MADV_DONTNEED)although I don't think it's strictly needed. If you never touch the memory, then does it really matter?
why to keep the virtual address size of a program 300mb larger than it really is?
Quoted 14 lines
Regards,
Anthony Liguori
Quoted 8 lines
Quoted 7 lines
Regards,
Anthony Liguori
Quoted 3 lines
Izik?
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 5 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.
Yes, 6b8bb99a9cde386d72b4b7c22b92f4bdec333dab in kvm-userspace.git ought to fix it.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 9 lines · Avi Kivity
Quoted 5 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.
Yes,
6b8bb99a9cde386d72b4b7c22b92f4bdec333dabin kvm-userspace.git ought to fix it.
Thanks will try later. How about the oops in 2.6.24 I reported though?
-Andi
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 10 lines · Andi Kleen
Quoted 8 lines · Avi Kivity
Quoted 6 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.
Quoted 6 lines
Quoted 3 lines
Yes,
6b8bb99a9cde386d72b4b7c22b92f4bdec333dabin kvm-userspace.git ought to fix it.Thanks will try later. How about the oops in 2.6.24 I reported though?
Will investigate, of course. Right now using my tglx timeslice to do -rt integration.
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
Quoted 10 lines · Andi Kleen
Quoted 8 lines · Avi Kivity
Quoted 6 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.
Quoted 8 lines
Quoted 2 lines
Yes,
6b8bb99a9cde386d72b4b7c22b92f4bdec333dabin kvm-userspace.git ought to fix it.Thanks will try later. How about the oops in 2.6.24 I reported though?
-Andi
the bellow patch should fix this opss
(it is targeted for 2.6.24-rc7)
Signature · 1 line
woof.
Quoted 1 line
From
cb019c68bea9955d553c3ef6946e3abed357f1c2Mon Sep 17 00:00:00 2001
From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/[email protected]>
Date: Wed, 23 Jan 2008 15:16:26 +0200
Subject: [PATCH] KVM: x86 emulator: fix decoding of registers to dst and src in case of
instructions that declared as SrcMem or DstMem,
right now for instructions that declared as SrcMem or DstMem we dont decode the registers for dst and src.
--- drivers/kvm/x86_emulate.c | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-)
drivers/kvm/x86_emulate.c +30 -1
@@ -830,7 +830,21 @@ done_prefixes:*/ if ((d & ModRM) && modrm_mod ==3 ) { src.type =OP_REG ; -break ; + src.ptr =decode_register (modrm_reg, _regs,0 ); +switch ((src.bytes = op_bytes)) { +case 1 : + src.val = src.orig_val = *(u8 *) src.ptr; +break ; +case 2 : + src.val = src.orig_val = *(u16 *) src.ptr; +break ; +case 4 : + src.val = src.orig_val = *(u32 *) src.ptr; +break ; +case 8 : + src.val = src.orig_val = *(u64 *) src.ptr; +break ; + } } src.type =OP_MEM ; src.ptr = (unsigned long *)cr2;
@@ -906,6 +920,21 @@ done_prefixes:*/ if ((d & ModRM) && modrm_mod ==3 ) { dst.type =OP_REG ; + dst.ptr =decode_register (modrm_reg, _regs,0 ); +switch ((dst.bytes = op_bytes)) { +case 1 : + dst.val = *(u8 *)dst.ptr; +break ; +case 2 : + dst.val = *(u16 *)dst.ptr; +break ; +case 4 : + dst.val = *(u32 *)dst.ptr; +break ; +case 8 : + dst.val = *(u64 *)dst.ptr; +break ; + }break ; }if (d & BitOp) {
Signature · 1 line
1.5.3.6
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 14 lines · Izik Eidus
Quoted 13 lines · Andi Kleen
Quoted 10 lines · Avi Kivity
Quoted 6 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.
Yes,
6b8bb99a9cde386d72b4b7c22b92f4bdec333dabin kvm-userspace.git ought to fix it.
Quoted 8 lines
Quoted 5 lines
Thanks will try later. How about the oops in 2.6.24 I reported though?
-Andi
the bellow patch should fix this opss
(it is targeted for 2.6.24-rc7)
sorry i forgat one break in this patch
this is the fixed patch.
Signature · 1 line
woof.
commit c481bc1108ebf293b7ea23c478378f360ef51758
Author: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/[email protected]> Date: Wed Jan 23 15:16:26 2008 +0200
KVM: x86 emulator: fix decoding of registers to dst and src in case of instructions that declared as SrcMem or DstMem,
right now for instructions that declared as SrcMem or DstMem we dont decode the registers for dst and src.
drivers/kvm/x86_emulate.c +30 -0
@@ -830,6 +830,21 @@ done_prefixes:*/ if ((d & ModRM) && modrm_mod ==3 ) { src.type =OP_REG ; + src.ptr =decode_register (modrm_reg, _regs,0 ); +switch ((src.bytes = op_bytes)) { +case 1 : + src.val = src.orig_val = *(u8 *) src.ptr; +break ; +case 2 : + src.val = src.orig_val = *(u16 *) src.ptr; +break ; +case 4 : + src.val = src.orig_val = *(u32 *) src.ptr; +break ; +case 8 : + src.val = src.orig_val = *(u64 *) src.ptr; +break ; + }break ; } src.type =OP_MEM ;
@@ -906,6 +921,21 @@ done_prefixes:*/ if ((d & ModRM) && modrm_mod ==3 ) { dst.type =OP_REG ; + dst.ptr =decode_register (modrm_reg, _regs,0 ); +switch ((dst.bytes = op_bytes)) { +case 1 : + dst.val = *(u8 *)dst.ptr; +break ; +case 2 : + dst.val = *(u16 *)dst.ptr; +break ; +case 4 : + dst.val = *(u32 *)dst.ptr; +break ; +case 8 : + dst.val = *(u64 *)dst.ptr; +break ; + }break ; }if (d & BitOp) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 31 lines · Izik Eidus
Quoted 16 lines · Izik Eidus
Quoted 15 lines · Andi Kleen
Quoted 12 lines · Avi Kivity
Quoted 7 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try
to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.Yes,
6b8bb99a9cde386d72b4b7c22b92f4bdec333dabin kvm-userspace.git ought to fix it.Quoted 8 lines
Quoted 5 lines
Thanks will try later. How about the oops in 2.6.24 I reported though?
-Andi
the bellow patch should fix this opss
(it is targeted for 2.6.24-rc7)sorry i forgat one break in this patch
this is the fixed patch.if ((d & ModRM) && modrm_mod == 3) { src.type = OP_REG;
[snip]
Quoted 4 lines
break;
}
src.type = OP_MEM;So src.type is OP_MEM and not OP_REG... is it what you want ?
Laurent
Signature · 13 lines
----------------- [email protected] ------------------ "La perfection est atteinte non quand il ne reste rien à ajouter mais quand il ne reste rien à enlever." Saint Exupéry ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 32 lines · Laurent Vivier
Quoted 25 lines · Izik Eidus
Quoted 16 lines · Izik Eidus
Quoted 15 lines · Andi Kleen
Quoted 12 lines · Avi Kivity
Quoted 7 lines · Andi Kleen
FWIW it seems things are broken even without -kernel in -59 too. If I try
to boot an existing image with just -hda ... the VGA screen just stays black while the process runs at 99% CPU. Again with -49 it works fine.Yes,
6b8bb99a9cde386d72b4b7c22b92f4bdec333dabin kvm-userspace.git ought to fix it.Quoted 8 lines
Quoted 5 lines
Thanks will try later. How about the oops in 2.6.24 I reported though?
-Andi
the bellow patch should fix this opss
(it is targeted for 2.6.24-rc7)Quoted 6 lines
sorry i forgat one break in this patch
this is the fixed patch.if ((d & ModRM) && modrm_mod == 3) { src.type = OP_REG;
Quoted 7 lines
[snip]
Quoted 4 lines
break; } src.type = OP_MEM;So src.type is
OP_MEMand notOP_REG... is it what you want ?
Sorry, in fact it is OP_REG, and it is correct...
Laurent
Signature · 13 lines
----------------- [email protected] ------------------ "La perfection est atteinte non quand il ne reste rien à ajouter mais quand il ne reste rien à enlever." Saint Exupéry ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
Quoted 7 lines · Izik Eidus
Quoted 4 lines
Quoted 1 line
the bellow patch should fix this opss
(it is targeted for 2.6.24-rc7)sorry i forgat one break in this patch
this is the fixed patch.
Thanks, queued for 2.6.24.
Signature · 7 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/