VM-entry failure in a hackintosh
mitliao opened this issue · comments
//==================
printk log started: [Tue, 19 Feb 2019 02:31:33 UTC]
[3526:164603] VM-entry failure exit reason: ffffffff00000021
Assertion failed: (!tmp), function check_vm_entry, file /*******/noah/src/main.c, line 150.
====
My hackintosh is running Sierra.
On a normal Macbook Pro (High Sierra/Mojave), it doesn't have such issue.
After some digging, VM-entry exit reason 0x21 is VMX_REASON_VMENTRY_GUEST, which means invalid guest state. And it looks like it's the paging base address saved in VMCS_GUEST_CR3 causes the issue. Because if I clean the CR3, then the same exit reason can't be seen, just ept_violation (exit qualification = 0x81) happens instead.