VirtualBox

Changeset 79144 in vbox


Ignore:
Timestamp:
Jun 14, 2019 5:01:07 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Comments.

File:
1 edited

Legend:

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

    r79142 r79144  
    50095009            Assert(pVM->hm.s.fNestedPaging || (uXcptBitmap & RT_BIT(X86_XCPT_PF)));
    50105010
    5011             /* Apply the fixed CR0 bits and enable caching. */
     5011            /* Apply the hardware specified fixed CR0 bits and enable caching. */
    50125012            u64GuestCr0 |= fSetCr0;
    50135013            u64GuestCr0 &= fZapCr0;
     
    50375037             * originally supplied. We must copy those bits from the nested-guest CR0 into
    50385038             * the nested-guest CR0 read-shadow.
    5039              *
    5040              * Note! We are zapping away any CR0 fixed bits of our VMX emulation and applying
    5041              *       the hardware's VMX CR0 fixed bits here.
    50425039             */
    50435040            HMVMX_CPUMCTX_ASSERT(pVCpu, CPUMCTX_EXTRN_CR0);
     
    50475044            Assert(u64GuestCr0 & X86_CR0_NE);
    50485045
    5049             /* Apply the fixed CR0 bits and enable caching. */
     5046            /*
     5047             * Apply the hardware specified fixed CR0 bits and enable caching.
     5048             * Note! We could be altering our VMX emulation's fixed bits. We thus
     5049             *       need to re-apply them while importing CR0.
     5050             */
    50505051            u64GuestCr0 |= fSetCr0;
    50515052            u64GuestCr0 &= fZapCr0;
     
    52855286        }
    52865287
    5287         /* Apply the fixed CR4 bits (mainly CR4.VMXE). */
     5288        /*
     5289         * Apply the hardware specified fixed CR4 bits (mainly CR4.VMXE).
     5290         * Note! For nested-guests, we could be altering our VMX emulation's
     5291         *       fixed bits. We thus need to re-apply them while importing CR4.
     5292         */
    52885293        u64GuestCr4 |= fSetCr4;
    52895294        u64GuestCr4 &= fZapCr4;
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