Fix multiple bugs, refactor InitializeMsrBitmaps

This commit is contained in:
Satoshi Tanda
2020-03-08 20:12:24 -07:00
parent d19ea35db2
commit b49a595b0a
6 changed files with 139 additions and 18 deletions

View File

@@ -43,7 +43,7 @@ HandleVmcallUninstall (
//
gdtr.BaseAddress = VmxRead(VMCS_GUEST_GDTR_BASE);
gdtr.Limit = (UINT16)VmxRead(VMCS_GUEST_GDTR_LIMIT);
_sgdt(&gdtr);
_lgdt(&gdtr);
idtr.BaseAddress = VmxRead(VMCS_GUEST_IDTR_BASE);
idtr.Limit = (UINT16)VmxRead(VMCS_GUEST_IDTR_LIMIT);