VirtualBox

Changeset 53627 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 31, 2014 3:37:56 PM (10 years ago)
Author:
vboxsync
Message:

HMVMXR0.cpp: Assert that EFLAGS are valid.

File:
1 edited

Legend:

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

    r53613 r53627  
    36233623        Assert(!(pMixedCtx->rflags.u64 >> 32));
    36243624        X86EFLAGS Eflags = pMixedCtx->eflags;
     3625        /** @todo r=bird: There shall be no need to OR in X86_EFL_1 here, nor
     3626         * shall there be any reason for clearing bits 63:22, 15, 5 and 3.
     3627         * These will never be cleared/set, unless some other part of the VMM
     3628         * code is buggy - in which case we're better of finding and fixing
     3629         * those bugs than hiding them. */
     3630        Assert(Eflags.u32 & X86_EFL_RA1_MASK);
     3631        Assert(!(Eflags.u32 & ~(X86_EFL_1 | X86_EFL_LIVE_MASK)));
    36253632        Eflags.u32 &= VMX_EFLAGS_RESERVED_0;                   /* Bits 22-31, 15, 5 & 3 MBZ. */
    36263633        Eflags.u32 |= VMX_EFLAGS_RESERVED_1;                   /* Bit 1 MB1. */
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