VirtualBox

Changeset 48700 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 26, 2013 7:34:12 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0, HMSVMR0: Alignment and assert.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r48668 r48700  
    205205    uint8_t         abAlignment0[7];
    206206
    207     /** Whether the TSC_AUX MSR needs restoring on #VMEXIT. */
    208     bool            fRestoreTscAuxMsr;
    209     /** Whether the #VMEXIT was caused by a page-fault during delivery of a
    210      *  contributary exception or a page-fault. */
    211     bool            fVectoringPF;
    212     /** Whether the TSC offset mode needs to be updated. */
    213     bool            fUpdateTscOffsetting;
    214207    /** Whether the guest FPU state was active at the time of #VMEXIT. */
    215208    bool            fWasGuestFPUStateActive;
     
    218211    /** Whether the hyper debug state was active at the time of #VMEXIT. */
    219212    bool            fWasHyperDebugStateActive;
     213    /** Whether the TSC offset mode needs to be updated. */
     214    bool            fUpdateTscOffsetting;
     215    /** Whether the TSC_AUX MSR needs restoring on #VMEXIT. */
     216    bool            fRestoreTscAuxMsr;
     217    /** Whether the #VMEXIT was caused by a page-fault during delivery of a
     218     *  contributary exception or a page-fault. */
     219    bool            fVectoringPF;
    220220} SVMTRANSIENT, *PSVMTRANSIENT;
    221 AssertCompileMemberAlignment(SVMTRANSIENT, u64ExitCode,       sizeof(uint64_t));
    222 AssertCompileMemberAlignment(SVMTRANSIENT, fRestoreTscAuxMsr, sizeof(uint64_t));
     221AssertCompileMemberAlignment(SVMTRANSIENT, u64ExitCode,             sizeof(uint64_t));
     222AssertCompileMemberAlignment(SVMTRANSIENT, fWasGuestFPUStateActive, sizeof(uint64_t));
    223223/** @}  */
    224224
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r48651 r48700  
    257257    /** Mask of currently read VMCS fields; HMVMX_UPDATED_TRANSIENT_*. */
    258258    uint32_t        fVmcsFieldsRead;
    259     /** Whether TSC-offsetting should be setup before VM-entry. */
    260     bool            fUpdateTscOffsettingAndPreemptTimer;
    261     /** Whether the VM-exit was caused by a page-fault during delivery of a
    262      *  contributory exception or a page-fault. */
    263     bool            fVectoringPF;
     259
    264260    /** Whether the guest FPU was active at the time of VM-exit. */
    265261    bool            fWasGuestFPUStateActive;
     
    268264    /** Whether the hyper debug state was active at the time of VM-exit. */
    269265    bool            fWasHyperDebugStateActive;
     266    /** Whether TSC-offsetting should be setup before VM-entry. */
     267    bool            fUpdateTscOffsettingAndPreemptTimer;
     268    /** Whether the VM-exit was caused by a page-fault during delivery of a
     269     *  contributory exception or a page-fault. */
     270    bool            fVectoringPF;
    270271} VMXTRANSIENT;
    271 AssertCompileMemberAlignment(VMXTRANSIENT, uExitReason,    sizeof(uint64_t));
    272 AssertCompileMemberAlignment(VMXTRANSIENT, uExitIntrInfo,  sizeof(uint64_t));
    273 AssertCompileMemberAlignment(VMXTRANSIENT, uEntryIntrInfo, sizeof(uint64_t));
     272AssertCompileMemberAlignment(VMXTRANSIENT, uExitReason,             sizeof(uint64_t));
     273AssertCompileMemberAlignment(VMXTRANSIENT, uExitIntrInfo,           sizeof(uint64_t));
     274AssertCompileMemberAlignment(VMXTRANSIENT, uEntryIntrInfo,          sizeof(uint64_t));
     275AssertCompileMemberAlignment(VMXTRANSIENT, fWasGuestFPUStateActive, sizeof(uint64_t));
    274276AssertCompileMemberSize(VMXTRANSIENT, ExitInstrInfo, sizeof(uint32_t));
    275277/** Pointer to VMX transient state. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette