VirtualBox

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


Ignore:
Timestamp:
Sep 12, 2019 4:43:35 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133294
Message:

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

File:
1 edited

Legend:

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

    r80690 r80742  
    53165316        PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo;
    53175317
    5318         /*
    5319          * Figure out fixed CR0 bits in VMX operation.
    5320          */
    53215318        uint64_t       fSetCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed0;
    53225319        uint64_t const fZapCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed1;
     
    54155412            Assert(pVM->hm.s.fNestedPaging || (uXcptBitmap & RT_BIT(X86_XCPT_PF)));
    54165413
    5417             /* Apply the hardware specified fixed CR0 bits and enable caching. */
     5414            /* Apply the hardware specified CR0 fixed bits and enable caching. */
    54185415            u64GuestCr0 |= fSetCr0;
    54195416            u64GuestCr0 &= fZapCr0;
     
    54555452            Assert(u64GuestCr0 & X86_CR0_NE);
    54565453
    5457             /* Apply the hardware specified fixed CR0 bits and enable caching. */
     5454            /* Apply the hardware specified CR0 fixed bits and enable caching. */
    54585455            u64GuestCr0 |= fSetCr0;
    54595456            u64GuestCr0 &= fZapCr0;
     
    56035600    if (ASMAtomicUoReadU64(&pVCpu->hm.s.fCtxChanged) & HM_CHANGED_GUEST_CR4)
    56045601    {
    5605         PCPUMCTX     pCtx        = &pVCpu->cpum.GstCtx;
    5606         PVMXVMCSINFO pVmcsInfo   = pVmxTransient->pVmcsInfo;
    5607 
    5608         /*
    5609          * Figure out fixed CR4 bits in VMX operation.
    5610          */
     5602        PCPUMCTX     pCtx      = &pVCpu->cpum.GstCtx;
     5603        PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo;
     5604
    56115605        uint64_t const fSetCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed0;
    56125606        uint64_t const fZapCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed1;
     
    56945688        }
    56955689
    5696         /* Apply the hardware specified fixed CR4 bits (mainly CR4.VMXE). */
     5690        /* Apply the hardware specified CR4 fixed bits (mainly CR4.VMXE). */
    56975691        u64GuestCr4 |= fSetCr4;
    56985692        u64GuestCr4 &= fZapCr4;
     
    92479241        uint64_t       fSetCr0 = (pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr0Fixed1);
    92489242        uint64_t const fZapCr0 = (pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr0Fixed1);
    9249         /* Exceptions for unrestricted guest execution for fixed CR0 bits (PE, PG).
     9243        /* Exceptions for unrestricted guest execution for CR0 fixed bits (PE, PG).
    92509244           See Intel spec. 26.3.1 "Checks on Guest Control Registers, Debug Registers and MSRs." */
    92519245        if (fUnrestrictedGuest)
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