VirtualBox

Changeset 56823 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jul 6, 2015 4:45:43 PM (9 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Check for MSR-bitmap feature being available before using it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r56815 r56823  
    48434843
    48444844                /* We need to intercept reads too, see @bugref{7386} comment #16. */
    4845                 hmR0VmxSetMsrPermission(pVCpu, MSR_K6_EFER, VMXMSREXIT_INTERCEPT_READ, VMXMSREXIT_INTERCEPT_WRITE);
     4845                if (pVM->hm.s.vmx.Msrs.VmxProcCtls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_USE_MSR_BITMAPS)
     4846                    hmR0VmxSetMsrPermission(pVCpu, MSR_K6_EFER, VMXMSREXIT_INTERCEPT_READ, VMXMSREXIT_INTERCEPT_WRITE);
    48464847                Log4(("Load[%RU32]: MSR[--]: u32Msr=%#RX32 u64Value=%#RX64 cMsrs=%u\n", pVCpu->idCpu, MSR_K6_EFER,
    48474848                      pMixedCtx->msrEFER, pVCpu->hm.s.vmx.cMsrs));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette