VirtualBox

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


Ignore:
Timestamp:
Mar 10, 2017 4:18:12 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113906
Message:

VMM: Nested Hw.virt: SVM bits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r65905 r66040  
    16801680            pFeatures->fXop             = RT_BOOL(pExtLeaf->uEcx & X86_CPUID_AMD_FEATURE_ECX_XOP);
    16811681            pFeatures->fSvm             = RT_BOOL(pExtLeaf->uEcx & X86_CPUID_AMD_FEATURE_ECX_SVM);
     1682            if (pFeatures->fSvm)
     1683            {
     1684                PCCPUMCPUIDLEAF pSvmLeaf = cpumR3CpuIdFindLeaf(paLeaves, cLeaves, 0x8000000a);
     1685                AssertLogRelReturn(pSvmLeaf, VERR_CPUM_IPE_1);
     1686                pFeatures->svm.feat.u   = pSvmLeaf->uEdx;
     1687                pFeatures->svm.uMaxAsid = pSvmLeaf->uEbx;
     1688            }
    16821689        }
    16831690
     
    33633370        pSvmFeatureLeaf->uEbx = 0x8000;     /** @todo figure out virtual NASID. */
    33643371        pSvmFeatureLeaf->uEcx = 0;
    3365         pSvmFeatureLeaf->uEdx = 0; /** @todo Support SVM features */
     3372        pSvmFeatureLeaf->uEdx = 0;          /** @todo Support SVM features */
    33663373    }
    33673374    else
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