From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: Kernel Oops with kvm 66 running WinXP Date: Mon, 05 May 2008 10:11:03 +0300 Message-ID: <481EB307.4070604@qumranet.com> References: <48131C2A.20307@logix.net.nz> <4814772F.7030708@qumranet.com> <48148382.4040403@qumranet.com> <481E408D.4040501@logix.net.nz> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000505070403030702030909" Cc: kvm-devel@lists.sourceforge.net To: Michal Ludvig Return-path: In-Reply-To: <481E408D.4040501@logix.net.nz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------000505070403030702030909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: > [] :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 --------------000505070403030702030909 Content-Type: text/x-patch; name="debug-writeback-oops.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="debug-writeback-oops.patch" 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. */ --------------000505070403030702030909 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --------------000505070403030702030909 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------000505070403030702030909--