[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [BUG] L2 Guest on hyper-v causes domain_crash

  • To: xen-devel@xxxxxxxxxxxxx
  • From: Steven Krikstone <skrikstone@xxxxxxxxx>
  • Date: Tue, 25 Mar 2014 17:26:39 -0500
  • Delivery-date: Wed, 26 Mar 2014 06:55:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>


Running a FreeBSD L2 guest in Hyper-V on Windows Server 2012 R2 as the L1 causes the following guest domain crash.

### Setup: Intel server running Ubuntu 13.10 with Xen 4.4.1pre (git:staging-4.4:babcef3 with 1 patch)
The Ubuntu server is a stock install with just the necessary packages installed to run Xen.
Windows Server 2012 R2 is a stock install with the Hyper-V role added.
The following patch from: http://lists.xen.org/archives/html/xen-devel/2014-02/msg01071.html was required or else
Windows Server VM would hang at the boot splash screen.

If I set "nestedhvm=0" Server 2012R2 runs without issue (minus a working Hyper-v role).
Let me know if you need further logs or traces provided.



### xl dmesg
[..many L0 PIO lines snipped..]
(XEN) L0 PIO 01f7
(XEN) L0 PIO c220
(XEN) L0 PIO c222
(XEN) L0 PIO c222
(XEN) L0 PIO c220
(XEN) L0 PIO c222
(XEN) L0 PIO 01f7
(XEN) L0 PIO 01f7
(XEN) L0 PIO c203
(XEN) L0 PIO c205
(XEN) L0 PIO c203
(XEN) L0 PIO c205
(XEN) L0 PIO c207
(XEN) L0 PIO c211
(XEN) L0 PIO c213
(XEN) L0 PIO c205
(XEN) L0 PIO c207
(XEN) vvmx.c:2477:d3 Unknown nested vmexit reason 80000021.
(XEN) Failed vm entry (exit reason 0x80000021) caused by invalid guest state (0).
(XEN) ************* VMCS Area **************
(XEN) *** Guest State ***
(XEN) CR0: actual=0x0000000080010031, shadow=0x0000000080050031, gh_mask=ffffffffffffffff
(XEN) CR4: actual=0x00000000001526f8, shadow=0x00000000001506f8, gh_mask=ffffffffffffffff
(XEN) CR3: actual=0x00000000001a7000, target_count=0
(XEN)      target0=0000000000000000, target1=0000000000000000
(XEN)      target2=0000000000000000, target3=0000000000000000
(XEN) RSP = 0xffffd00020b3c890 (0xffffd00020b3c890)  RIP = 0xfffff80320f0c0ab (0xfffff80320f0c0ab)
(XEN) RFLAGS=0x0000000000000046 (0x0000000000000046)  DR7 = 0x0000000000000400
(XEN) Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000
(XEN) CS: sel=0x0010, attr=0x0209b, limit=0x00000000, base=0x0000000000000000
(XEN) DS: sel=0x002b, attr=0x0c0f3, limit=0xffffffff, base=0x0000000000000000
(XEN) SS: sel=0x0018, attr=0x0c093, limit=0xffffffff, base=0x0000000000000000
(XEN) ES: sel=0x002b, attr=0x0c0f3, limit=0xffffffff, base=0x0000000000000000
(XEN) FS: sel=0x0053, attr=0x040f3, limit=0x0000fc00, base=0x00000000ff9ce000
(XEN) GS: sel=0x002b, attr=0x0c0f3, limit=0xffffffff, base=0xffffd00020b12000
(XEN) GDTR:                           limit=0x0000007f, base=0xffffd00020b1f040
(XEN) LDTR: sel=0x0000, attr=0x1c000, limit=0xffffffff, base=0x0000000000000000
(XEN) IDTR:                           limit=0x00000fff, base=0xffffd00020b1f0c0
(XEN) TR: sel=0x0040, attr=0x0008b, limit=0x00000067, base=0xffffd00020b18080
(XEN) Guest PAT = 0x0000050100070406
(XEN) TSC Offset = fffffefc546de420
(XEN) DebugCtl=0000000000000000 DebugExceptions=0000000000000000
(XEN) Interruptibility=0008 ActivityState=0000
(XEN) *** Host State ***
(XEN) RSP = 0xffff830413e1ff90  RIP = 0xffff82d0801dd7e0
(XEN) CS=e008 DS=0000 ES=0000 FS=0000 GS=0000 SS=0000 TR=e040
(XEN) FSBase=0000000000000000 GSBase=0000000000000000 TRBase=ffff830413e36c80
(XEN) GDTBase=ffff830413e27000 IDTBase=ffff830413e33000
(XEN) CR0=0000000080050033 CR3=000000026454d000 CR4=00000000001526f0
(XEN) Sysenter RSP=ffff830413e1ffc0 CS:RIP=e008:ffff82d080219ff0
(XEN) Host PAT = 0x0000050100070406
(XEN) *** Control State ***
(XEN) PinBased=0000003f CPUBased=b6a06dfe SecondaryExec=000000ef
(XEN) EntryControls=000013ff ExitControls=000fefff
(XEN) ExceptionBitmap=00040040
(XEN) VMEntry: intr_info=80000202 errcode=00000000 ilen=00000003
(XEN) VMExit: intr_info=00000000 errcode=00000000 ilen=00000003
(XEN)         reason=80000021 qualification=00000000
(XEN) IDTVectoring: info=80000202 errcode=00000000
(XEN) TPR Threshold = 0x00
(XEN) EPT pointer = 0x0000000260c0601e
(XEN) Virtual processor ID = 0xa53c
(XEN) **************************************
(XEN) domain_crash called from vmx.c:2363
(XEN) Domain 3 (vcpu#3) crashed on cpu#1:
(XEN) ----[ Xen-4.4.1-preSK3  x86_64  debug=n  Not tainted ]----
(XEN) CPU:    1
(XEN) RIP:    0010:[<fffff80320f0c0ab>]
(XEN) RFLAGS: 0000000000000046   CONTEXT: hvm guest
(XEN) rax: 0000000000000003   rbx: ffffd00020b12180   rcx: 0000000000000003
(XEN) rdx: 0000000000000000   rsi: ffffe00002aad010   rdi: 0000000000000000
(XEN) rbp: ffffd00020b3ca20   rsp: ffffd00020b3c890   r8:  0000000000000000
(XEN) r9:  0000000000000004   r10: 0000000000000000   r11: fffff80320fe8c8f
(XEN) r12: 0000000000000003   r13: 00000000ffffffff   r14: ffffe00002aad0f0
(XEN) r15: 0000000000000000   cr0: 0000000080010031   cr4: 00000000001526f8
(XEN) cr3: 00000000001a7000   cr2: 000000139b973000
(XEN) ds: 002b   es: 002b   fs: 0053   gs: 002b   ss: 0018   cs: 0010

### xl info
host                   : xen2
release                : 3.11.0-18-generic
version                : #32-Ubuntu SMP Tue Feb 18 21:11:14 UTC 2014
machine                : x86_64
nr_cpus                : 8
max_cpu_id             : 7
nr_nodes               : 1
cores_per_socket       : 4
threads_per_core       : 2
cpu_mhz                : 3093
hw_caps                : bfebfbff:28100800:00000000:00007f00:77bae3ff:00000000:00000001:00000281
virt_caps              : hvm hvm_directio
total_memory           : 16202
free_memory            : 15215
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 4
xen_extra              : .1-preSK3
xen_version            : 4.4.1-preSK3
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : Tue Mar 25 17:20:47 2014 +0100 git:babcef3-dirty
xen_commandline        : console=vga,com1 com1=57600 dom0_mem=768M,max:768M loglvl=all guest_loglvl=all noreboot
cc_compiler            : gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
cc_compile_by          : steve
cc_compile_domain      :
cc_compile_date        : Tue Mar 25 16:26:25 CDT 2014
xend_config_format     : 4

### xl create config file
name = 'hypervTest'
builder = 'hvm'
memory = 4096
vcpus = 4
vif = [ "mac=00:16:3e:ff:33:56" ]
disk = ["file:/srv/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_SERVER_EVAL_EN-US-I
RM_SSS_X64FREE_EN-US_DV5.ISO,hdc:cdrom,r", "file:/srv/server-test-root.img,hda,w
vnc = 1
vnclisten = ""
vncdisplay = 1
cpuid = ['0x1:ecx=0xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx']

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.