VirtualBox

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/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h

    r92170 r92449  
    51185118}
    51195119
     5120
     5121/**
     5122 * Returns features supported by the NEM backend.
     5123 *
     5124 * @returns Flags of features supported by the native NEM backend.
     5125 * @param   pVM             The cross context VM structure.
     5126 */
     5127VMM_INT_DECL(uint32_t) NEMHCGetFeatures(PVMCC pVM)
     5128{
     5129    RT_NOREF(pVM);
     5130    /** @todo Make use of the WHvGetVirtualProcessorXsaveState/WHvSetVirtualProcessorXsaveState
     5131     * interface added in 2019 to enable passthrough of xsave/xrstor (and depending) features to the guest. */
     5132    /** @todo Is NEM_FEAT_F_FULL_GST_EXEC always true? */
     5133    return NEM_FEAT_F_NESTED_PAGING | NEM_FEAT_F_FULL_GST_EXEC;
     5134}
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