From: Avi Kivity <avi@qumranet.com>
To: Thomas Tuttle <thinkinginbinary@gmail.com>
Cc: Avi Kivity <avi@qumranet.com>, Andrew Morton <akpm@osdl.org>,
Linux kernel mailing list <linux-kernel@vger.kernel.org>,
Yaniv Kamay <yaniv@qumranet.com>
Subject: Re: 2.6.19-rc6-mm2
Date: Sun, 03 Dec 2006 10:46:33 +0200 [thread overview]
Message-ID: <45728EE9.1060208@qumranet.com> (raw)
In-Reply-To: <456D1807.1000603@qumranet.com>
[-- Attachment #1: Type: text/plain, Size: 978 bytes --]
Avi Kivity wrote:
> Andrew Morton wrote:
>> On Tue, 28 Nov 2006 19:24:45 -0500
>> Thomas Tuttle <thinkinginbinary@gmail.com> wrote:
>>
>>
>>> I've found a couple of bugs so far...
>>>
>>> 1. I did `modprobe kvm' and then tried running a version of the KVM
>>> Qemu
>>> compiled for a different kernel. My mistake. But I got an oops:
>>>
>>> BUG: unable to handle kernel NULL pointer dereference at virtual
>>> address 00000008
>>> Code: 14 0f 87 77 02 00 00 8b 0c b5 00 15 20 f9 85 c9 0f 84 68 02 00
>>> 00 89 ea 89 f8 ff d1 85 c0 0f 84 4c 02 00 00 89 f8 e8 31 e9 ff ff
>>> <65> a1 08 00 00 00 8b 40 04 8b 40 08 a8 04 0f 85 ae 02 00 00 e8
>>> EIP: [<f91f9c3f>] kvm_vmx_return+0xef/0x4d0 [kvm] SS:ESP 0068:e5a4fd54
>>>
>>>
>
> 65 a1 08 00 00 00 mov %gs:0x8,%eax
>
> kvm isn't restoring gs properly.
>
> I'll look into it.
This comes from the pda patches.
Does the attached patch fix it?
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: kvm-load-i386-segment-bases.patch --]
[-- Type: text/x-patch, Size: 1057 bytes --]
diff -X /home/avi/kvm/linux-2.6/Documentation/dontdiff --exclude=Makefile -ru /home/avi/kvm/linux-2.6/drivers/kvm/kvm_main.c /home/avi/kvm-release/kernel/kvm_main.c
--- linux-2.6/drivers/kvm/kvm_main.c 2006-12-03 10:43:09.000000000 +0200
+++ linux-2.6/drivers/kvm/kvm_main.c 2006-12-03 10:42:36.000000000 +0200
@@ -90,6 +90,9 @@
typedef unsigned long ul;
unsigned long v;
+ if (selector == 0)
+ return 0;
+
asm ("sgdt %0" : "=m"(gdt));
table_base = gdt.base;
diff -X /home/avi/kvm/linux-2.6/Documentation/dontdiff --exclude=Makefile -ru /home/avi/kvm/linux-2.6/drivers/kvm/vmx.c /home/avi/kvm-release/kernel/vmx.c
--- linux-2.6/drivers/kvm/vmx.c 2006-12-03 10:43:09.000000000 +0200
+++ linux-2.6/drivers/kvm/vmx.c 2006-12-03 10:41:44.000000000 +0200
@@ -1702,6 +1702,9 @@
#ifdef __x86_64__
vmcs_writel(HOST_FS_BASE, read_msr(MSR_FS_BASE));
vmcs_writel(HOST_GS_BASE, read_msr(MSR_GS_BASE));
+#else
+ vmcs_writel(HOST_FS_BASE, segment_base(fs_sel));
+ vmcs_writel(HOST_GS_BASE, segment_base(gs_sel));
#endif
if (vcpu->irq_summary &&
next prev parent reply other threads:[~2006-12-03 8:46 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-28 10:02 2.6.19-rc6-mm2 Andrew Morton
2006-11-28 10:08 ` 2.6.19-rc6-mm2 Akinobu Mita
2006-11-28 11:35 ` 2.6.19-rc6-mm2 Mariusz Kozlowski
2006-11-28 11:41 ` 2.6.19-rc6-mm2 Mariusz Kozlowski
2006-11-28 22:30 ` 2.6.19-rc6-mm2 Greg KH
2006-11-29 9:06 ` 2.6.19-rc6-mm2 Kay Sievers
2006-11-29 22:54 ` 2.6.19-rc6-mm2 Andy Whitcroft
2006-11-29 23:09 ` 2.6.19-rc6-mm2 Kay Sievers
2006-11-28 21:22 ` 2.6.19-rc6-mm2 Miles Lane
2006-11-28 21:59 ` 2.6.19-rc6-mm2 Vivek Goyal
2006-11-29 0:24 ` 2.6.19-rc6-mm2 Thomas Tuttle
2006-11-29 0:53 ` 2.6.19-rc6-mm2 Andrew Morton
2006-11-29 5:17 ` 2.6.19-rc6-mm2 Avi Kivity
2006-11-29 14:10 ` 2.6.19-rc6-mm2 Avi Kivity
2006-12-03 8:46 ` Avi Kivity [this message]
2006-11-29 0:58 ` 2.6.19-rc6-mm2 Andrew Morton
2006-11-29 1:08 ` 2.6.19-rc6-mm2 Jean Tourrilhes
2006-11-29 0:59 ` 2.6.19-rc6-mm2 Jiri Kosina
2006-12-05 1:33 ` 2.6.19-rc6-mm2 Neil Brown
2006-12-05 4:07 ` 2.6.19-rc6-mm2 Neil Brown
2006-12-05 7:48 ` 2.6.19-rc6-mm2 Jiri Kosina
2006-12-05 22:13 ` 2.6.19-rc6-mm2 Jiri Kosina
2006-12-08 1:31 ` 2.6.19-rc6-mm2 Neil Brown
2006-12-08 12:35 ` 2.6.19-rc6-mm2 Jiri Kosina
2006-11-29 10:04 ` [-mm patch] #if 0 fs/gfs2/acl.c:gfs2_check_acl() Adrian Bunk
2006-11-29 10:14 ` Steven Whitehouse
2006-11-29 12:42 ` [PATCH] compile fix on x86 without X86_LOCAL_APIC (was 2.6.19-rc6-mm2) Jiri Kosina
2006-11-29 20:57 ` Andrew Morton
2006-11-29 19:54 ` 2.6.19-rc6-mm2: uli526x only works after reload Rafael J. Wysocki
2006-11-29 20:08 ` Rafael J. Wysocki
2006-11-29 21:30 ` Andrew Morton
2006-11-29 21:31 ` Rafael J. Wysocki
2006-11-29 23:08 ` Rafael J. Wysocki
2006-11-29 23:26 ` Andrew Morton
2006-11-30 1:04 ` Rafael J. Wysocki
2006-11-30 2:18 ` Andrew Morton
2006-12-01 1:20 ` Greg KH
2006-12-02 0:07 ` Rafael J. Wysocki
2006-11-30 20:21 ` Rafael J. Wysocki
2006-11-30 21:12 ` Andrew Morton
2006-11-30 21:32 ` Rafael J. Wysocki
2006-12-01 1:08 ` Rafael J. Wysocki
2006-12-01 1:27 ` Greg KH
2006-12-04 23:13 ` Greg KH
2006-11-30 3:42 ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-11-30 4:10 ` 2.6.19-rc6-mm2 Randy Dunlap
2006-11-30 13:03 ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02 0:33 ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02 0:32 ` 2.6.19-rc6-mm2 Andrew Morton
2006-12-02 3:19 ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02 4:09 ` 2.6.19-rc6-mm2 Akinobu Mita
2006-12-02 22:29 ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02 12:17 ` [-mm patch] arch/frv/kernel/futex.c must #include <linux/uaccess.h> Adrian Bunk
2006-12-04 11:20 ` David Howells
2006-12-02 17:54 ` [-mm patch] fix include/asm-xtensa/unistd.h compilation Adrian Bunk
2006-12-03 7:49 ` [-mm patch] drivers/net/netxen/: possible cleanups Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45728EE9.1060208@qumranet.com \
--to=avi@qumranet.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=thinkinginbinary@gmail.com \
--cc=yaniv@qumranet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox