VirtualBox

Changeset 92449 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Nov 16, 2021 10:37:10 AM (3 years ago)
Author:
vboxsync
Message:

VMM/NEM: Add NEMHCGetFeatures() to return a bitmask of features supported by the native NEM backend and make use of it in CPUMR3CpuId to determine whether to pass through xsave/xrstor support to the guest, bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/nem.h

    r92170 r92449  
    187187 */
    188188VMM_INT_DECL(bool) NEMHCIsLongModeAllowed(PVMCC pVM);
     189VMM_INT_DECL(uint32_t) NEMHCGetFeatures(PVMCC pVM);
    189190VMM_INT_DECL(int)  NEMImportStateOnDemand(PVMCPUCC pVCpu, uint64_t fWhat);
     191
     192/** @name NEM_FEAT_F_XXX - Features supported by the NEM backend
     193 * @{ */
     194/** NEM backend uses nested paging for the guest. */
     195#define NEM_FEAT_F_NESTED_PAGING    RT_BIT(0)
     196/** NEM backend uses full (unrestricted) guest execution. */
     197#define NEM_FEAT_F_FULL_GST_EXEC    RT_BIT(1)
     198/** NEM backend offers an xsave/xrstor interface. */
     199#define NEM_FEAT_F_XSAVE_XRSTOR     RT_BIT(2)
     200/** @} */
    190201
    191202VMM_INT_DECL(void) NEMHCNotifyHandlerPhysicalRegister(PVMCC pVM, PGMPHYSHANDLERKIND enmKind, RTGCPHYS GCPhys, RTGCPHYS cb);
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