VirtualBox

Changeset 71108 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Feb 22, 2018 3:38:35 PM (7 years ago)
Author:
vboxsync
Message:

Added speculation control settings to API, refined implementation.

File:
1 edited

Legend:

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

    r70913 r71108  
    62956295}
    62966296
     6297/**
     6298 * Fast way for HM to access the IA32_SPEC_CTRL register.
     6299 *
     6300 * @returns The register value.
     6301 * @param   pVCpu   The cross context virtual CPU structure of the calling EMT.
     6302 * @thread  EMT(pVCpu)
     6303 */
     6304VMMR0_INT_DECL(uint64_t) CPUMR0GetGuestSpecCtrl(PVMCPU pVCpu)
     6305{
     6306    return pVCpu->cpum.s.GuestMsrs.msr.SpecCtrl;
     6307}
     6308
     6309
     6310/**
     6311 * Fast way for HM to access the IA32_SPEC_CTRL register.
     6312 *
     6313 * @param   pVCpu   The cross context virtual CPU structure of the calling EMT.
     6314 * @param   uValue  The new value.
     6315 * @thread  EMT(pVCpu)
     6316 */
     6317VMMR0_INT_DECL(void) CPUMR0SetGuestSpecCtrl(PVMCPU pVCpu, uint64_t uValue)
     6318{
     6319    pVCpu->cpum.s.GuestMsrs.msr.SpecCtrl = uValue;
     6320}
     6321
    62976322#endif /* IN_RING0 */
    62986323
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