VirtualBox

Changeset 92018 in vbox for trunk/src


Ignore:
Timestamp:
Oct 25, 2021 9:15:40 AM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 Added CPUMGetGuestIa32VmxEptVpidCap for upcoming changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp

    r91339 r92018  
    14401440
    14411441
     1442/**
     1443 * Get fixed IA32_VMX_EPT_VPID_CAP value for PGM and cpumMsrRd_Ia32VmxEptVpidCap.
     1444 *
     1445 * @returns Fixed IA32_VMX_EPT_VPID_CAP value.
     1446 * @param   pVCpu           The cross context per CPU structure.
     1447 */
     1448VMM_INT_DECL(uint64_t) CPUMGetGuestIa32VmxEptVpidCap(PCVMCPU pVCpu)
     1449{
     1450    RT_NOREF_PV(pVCpu);
     1451    return pVCpu->cpum.s.Guest.hwvirt.vmx.Msrs.u64EptVpidCaps;
     1452}
     1453
     1454
    14421455/** @callback_method_impl{FNCPUMRDMSR} */
    14431456static DECLCALLBACK(VBOXSTRICTRC) cpumMsrRd_Ia32VmxEptVpidCap(PVMCPUCC pVCpu, uint32_t idMsr, PCCPUMMSRRANGE pRange, uint64_t *puValue)
    14441457{
    14451458    RT_NOREF_PV(pVCpu); RT_NOREF_PV(idMsr); RT_NOREF_PV(pRange);
    1446     *puValue = pVCpu->cpum.s.Guest.hwvirt.vmx.Msrs.u64EptVpidCaps;
     1459    *puValue = CPUMGetGuestIa32VmxEptVpidCap(pVCpu);
    14471460    return VINF_SUCCESS;
    14481461}
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