mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
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:
parent
e5e1f1261f
commit
082b141e66
@ -246,6 +246,14 @@
|
|||||||
|
|
||||||
iretq
|
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) **
|
** Space for Interrupt Descriptor Table (IDT) **
|
||||||
** See Intel SDM Vol. 3A, section 6.10 **
|
** See Intel SDM Vol. 3A, section 6.10 **
|
||||||
|
Loading…
Reference in New Issue
Block a user