VirtualBox

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


Ignore:
Timestamp:
Jun 6, 2018 2:24:04 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
122946
Message:

EM,IEM,HM: Consolidated VMMHypercallsDisable/VMMHypercallsEnable into EMSetHypercallInstructionsEnabled and made the information available thru EMAreHypercallInstructionsEnabled(). Adjusted the vmmcall implementation so it works without HM. bugref:9044

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

Legend:

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

    r70979 r72462  
    345345    bool                    fForceRAW;
    346346
    347     uint8_t                 u8Padding[3];
     347    /** Set if hypercall instruction VMMCALL (AMD) & VMCALL (Intel) are enabled.
     348     * GIM sets this and the execution managers queries it.  Not saved, as GIM
     349     * takes care of that bit too.  */
     350    bool                    fHypercallEnabled;
     351
     352    /** Explicit padding. */
     353    uint8_t                 abPadding[2];
    348354
    349355    /** The number of instructions we've executed in IEM since switching to the
  • trunk/src/VBox/VMM/include/HMInternal.h

    r72343 r72462  
    727727    /** Whether \#UD needs to be intercepted (required by certain GIM providers). */
    728728    bool                        fGIMTrapXcptUD;
    729     /** Whether paravirt. hypercalls are enabled. */
    730     bool                        fHypercallsEnabled;
    731     uint8_t                     u8Alignment0[2];
     729    uint8_t                     u8Alignment0[3];
    732730
    733731    /** World switch exit counter. */
     
    11571155#endif /* IN_RING0 */
    11581156
     1157int hmSvmEmulateMovTpr(PVMCPU pVCpu, PCPUMCTX pCtx);
     1158
    11591159/** @} */
    11601160
  • trunk/src/VBox/VMM/include/HMInternal.mac

    r69111 r72462  
    7979
    8080        .fGIMTrapXcptUD         resb    1
    81         .fHypercallsEnabled     resb    1
    8281        alignb 8
    8382
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