VirtualBox

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


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

VMM/HM: Make a R0 copy of HM::cMaxResumeLoopsCfg and do proper validation. bugref:9217

File:
1 edited

Legend:

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

    r87518 r87519  
    443443     *  Config value that is copied to HMR0PERVM::fAllow64BitGuests on setup. */
    444444    bool                        fAllow64BitGuestsCfg;
     445    /** Set when we initialize VT-x or AMD-V once for all CPUs. */
     446    bool                        fGlobalInit;
    445447    /** Set when TPR patching is allowed. */
    446448    bool                        fTprPatchingAllowed;
    447     /** Set when we initialize VT-x or AMD-V once for all CPUs. */
    448     bool                        fGlobalInit;
    449449    /** Set when TPR patching is active. */
    450450    bool                        fTPRPatchingActive;
     
    452452     *  us to use the debug execution loop in ring-0. */
    453453    bool                        fUseDebugLoop;
    454     /** Set if hardware APIC virtualization is enabled. */
     454    /** Set if hardware APIC virtualization is enabled.
     455     * @todo Not really used by HM, move to APIC where it's actually used.  */
    455456    bool                        fVirtApicRegs;
    456     /** Set if posted interrupt processing is enabled. */
     457    /** Set if posted interrupt processing is enabled.
     458     * @todo Not really used by HM, move to APIC where it's actually used.  */
    457459    bool                        fPostedIntrs;
    458     /** Set if indirect branch prediction barrier on VM exit. */
     460    /** Set if indirect branch prediction barrier on VM exit.
     461     *  @todo 9217: copy to ring-0 and validate capability */
    459462    bool                        fIbpbOnVmExit;
    460     /** Set if indirect branch prediction barrier on VM entry. */
     463    /** Set if indirect branch prediction barrier on VM entry.
     464     *  @todo 9217: copy to ring-0 and validate capability */
    461465    bool                        fIbpbOnVmEntry;
    462     /** Set if level 1 data cache should be flushed on VM entry. */
     466    /** Set if level 1 data cache should be flushed on VM entry.
     467     *  @todo 9217: copy to ring-0 and validate capability */
    463468    bool                        fL1dFlushOnVmEntry;
    464     /** Set if level 1 data cache should be flushed on EMT scheduling. */
     469    /** Set if level 1 data cache should be flushed on EMT scheduling.
     470     *  @todo 9217: copy to ring-0 and validate capability */
    465471    bool                        fL1dFlushOnSched;
    466     /** Set if host manages speculation control settings. */
     472    /** Set if host manages speculation control settings.
     473     * @todo doesn't do anything ...  */
    467474    bool                        fSpecCtrlByHost;
    468475    /** Set if MDS related buffers should be cleared on VM entry. */
     
    475482    /** The maximum number of resumes loops allowed in ring-0 (safety precaution).
    476483     * This number is set much higher when RTThreadPreemptIsPending is reliable. */
    477     uint32_t                    cMaxResumeLoops;
     484    uint32_t                    cMaxResumeLoopsCfg;
    478485
    479486    /** Maximum ASID allowed. */
     
    664671    bool                        fAllow64BitGuests;
    665672
    666     bool                        afAlignment0[6];
     673    bool                        afAlignment0[2];
     674
     675    /** The maximum number of resumes loops allowed in ring-0 (safety precaution).
     676     * This number is set much higher when RTThreadPreemptIsPending is reliable. */
     677    uint32_t                    cMaxResumeLoops;
    667678
    668679    /** SVM specific data. */
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