VirtualBox

Changeset 87521 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Feb 1, 2021 9:48:09 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142546
Message:

VMM/HM: Moved HM::fHostKernelFeatures to HMR0PERVM. Use the ring-0 uMaxAsid variable (made it a separate global variable), the one in the HM structure is just for ring-3 release logging. bugref:9217

File:
1 edited

Legend:

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

    r87519 r87521  
    484484    uint32_t                    cMaxResumeLoopsCfg;
    485485
    486     /** Maximum ASID allowed. */
    487     uint32_t                    uMaxAsid;
    488 
    489     /** Host kernel flags that HM might need to know (SUPKERNELFEATURES_XXX). */
    490     uint32_t                    fHostKernelFeatures;
    491 
    492486    struct
    493487    {
     
    647641    /** Last recorded error code during HM ring-0 init. */
    648642    int32_t                     rcInit;
     643    /** Maximum ASID allowed.
     644     * This is mainly for the release log.  */
     645    uint32_t                    uMaxAsidForLog;
     646    uint32_t                    u32Alignment2;
    649647
    650648    STAMCOUNTER                 StatTprPatchSuccess;
     
    670668    /** Set if we can support 64-bit guests or not. */
    671669    bool                        fAllow64BitGuests;
    672 
    673     bool                        afAlignment0[2];
     670    bool                        afAlignment0[2+4];
    674671
    675672    /** The maximum number of resumes loops allowed in ring-0 (safety precaution).
    676673     * This number is set much higher when RTThreadPreemptIsPending is reliable. */
    677674    uint32_t                    cMaxResumeLoops;
     675
     676    /** Host kernel flags that HM might need to know (SUPKERNELFEATURES_XXX). */
     677    uint32_t                    fHostKernelFeatures;
    678678
    679679    /** SVM specific data. */
     
    14221422
    14231423#ifdef IN_RING0
     1424extern uint32_t g_uHmMaxAsid;
     1425
    14241426VMMR0_INT_DECL(PHMPHYSCPU)  hmR0GetCurrentCpu(void);
    14251427VMMR0_INT_DECL(int)         hmR0EnterCpu(PVMCPUCC pVCpu);
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