Li, Xin B
2006-Sep-30 05:07 UTC
RE: [Xen-devel] [PATCH] add RDMSR/WRMSR instruction emulation toVMXAssist decoder
After applying this patch, while booting a 2 vCPUs PAE SMP Windows 2003 server in VMX, I got: (XEN) sh error: sh_remove_shadows(): can''t find all shadows of mfn 23ecf7 (shadow_flags=80000008) (XEN) domain_crash called from common.c:2197 (XEN) Domain 1 (vcpu#0) crashed on cpu#3: (XEN) ----[ Xen-3.0-unstable x86_64 debug=n Not tainted ]---- (XEN) CPU: 3 (XEN) RIP: 0008:[<000000008086bf9b>] (XEN) RFLAGS: 0000000000010283 CONTEXT: hvm (XEN) rax: 0000000000000002 rbx: 00000000821a57a8 rcx: 00000000821a3008 (XEN) rdx: 0000000000000002 rsi: 00000000821a3020 rdi: 00000000821a54d0 (XEN) rbp: 00000000f885ebd8 rsp: 00000000f885ea98 r8: 0000000000000000 (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 (XEN) r15: 0000000000000000 cr0: 000000008001003b cr4: 0000000000000671 (XEN) cr3: 00000000002677a0 cr2: 00000000e1005004 (XEN) ds: 0023 es: 0023 fs: 0030 gs: 0000 ss: 0010 cs: 0008 -Xin>-----Original Message----- >From: xen-devel-bounces@lists.xensource.com >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Li, Xin B >Sent: 2006年9月30日 12:55 >To: xen-devel@lists.xensource.com >Subject: [Xen-devel] [PATCH] add RDMSR/WRMSR instruction >emulation toVMXAssist decoder > >add RDMSR/WRMSR instruction emulation to VMXAssist decoder > >AP of PAE SMP windows will use it to set NX bit in EFER. > >Signed-off-by: Xin Li <xin.b.li@intel.com> >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Pratt
2006-Sep-30 08:38 UTC
RE: [Xen-devel] [PATCH] add RDMSR/WRMSR instruction emulationtoVMXAssist decoder
> After applying this patch, while booting a 2 vCPUs PAE SMP Windows 2003 > server in VMX, I got:Which HAL is this using, MPS or ACPI? Were you doing an install or booting a previous installation? (If the latter, please try an install). Thanks, Ian> (XEN) sh error: sh_remove_shadows(): can''t find all shadows of mfn 23ecf7 > (shadow_flags=80000008) > (XEN) domain_crash called from common.c:2197 > (XEN) Domain 1 (vcpu#0) crashed on cpu#3: > (XEN) ----[ Xen-3.0-unstable x86_64 debug=n Not tainted ]---- > (XEN) CPU: 3 > (XEN) RIP: 0008:[<000000008086bf9b>] > (XEN) RFLAGS: 0000000000010283 CONTEXT: hvm > (XEN) rax: 0000000000000002 rbx: 00000000821a57a8 rcx: 00000000821a3008 > (XEN) rdx: 0000000000000002 rsi: 00000000821a3020 rdi: 00000000821a54d0 > (XEN) rbp: 00000000f885ebd8 rsp: 00000000f885ea98 r8: 0000000000000000 > (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 > (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 > (XEN) r15: 0000000000000000 cr0: 000000008001003b cr4: 0000000000000671 > (XEN) cr3: 00000000002677a0 cr2: 00000000e1005004 > (XEN) ds: 0023 es: 0023 fs: 0030 gs: 0000 ss: 0010 cs: 0008 > > -Xin > > >-----Original Message----- > >From: xen-devel-bounces@lists.xensource.com > >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Li, Xin B > >Sent: 2006年9月30日 12:55 > >To: xen-devel@lists.xensource.com > >Subject: [Xen-devel] [PATCH] add RDMSR/WRMSR instruction > >emulation toVMXAssist decoder > > > >add RDMSR/WRMSR instruction emulation to VMXAssist decoder > > > >AP of PAE SMP windows will use it to set NX bit in EFER. > > > >Signed-off-by: Xin Li <xin.b.li@intel.com> > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Tim Deegan
2006-Oct-05 15:54 UTC
Re: [Xen-devel] [PATCH] add RDMSR/WRMSR instruction emulation toVMXAssist decoder
This bug is fixed by xen-unstable 11713:79b56c02b836 -- the VMX code was not tracking writes to CR4 that happen when CR0.PE=0, so the second vcpu was being shadowed in the wrong paging mode, and going into a PF loop. Win2k3 (ee sp1 pae=1 acpi=1 apic=1 vcpus=2) doesn''t complete the install process yet, but gets as far as "Installing Devices" in the GUI installer now. Tim. At 13:07 +0800 on 30 Sep (1159621646), Li, Xin B wrote:> After applying this patch, while booting a 2 vCPUs PAE SMP Windows 2003 server in VMX, I got: > > (XEN) sh error: sh_remove_shadows(): can''t find all shadows of mfn 23ecf7 (shadow_flags=80000008) > (XEN) domain_crash called from common.c:2197 > (XEN) Domain 1 (vcpu#0) crashed on cpu#3: > (XEN) ----[ Xen-3.0-unstable x86_64 debug=n Not tainted ]---- > (XEN) CPU: 3 > (XEN) RIP: 0008:[<000000008086bf9b>] > (XEN) RFLAGS: 0000000000010283 CONTEXT: hvm > (XEN) rax: 0000000000000002 rbx: 00000000821a57a8 rcx: 00000000821a3008 > (XEN) rdx: 0000000000000002 rsi: 00000000821a3020 rdi: 00000000821a54d0 > (XEN) rbp: 00000000f885ebd8 rsp: 00000000f885ea98 r8: 0000000000000000 > (XEN) r9: 0000000000000000 r10: 0000000000000000 r11: 0000000000000000 > (XEN) r12: 0000000000000000 r13: 0000000000000000 r14: 0000000000000000 > (XEN) r15: 0000000000000000 cr0: 000000008001003b cr4: 0000000000000671 > (XEN) cr3: 00000000002677a0 cr2: 00000000e1005004 > (XEN) ds: 0023 es: 0023 fs: 0030 gs: 0000 ss: 0010 cs: 0008 > > -Xin > > >-----Original Message----- > >From: xen-devel-bounces@lists.xensource.com > >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Li, Xin B > >Sent: 2006?$BG/9?$B7n30?$BF| 12:55 > >To: xen-devel@lists.xensource.com > >Subject: [Xen-devel] [PATCH] add RDMSR/WRMSR instruction > >emulation toVMXAssist decoder > > > >add RDMSR/WRMSR instruction emulation to VMXAssist decoder > > > >AP of PAE SMP windows will use it to set NX bit in EFER. > > > >Signed-off-by: Xin Li <xin.b.li@intel.com> > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel