VirtualBox

Changeset 107931 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jan 24, 2025 10:00:36 AM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167166
Message:

VMM/NEM-win: Only export & import IA32_SPEC_CTRL if the host supports it and we're exposing the register to the guest. (AMD regression from r167064.) jiraref:VBP-947 bugref:10738

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r107863 r107931  
    15391539    AssertReturn(!pVM->nem.s.fCreatedEmts, VERR_WRONG_ORDER);
    15401540    AssertReturn(pVM->bMainExecutionEngine == VM_EXEC_ENGINE_NATIVE_API, VERR_WRONG_ORDER);
     1541
     1542    /*
     1543     * Determine whether we can and should export/import IA32_SPEC_CTRL.
     1544     */
     1545    pVM->nem.s.fDoIa32SpecCtrl = pVM->nem.s.fSpeculationControl
     1546                              && g_CpumHostFeatures.s.fSpecCtrlMsr
     1547                              && pVM->cpum.ro.GuestFeatures.fSpecCtrlMsr;
    15411548
    15421549    /*
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