VirtualBox

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


Ignore:
Timestamp:
Feb 3, 2021 11:21:28 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142585
Message:

VMM/HMVMX: Moved/copy last branch stuff from HM::vmxUse to HMR0PERVM::vmx. bugref:9217

File:
1 edited

Legend:

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

    r87557 r87558  
    522522        bool                        fUseVmcsShadowingForRing3;
    523523        /** Set if Last Branch Record (LBR) is enabled. */
    524         bool                        fLbr;
    525         bool                        fAlignment2;
    526 
    527         /** The host LBR TOS (top-of-stack) MSR id. */
    528         uint32_t                    idLbrTosMsr;
     524        bool                        fLbrCfg;
     525        bool                        afAlignment2[5];
    529526
    530527        /** The first valid host LBR branch-from-IP stack range. */
    531         uint32_t                    idLbrFromIpMsrFirst;
     528        uint32_t                    idLbrFromIpMsrFirstForRing3;
    532529        /** The last valid host LBR branch-from-IP stack range. */
    533         uint32_t                    idLbrFromIpMsrLast;
     530        uint32_t                    idLbrFromIpMsrLastForRing3;
    534531
    535532        /** The first valid host LBR branch-to-IP stack range. */
    536         uint32_t                    idLbrToIpMsrFirst;
     533        uint32_t                    idLbrToIpMsrFirstForRing3;
    537534        /** The last valid host LBR branch-to-IP stack range. */
    538         uint32_t                    idLbrToIpMsrLast;
     535        uint32_t                    idLbrToIpMsrLastForRing3;
    539536
    540537        /** Host-physical address for a failing VMXON instruction (for diagnostics, ring-3). */
     
    649646        /** Whether to use VMCS shadowing. */
    650647        bool                        fUseVmcsShadowing;
    651         bool                        afAlignment1[1];
     648        /** Set if Last Branch Record (LBR) is enabled. */
     649        bool                        fLbr;
    652650        /** Set if VPID is supported (copy in HM::vmx::fVpidForRing3). */
    653651        bool                        fVpid;
     
    658656        /** Flush type to use for INVVPID. */
    659657        VMXTLBFLUSHVPID             enmTlbFlushVpid;
     658
     659        /** The first valid host LBR branch-from-IP stack range. */
     660        uint32_t                    idLbrFromIpMsrFirst;
     661        /** The last valid host LBR branch-from-IP stack range. */
     662        uint32_t                    idLbrFromIpMsrLast;
     663
     664        /** The first valid host LBR branch-to-IP stack range. */
     665        uint32_t                    idLbrToIpMsrFirst;
     666        /** The last valid host LBR branch-to-IP stack range. */
     667        uint32_t                    idLbrToIpMsrLast;
     668
     669        /** The host LBR TOS (top-of-stack) MSR id. */
     670        uint32_t                    idLbrTosMsr;
     671        uint32_t                    u32Alignment1;
    660672
    661673        /** Virtual address of the APIC-access page. */
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