Re: Kernel Oops with kvm 66 running WinXP

Avi Kivity
2008-05-05T07:11:03Z

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Michal Ludvig wrote:
>
> Hi again, just wanted to let you know that I still get this Oops with
> kvm-68. It comes a bit later, not during the boot but after the XP
> desktop comes up. As there were some changes in kernel/x86_emulate.c
> the patch you provided for kvm-66 can't be applied anymore.
>
> loaded kvm module (kvm-68)
> kvm: emulating exchange as write
> Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
> [<ffffffff88373b4a>] :kvm:x86_emulate_insn+0x3fa/0x4240

Please apply the attached patch, and post 'dmesg | grep writeback'.

--
error compiling committee.c: too many arguments to function

[-- Attachment #2: debug-writeback-oops.patch --]
[-- Type: text/x-patch, Size: 463 bytes --]

diff --git a/kernel/x86_emulate.c b/kernel/x86_emulate.c
index f2a696d..7f5a99f 100644
--- a/kernel/x86_emulate.c
+++ b/kernel/x86_emulate.c
@@ -1202,6 +1202,13 @@ static inline int writeback(struct x86_emulate_ctxt *ctxt,

switch (c->dst.type) {
case OP_REG:
+
+ if (!c->dst.ptr) {
+ printk("writeback: b %02x mordm %02x\n",
+ c->b, c->modrm);
+ return 0;
+ }
+
/* The 4-byte case *is* correct:
* in 64-bit mode we zero-extend.
*/

[-- Attachment #3: Type: text/plain, Size: 320 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

[-- Attachment #4: Type: text/plain, Size: 158 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net