VirtualBox

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


Ignore:
Timestamp:
Apr 7, 2015 3:21:45 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99415
Message:

VMM: GIM raw-mode support.

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

Legend:

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

    r55037 r55118  
    193193typedef struct GIMKVM
    194194{
    195     /** @name MSRs. */
    196195    /** Wall-clock MSR. */
    197196    uint64_t                    u64WallClockMsr;
    198     /** @} */
    199 
    200     /** @name CPUID features. */
    201     /** Basic features. */
     197
     198    /**  CPUID features: Basic. */
    202199    uint32_t                    uBaseFeat;
    203     /** @} */
    204 
    205     /** Whether we need to trap #UD exceptions. */
     200
     201    /** Whether GIM needs to trap #UD exceptions. */
    206202    bool                        fTrapXcptUD;
     203    /** Disassembler opcode of hypercall instruction native for this host CPU. */
     204    uint16_t                    uOpCodeNative;
    207205} GIMKVM;
    208206/** Pointer to per-VM GIM KVM instance data. */
     
    264262VMM_INT_DECL(VBOXSTRICTRC)      gimKvmWriteMsr(PVMCPU pVCpu, uint32_t idMsr, PCCPUMMSRRANGE pRange, uint64_t uRawValue);
    265263VMM_INT_DECL(bool)              gimKvmShouldTrapXcptUD(PVM pVM);
    266 VMM_INT_DECL(int)               gimKvmXcptUD(PVMCPU pVCpu, PCPUMCTX pCtx);
     264VMM_INT_DECL(int)               gimKvmXcptUD(PVMCPU pVCpu, PCPUMCTX pCtx, PDISCPUSTATE pDis);
    267265
    268266
  • trunk/src/VBox/VMM/include/HMInternal.h

    r55037 r55118  
    344344    bool                        fTPRPatchingActive;
    345345    /** Whether #UD needs to be intercepted (required by certain GIM providers). */
    346     bool                        fTrapXcptUD;
    347     bool                        u8Alignment[2];
     346    bool                        fGIMTrapXcptUD;
     347    /** Whether paravirt. hypercalls are enabled. */
     348    bool                        fHypercallsEnabled;
     349    bool                        u8Alignment[1];
    348350
    349351    /** Host kernel flags that HM might need to know (SUPKERNELFEATURES_XXX). */
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