Skip to contentSkip to conversation

VM Entry fails in changesets since 19095

DISCUSSION George Dunlap 2 participants 4 messages Jan 28, 2009

lore
Share & tools
lore
#0 lore raw

I started to work on the fix for the PoD, only to discover that just starting a normal HVM on recent -unstable build (no PoD enabled), the domain crashes with invalid guest state.

I did a binary search, and found that the change which breaks things was introduced sometime between CS 19089 and 19095

I'm still looking into it, but if anyone else has any ideas, they'd be appreciated.

I'm attaching a console log and cpuinfo. The chip is an older one, a dual-core Intel Conroe.

-George

(XEN) Failed vm entry (exit reason 0x80000021) caused by invalid guest state (2). (XEN) ************* VMCS Area **************
(XEN) *** Guest State ***
(XEN) CR0: actual=0x0000000080010039, shadow=0x0000000000000011, gh_mask=ffffffffffffffff (XEN) CR4: actual=0x0000000000002060, shadow=0x0000000000000000, gh_mask=ffffffffffffffff (XEN) CR3: actual=0x0000000124f9da80, target_count=0
(XEN) target0=0000000000000000, target1=0000000000000000
(XEN) target2=0000000000000000, target3=0000000000000000
(XEN) RSP = 0x0000000000000000 (0x0000000000000000) RIP = 0x0000000000000000 (0x0000000000000000) (XEN) RFLAGS=0x0000000000000002 (0x0000000000000002) DR7 = 0x0000000000000000 (XEN) Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000
(XEN) CS: sel=0x0000, attr=0x0c09b, limit=0xffffffff, base=0x0000000000000000 (XEN) DS: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 (XEN) SS: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 (XEN) ES: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 (XEN) FS: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000 (XEN) GS: sel=0x0000, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) GDTR: limit=0x00000000, base=0x0000000000000000
(XEN) LDTR: sel=0x0000, attr=0x00082, limit=0x00000000, base=0x0000000000000000
(XEN) IDTR: limit=0x00000000, base=0x0000000000000000
(XEN) TR: sel=0x0000, attr=0x0008b, limit=0x000000ff, base=0x0000000000000000 (XEN) Guest PAT = 0x0000000000000000
(XEN) TSC Offset = fffffe8855a8814e
(XEN) DebugCtl=0000000000000000 DebugExceptions=0000000000000000
(XEN) Interruptibility=0000 ActivityState=0000
(XEN) *** Host State ***
(XEN) RSP = 0xffff828c80257fa0 RIP = 0xffff828c80189f20
(XEN) CS=e008 DS=0000 ES=0000 FS=0000 GS=0000 SS=0000 TR=e040
(XEN) FSBase=0000000000000000 GSBase=0000000000000000 TRBase=ffff828c80290a00 (XEN) GDTBase=ffff828c800f3000 IDTBase=ffff828c80294320
(XEN) CR0=000000008005003b CR3=00000001244d0000 CR4=00000000000026f0
(XEN) Sysenter RSP=ffff828c80257fd0 CS:RIP=e008:ffff828c801b2290
(XEN) Host PAT = 0x0000000000000000
(XEN) *** Control State ***
(XEN) PinBased=0000001f CPUBased=36a1e7fa SecondaryExec=00000000
(XEN) EntryControls=000011ff ExitControls=0003efff
(XEN) ExceptionBitmap=00044080
(XEN) VMEntry: intr_info=00000000 errcode=00000000 ilen=00000000
(XEN) VMExit: intr_info=00000000 errcode=00000000 ilen=00000000
(XEN) reason=80000021 qualification=00000002
(XEN) IDTVectoring: info=00000000 errcode=00000000
(XEN) TPR Threshold = 0x00
(XEN) EPT pointer = 0x0000000000000000
(XEN) Virtual processor ID = 0x0000
(XEN) **************************************
(XEN) domain_crash called from vmx.c:2218
(XEN) Domain 2 (vcpu#0) crashed on cpu#0:
(XEN) ----[ Xen-3.4-unstable x86_64 debug=n Not tainted ]----
(XEN) CPU: 0
(XEN) RIP: 0000:[<0000000000000000>]
(XEN) RFLAGS: 0000000000000002 CONTEXT: hvm guest

(XEN) rax: 0000000000000001   rbx: 0000000000000000   rcx: 0000000000000000
(XEN) rdx: 0000000000000000   rsi: 0000000000000000   rdi: 0000000000000000
(XEN) rbp: 0000000000000000   rsp: 0000000000000000   r8:  0000000000000000
(XEN) r9:  0000000000000000   r10: 0000000000000000   r11: 0000000000000000
(XEN) r12: 0000000000000000   r13: 0000000000000000   r14: 0000000000000000
(XEN) r15: 0000000000000000   cr0: 0000000000000011   cr4: 0000000000000000
(XEN) cr3: 0000000000000000   cr2: 0000000000000000

(XEN) ds: 0000 es: 0000 fs: 0000 gs: 0000 ss: 0000 cs: 0000

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2500 @ 2.00GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts pni monitor vmx est tm2 xtpr
bogomips : 3994.51
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Genuine Intel(R) CPU T2500 @ 2.00GHz
stepping : 8
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts pni monitor vmx est tm2 xtpr
bogomips : 3990.07
clflush size : 64

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw

It's going to be a slightly subtle one since it works for and for our automated tests. It would be worth making sure you've done a 'make clean' in the xen directory -- I recently changed the dependency system, and I'm still not 100% sure of it yet. I actually got a broken image myself somehow, which was fixed by 'make clean', but I haven't tracked down the issue as yet.

-- Keir

Quoted 14 lines · George Dunlap

I started to work on the fix for the PoD, only to discover that just starting a normal HVM on recent -unstable build (no PoD enabled), the domain crashes with invalid guest state.

I did a binary search, and found that the change which breaks things was introduced sometime between CS 19089 and 19095

I'm still looking into it, but if anyone else has any ideas, they'd be appreciated.

I'm attaching a console log and cpuinfo. The chip is an older one, a dual-core Intel Conroe.

-George

#2 lore raw

I just did a "make mrproper" and re-built. Still crashes.

I assume the automated test suites include a test with a 32-bit dom0 and a 64-bit hypervisor (which is my configuration)?

I narrowed it down to cs 18090. With build of 18090 (plus a backport of 18095 so that dom0 boots) the domain will crash, but with a build of 18089 (plus a backport of 18095 for good measure) the domain will boot fine.

Going to dig a little deeper...

-George

Quoted 32 lines · Keir Fraser

It's going to be a slightly subtle one since it works for and for our automated tests. It would be worth making sure you've done a 'make clean' in the xen directory -- I recently changed the dependency system, and I'm still not 100% sure of it yet. I actually got a broken image myself somehow, which was fixed by 'make clean', but I haven't tracked down the issue as yet.

-- Keir

Quoted 7 lines · George Dunlap

I started to work on the fix for the PoD, only to discover that just starting a normal HVM on recent -unstable build (no PoD enabled), the domain crashes with invalid guest state.

I did a binary search, and found that the change which breaks things was introduced sometime between CS 19089 and 19095

Quoted 7 lines

I'm still looking into it, but if anyone else has any ideas, they'd be appreciated.

I'm attaching a console log and cpuinfo. The chip is an older one, a dual-core Intel Conroe.

-George

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw

Er sorry... s/18/19/g. So that's cs 19090, with 19095 backported that doesn't work, and 19089 that does work.

-George

Quoted 48 lines · George Dunlap

I just did a "make mrproper" and re-built. Still crashes.

I assume the automated test suites include a test with a 32-bit dom0 and a 64-bit hypervisor (which is my configuration)?

I narrowed it down to cs 18090. With build of 18090 (plus a backport of 18095 so that dom0 boots) the domain will crash, but with a build of 18089 (plus a backport of 18095 for good measure) the domain will boot fine.

Going to dig a little deeper...

-George

Quoted 32 lines · Keir Fraser

It's going to be a slightly subtle one since it works for and for our automated tests. It would be worth making sure you've done a 'make clean' in the xen directory -- I recently changed the dependency system, and I'm still not 100% sure of it yet. I actually got a broken image myself somehow, which was fixed by 'make clean', but I haven't tracked down the issue as yet.

-- Keir

Quoted 7 lines · George Dunlap

I started to work on the fix for the PoD, only to discover that just starting a normal HVM on recent -unstable build (no PoD enabled), the domain crashes with invalid guest state.

I did a binary search, and found that the change which breaks things was introduced sometime between CS 19089 and 19095

Quoted 7 lines

I'm still looking into it, but if anyone else has any ideas, they'd be appreciated.

I'm attaching a console log and cpuinfo. The chip is an older one, a dual-core Intel Conroe.

-George

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel