VirtualBox

Changeset 21688 in vbox


Ignore:
Timestamp:
Jul 17, 2009 1:50:40 PM (16 years ago)
Author:
vboxsync
Message:

TPR caching updates

File:
1 edited

Legend:

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

    r21667 r21688  
    17981798        LogFlow(("Nested page fault at %RGv cr2=%RGp error code %x\n", (RTGCPTR)pCtx->rip, uFaultAddress, errCode));
    17991799
    1800 #if 0
     1800#ifdef VBOX_HWACCM_WITH_GUEST_PATCHING
    18011801        /* Shortcut for APIC TPR reads and writes; 32 bits guests only */
    18021802        if (    (uFaultAddress & 0xfff) == 0x080
    18031803            &&  pVM->hwaccm.s.fHasIoApic
    18041804            &&  !(errCode & X86_TRAP_PF_P)  /* not present */
     1805            &&  CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0
    18051806            &&  !CPUMIsGuestInLongModeEx(pCtx))
    18061807        {
     
    18081809            PDMApicGetBase(pVM, &GCPhysApicBase);   /* @todo cache this */
    18091810            GCPhysApicBase &= PAGE_BASE_GC_MASK;
    1810 
    1811             Assert(CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0);
    18121811
    18131812            if (uFaultAddress == GCPhysApicBase + 0x80)
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