I use xentrace to capture trace buffer data when the VM hangs:
1. 0x00081002 TRC_HVM_VMEXIT
# xentrace -D -T 1 -e 0x00081002 xentrace.bin
# cat xentrace.bin | xentrace_format xen-4.8.0/tools/xentrace/formats
…
CPU19 603428264584918 (+ 3724) VMEXIT [ exitcode = 0x00000030, rIP = 0xfffff80004810b41 ]
CPU19 603428264605226 (+ 20308) VMENTRY
CPU19 603428264608986 (+ 3760) VMEXIT [ exitcode = 0x00000030, rIP = 0xfffff80004810b41 ]
CPU19 603428264629294 (+ 20308) VMENTRY
CPU19 603428264633154 (+ 3860) VMEXIT [ exitcode = 0x00000030, rIP = 0xfffff80004810b41 ]
CPU19 603428264654290 (+ 21136) VMENTRY
CPU19 603428264658006 (+ 3716) VMEXIT [ exitcode = 0x00000030, rIP = 0xfffff80004810b41 ]
…
The 0x00000030 is EXIT_REASON_EPT_VIOLATION (http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/asm-x86/hvm/vmx/vmx.h;h=4889a64255d412d380bb4544c8892b3600e3cbe2;hb=HEAD#l202)
2. 0x0008200F TRC_HVM_INTR
…
CPU19 0 (+ 0) PF_INJECT [ errorcode = 0x03, virt = 0xfffff88000962000 ]
CPU19 0 (+ 0) INTR_WINDOW [ value = 0x000000d2 ]
CPU19 0 (+ 0) NPF [ gpa = 0x00000000000a0000 mfn = 0xffffffffffffffff qual = 0x0182 p2mt = 0x0004 ]
CPU19 0 (+ 0) PF_INJECT [ errorcode = 0x03, virt = 0xfffff88000962000 ]
CPU19 0 (+ 0) INTR_WINDOW [ value = 0x000000d2 ]
CPU19 0 (+ 0) NPF [ gpa = 0x00000000000a0000 mfn = 0xffffffffffffffff qual = 0x0182 p2mt = 0x0004 ]
CPU19 0 (+ 0) PF_INJECT [ errorcode = 0x03, virt = 0xfffff88000962000 ]
CPU19 0 (+ 0) INTR_WINDOW [ value = 0x000000d2 ]
CPU19 0 (+ 0) NPF [ gpa = 0x00000000000a0000 mfn = 0xffffffffffffffff qual = 0x0182 p2mt = 0x0004 ]
…
Anyone have idea to the problem?
发件人: Xen-users [mailto:xen-users-bounces@xxxxxxxxxxxxx]
代表 席康杰
发送时间: 2017年5月2日 16:25
收件人: Xen-users@xxxxxxxxxxxxx
主题: [Xen-users] Intel VT-x for HVM
Hi,
I am using HyperPlatform(https://github.com/tandasat/HyperPlatform), which needs Intel VT-x and EPT technology, so I create a Windows
7 virtual machine on Xen with following configurations(see
https://wiki.xenproject.org/wiki/Nested_Virtualization_in_Xen):
hap = 1
nestedhvm = 1
And use Coreinfo(https://technet.microsoft.com/en-us/sysinternals/cc835722.aspx) to check VT-x and EPT, it shows
the system supports Intel VT-x and EPT:
However, when I install HyperPlatform (https://github.com/tandasat/HyperPlatform#installation-and-uninstallation)
and finally run the command:
sc start HyperPlatform
The virtual machine hangs and screen is broken:
The guest is “Windows 7 x64 SP1”, host is CentOS-6.5, kernel-4.4.43, Xen-4.8.0.
Anyone can help? How to support Intel VT-x for HVM?
Thanks
-Kangjie