VirtualBox

Ignore:
Timestamp:
May 9, 2022 8:24:47 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151339
Message:

VMM/CPUM: Introduced a global variable g_CpumHostFeatures for keeping the host CPU features. This is safer than keeping this info in the shared part of the VM structure. bugref:10093

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/CPUMInternal.h

    r94901 r94931  
    152152
    153153
     154/** @name XSAVE limits.
     155 * @{ */
     156/** Max size we accept for the XSAVE area.
     157 * @see CPUMCTX::abXSave */
     158#define CPUM_MAX_XSAVE_AREA_SIZE    (0x4000 - 0x300)
     159/* Min size we accept for the XSAVE area. */
     160#define CPUM_MIN_XSAVE_AREA_SIZE    0x240
     161/** @} */
     162
     163
    154164/**
    155165 * CPU info
     
    500510PCPUMCPUIDLEAF      cpumCpuIdGetLeaf(PVM pVM, uint32_t uLeaf);
    501511PCPUMCPUIDLEAF      cpumCpuIdGetLeafEx(PVM pVM, uint32_t uLeaf, uint32_t uSubLeaf, bool *pfExactSubLeafHit);
     512PCPUMCPUIDLEAF      cpumCpuIdGetLeafInt(PCPUMCPUIDLEAF paLeaves, uint32_t cLeaves, uint32_t uLeaf, uint32_t uSubLeaf);
     513PCPUMCPUIDLEAF      cpumCpuIdEnsureSpace(PVM pVM, PCPUMCPUIDLEAF *ppaLeaves, uint32_t cLeaves);
     514# ifdef VBOX_STRICT
     515void                cpumCpuIdAssertOrder(PCPUMCPUIDLEAF paLeaves, uint32_t cLeaves);
     516# endif
     517int                 cpumCpuIdExplodeFeaturesX86(PCCPUMCPUIDLEAF paLeaves, uint32_t cLeaves, PCCPUMMSRS pMsrs,
     518                                                PCPUMFEATURES pFeatures);
    502519
    503520# ifdef IN_RING3
    504521int                 cpumR3DbgInit(PVM pVM);
    505 int                 cpumR3CpuIdExplodeFeatures(PCCPUMCPUIDLEAF paLeaves, uint32_t cLeaves, PCCPUMMSRS pMsrs, PCPUMFEATURES pFeatures);
    506522int                 cpumR3InitCpuIdAndMsrs(PVM pVM, PCCPUMMSRS pHostMsrs);
    507523void                cpumR3InitVmxGuestFeaturesAndMsrs(PVM pVM, PCVMXMSRS pHostVmxMsrs, PVMXMSRS pGuestVmxMsrs);
Note: See TracChangeset for help on using the changeset viewer.

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