Software Archive
Read-only legacy content
17061 Discussions

vmlaunch fails - vm entry with invalid control field(s)

roee_l_
Beginner
946 Views

Hey. CPU Used :  Intel(R) Core(TM) i5-4258U CPU @ 2.40GH

Operating system : OSX Mavericks 10.9.4

I looked at the source code of Bluepill , Xen and more. Got help there but still no luck =( Keep getting that error code 0x7 (Vm entry with invalid control field(s)).

Here's the VMCS dump:

9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_ES_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CS_SELECTOR=0008
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SS_SELECTOR=0010
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_DS_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_FS_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_GS_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_LDTR_SELECTOR=0030
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_TR_SELECTOR=0018
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_ES_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_CS_SELECTOR=0008
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_SS_SELECTOR=0010
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_DS_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_FS_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_GS_SELECTOR=0000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_TR_SELECTOR=0018
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IO_BITMAP_A=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IO_BITMAP_B=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     MSR_BITMAP=1ecb8e000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_MSR_STORE_ADDR=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_MSR_LOAD_ADDR=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_ENTRY_MSR_LOAD_ADDR=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     EXECUTIVE_VMCS=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     TSC_OFFSET=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VIRTUAL_APIC_PAGE_ADDR=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     APIC_ADDR_FULL=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     POSTED_INT_DESC_ADDR=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_FUNC_CTLS=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     EPT_POINTER=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_PHYSICAL_ADDRESS=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VMCS_LINK_POINTER=ffffffffffffffff
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_IA32_DEBUGCTL=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_IA32_EFER=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     PIN_BASED_VM_EXEC_CONTROL=16
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CPU_BASED_VM_EXEC_CONTROL=4206172
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     EXCEPTION_BITMAP=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     PAGE_FAULT_ERROR_CODE_MASK=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     PAGE_FAULT_ERROR_CODE_MATCH=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR3_TARGET_COUNT=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_CONTROLS=76dfb
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_MSR_STORE_COUNT=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_MSR_LOAD_COUNT=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_ENTRY_CONTROLS=11fb
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_ENTRY_MSR_LOAD_COUNT=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_ENTRY_INTR_INFO_FIELD=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_ENTRY_EXCEPTION_ERROR_CODE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_ENTRY_INSTRUCTION_LEN=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     TPR_THRESHOLD=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     SECONDARY_VM_EXEC_CONTROL=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_INSTRUCTION_ERROR=c
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_REASON=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_INTR_INFO=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_INTR_ERROR_CODE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IDT_VECTORING_INFO_FIELD=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IDT_VECTORING_ERROR_CODE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VM_EXIT_INSTRUCTION_LEN=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VMX_INSTRUCTION_INFO=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_ES_LIMIT=ffffffff
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CS_LIMIT=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SS_LIMIT=ffffffff
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_DS_LIMIT=ffffffff
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_FS_LIMIT=3c00
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_GS_LIMIT=ffffffff
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_LDTR_LIMIT=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_TR_LIMIT=67
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_GDTR_LIMIT=97
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_IDTR_LIMIT=1001
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_ES_AR_BYTES=10000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CS_AR_BYTES=a09b
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SS_AR_BYTES=c093
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_DS_AR_BYTES=10000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_FS_AR_BYTES=10000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_GS_AR_BYTES=10000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_LDTR_AR_BYTES=10000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_TR_AR_BYTES=8b
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_INTERRUPTIBILITY_INFO=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_ACTIVITY_STATE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SM_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SYSENTER_CS=b
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     VMX_PREEMPTION_TIMER_VALUE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_IA32_SYSENTER_CS=b
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR0_GUEST_HOST_MASK=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR4_GUEST_HOST_MASK=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR0_READ_SHADOW=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR4_READ_SHADOW=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR3_TARGET_VALUE0=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR3_TARGET_VALUE1=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR3_TARGET_VALUE2=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     CR3_TARGET_VALUE3=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     EXIT_QUALIFICATION=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_LINEAR_ADDRESS=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CR0=8001003b
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CR3=11651e092
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CR4=1626e0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_ES_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_CS_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SS_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_DS_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_FS_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_GS_BASE=ffffff81129e8000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_LDTR_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_TR_BASE=ffffff81129350a0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_GDTR_BASE=ffffff8112935000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_IDTR_BASE=ffffff8000000000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_DR7=400
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_RSP=ffffff812d2738a0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_RIP=ffffff7f91abc339
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_RFLAGS=286
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_PENDING_DBG_EXCEPTIONS=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SYSENTER_ESP=faf3170
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     GUEST_SYSENTER_EIP=12935190
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_CR0=8001003b
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_CR3=11651e092
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_CR4=1626e0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_FS_BASE=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_GS_BASE=ffffff81129e8000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_TR_BASE=ffffff81129350a0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_GDTR_BASE=ffffff8112935000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_IDTR_BASE=ffffff8000000000
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_IA32_SYSENTER_ESP=faf3170
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_IA32_SYSENTER_EIP=12935190
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_RSP=ffffff812d2738a0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     HOST_RIP=ffffff7f91abc33e
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IO_RCX=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IO_RSI=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IO_RDI=0
9/15/14 1:47:34.000 PM kernel[0]: DumpVMCS:     IO_RIP=0

Let me know if you see anything suspicious.

thanks

 

0 Kudos
1 Reply
wmirr
Novice
946 Views

why GUEST_CS_LIMIT=0?

 

0 Kudos
Reply