VirtualBox

Changeset 24813 in vbox


Ignore:
Timestamp:
Nov 20, 2009 8:44:56 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55033
Message:

Write MSR_K8_HWCR value to release log (AMD-V diagnostics).

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r24608 r24813  
    11931193            LogRel(("HWACCM: AMD-V max ASID                    = %d\n", pVM->hwaccm.s.uMaxASID));
    11941194            LogRel(("HWACCM: AMD-V features                    = %X\n", pVM->hwaccm.s.svm.u32Features));
     1195            LogRel(("HWACCM: AMD HWCR MSR                      = %RX64\n", pVM->hwaccm.s.svm.msrHWCR));
    11951196
    11961197            if (pVM->hwaccm.s.svm.u32Features & AMD_CPUID_SVM_FEATURE_EDX_NESTED_PAGING)
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r24243 r24813  
    414414        /** Virtual address of the IO bitmap. */
    415415        R0PTRTYPE(void *)           pIOBitmap;
     416
     417        /* HWCR msr (for diagnostics) */
     418        uint64_t                    msrHWCR;
    416419
    417420        /** SVM revision. */
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r24507 r24813  
    113113    struct
    114114    {
     115        /* HWCR msr (for diagnostics) */
     116        uint64_t                    msrHWCR;
     117
     118        /** SVM revision. */
     119        uint32_t                    u32Rev;
     120
     121        /** SVM feature bits from cpuid 0x8000000a */
     122        uint32_t                    u32Features;
     123
    115124        /** Set by the ring-0 driver to indicate SVM is supported by the CPU. */
    116125        bool                        fSupported;
    117 
    118         /** SVM revision. */
    119         uint32_t                    u32Rev;
    120 
    121         /** SVM feature bits from cpuid 0x8000000a */
    122         uint32_t                    u32Features;
    123126    } svm;
    124127    /** Saved error from detection */
     
    367370                    /* Query AMD features. */
    368371                    ASMCpuId(0x8000000A, &HWACCMR0Globals.svm.u32Rev, &HWACCMR0Globals.uMaxASID, &u32Dummy, &HWACCMR0Globals.svm.u32Features);
    369 
     372                    /* Read the HWCR msr for diagnostics. */
     373                    HWACCMR0Globals.svm.msrHWCR    = ASMRdMsr(MSR_K8_HWCR);
    370374                    HWACCMR0Globals.svm.fSupported = true;
    371375                }
     
    908912    pVM->hwaccm.s.vmx.msr.vmx_vmcs_enum     = HWACCMR0Globals.vmx.msr.vmx_vmcs_enum;
    909913    pVM->hwaccm.s.vmx.msr.vmx_eptcaps       = HWACCMR0Globals.vmx.msr.vmx_eptcaps;
     914    pVM->hwaccm.s.svm.msrHWCR               = HWACCMR0Globals.svm.msrHWCR;
    910915    pVM->hwaccm.s.svm.u32Rev                = HWACCMR0Globals.svm.u32Rev;
    911916    pVM->hwaccm.s.svm.u32Features           = HWACCMR0Globals.svm.u32Features;
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