hw_x86_64: Add _vt_vm_entry to x86_64 mode transition

The entry enables interrupts and initiates a handover to the guest VM by
invoking event number one. The sti instruction is placed at the start to
allow exits to Muen before handing off to the VM if window exiting is
requested.

Issue #2016
This commit is contained in:
Reto Buerki 2015-06-16 10:26:53 +02:00 committed by Norman Feske
parent e5e1f1261f
commit 082b141e66

View File

@ -246,6 +246,14 @@
iretq
/* VM entry: Switch to guest VM */
.global _vt_vm_entry
_vt_vm_entry:
sti
mov $1, %rax
vmcall
/************************************************
** Space for Interrupt Descriptor Table (IDT) **
** See Intel SDM Vol. 3A, section 6.10 **