save GUEST PAT into VMCB for SVM

This commit is contained in:
Stanislav Shwartsman 2021-03-19 06:03:04 +00:00
parent 4966843c90
commit 0736953e89

View File

@ -297,6 +297,10 @@ void BX_CPU_C::SvmExitSaveGuestState(void)
SVM_CONTROLS *ctrls = &BX_CPU_THIS_PTR vmcb.ctrls;
if (ctrls->nested_paging) {
vmcb_write64(SVM_GUEST_PAT, BX_CPU_THIS_PTR msr.pat.u64);
}
vmcb_write8(SVM_CONTROL_VTPR, ctrls->v_tpr);
vmcb_write8(SVM_CONTROL_VIRQ, is_pending(BX_EVENT_SVM_VIRQ_PENDING));
clear_event(BX_EVENT_SVM_VIRQ_PENDING);