fixed bugs in vmx code
This commit is contained in:
parent
e4d659c54d
commit
7e1b67f91e
@ -84,7 +84,7 @@ void BX_CPU_C::VMX_Virtual_Apic_Read(bx_phy_address paddr, unsigned len, void *d
|
||||
}
|
||||
|
||||
Bit32u qualification = offset |
|
||||
(BX_CPU_THIS_PTR in_event) ? VMX_APIC_ACCESS_DURING_EVENT_DELIVERY : VMX_APIC_READ_INSTRUCTION_EXECUTION;
|
||||
((BX_CPU_THIS_PTR in_event) ? VMX_APIC_ACCESS_DURING_EVENT_DELIVERY : VMX_APIC_READ_INSTRUCTION_EXECUTION);
|
||||
VMexit(VMX_VMEXIT_APIC_ACCESS, qualification);
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ void BX_CPU_C::VMX_Virtual_Apic_Write(bx_phy_address paddr, unsigned len, void *
|
||||
}
|
||||
|
||||
Bit32u qualification = offset |
|
||||
(BX_CPU_THIS_PTR in_event) ? VMX_APIC_ACCESS_DURING_EVENT_DELIVERY : VMX_APIC_WRITE_INSTRUCTION_EXECUTION;
|
||||
((BX_CPU_THIS_PTR in_event) ? VMX_APIC_ACCESS_DURING_EVENT_DELIVERY : VMX_APIC_WRITE_INSTRUCTION_EXECUTION);
|
||||
VMexit(VMX_VMEXIT_APIC_ACCESS, qualification);
|
||||
}
|
||||
|
||||
|
@ -86,6 +86,7 @@ static const char *VMX_vmexit_reason_name[] =
|
||||
"MONITOR",
|
||||
"PAUSE",
|
||||
"VMEntry failure due to machine check",
|
||||
"Reserved",
|
||||
"TPR Below Threshold",
|
||||
"APIC Access",
|
||||
"Virtualized EOI",
|
||||
|
Loading…
Reference in New Issue
Block a user