VirtualBox

Changeset 41223 in vbox for trunk/src


Ignore:
Timestamp:
May 9, 2012 9:57:35 AM (13 years ago)
Author:
vboxsync
Message:

VMM/VMMR0/HWVMXR0: minor cleanups.

File:
1 edited

Legend:

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

    r41213 r41223  
    139139
    140140    /*
    141      * Flush all VPIDs (in case we or anyother hypervisor have been using VPIDs) so that
    142      * we can avoid an explicit flush while using new VPIDs.
     141     * Flush all VPIDs (in case we or any other hypervisor have been using VPIDs) so that
     142     * we can avoid an explicit flush while using new VPIDs. We would still need to flush
     143     * each time while reusing a VPID after hitting the MaxASID limit once.
    143144     */
    144145    if (   pVM
     
    391392    AssertReturn(pVM, VERR_INVALID_PARAMETER);
    392393
    393     /* Initialize these always.*/
     394    /* Initialize these always, see hwaccmR3InitFinalizeR0().*/
    394395    pVM->hwaccm.s.vmx.enmFlushEPT  = VMX_FLUSH_EPT_NONE;
    395396    pVM->hwaccm.s.vmx.enmFlushVPID = VMX_FLUSH_VPID_NONE;
     
    45674568        else
    45684569        {
     4570            AssertPtr(pVCpu);
    45694571            Assert(pVCpu->hwaccm.s.uCurrentASID != 0);
    45704572            descriptor[0] = pVCpu->hwaccm.s.uCurrentASID;
     
    45724574        }
    45734575        int rc = VMXR0InvVPID(enmFlush, &descriptor[0]); NOREF(rc);
    4574         AssertMsg(rc == VINF_SUCCESS, ("VMXR0InvVPID %x %x %RGv failed with %d\n", enmFlush, pVCpu->hwaccm.s.uCurrentASID, GCPtr, rc));
     4576        AssertMsg(rc == VINF_SUCCESS,
     4577                  ("VMXR0InvVPID %x %x %RGv failed with %d\n", enmFlush, pVCpu ? pVCpu->hwaccm.s.uCurrentASID : 0, GCPtr, rc));
    45754578    }
    45764579}
     
    46194622/**
    46204623 * Invalidates a guest page by physical address. Only relevant for EPT/VPID,
    4621  * otherwise ther eis nothing really to invalidate.
     4624 * otherwise there is nothing really to invalidate.
    46224625 *
    46234626 * NOTE: Assumes the current instruction references this physical page though a virtual address!!
     
    46304633VMMR0DECL(int) VMXR0InvalidatePhysPage(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys)
    46314634{
    4632     bool fFlushPending = VMCPU_FF_ISSET(pVCpu, VMCPU_FF_TLB_FLUSH);
    4633 
    46344635    LogFlow(("VMXR0InvalidatePhysPage %RGp\n", GCPhys));
    46354636
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