VirtualBox

Changeset 67051 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 24, 2017 7:41:42 AM (8 years ago)
Author:
vboxsync
Message:

VMM/APIC: Assertion is sufficient, caller is responsible for calling only when an APIC is present.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r67050 r67051  
    33083308    AssertReturn(pR0Ptr,  VERR_INVALID_PARAMETER);
    33093309
    3310     if (PDMHasApic(pVCpu->CTX_SUFF(pVM)))
    3311     {
    3312         PCAPICCPU pApicCpu = VMCPU_TO_APICCPU(pVCpu);
    3313         *pHCPhys = pApicCpu->HCPhysApicPage;
    3314         *pR0Ptr  = pApicCpu->pvApicPageR0;
    3315         if (pR3Ptr)
    3316             *pR3Ptr  = pApicCpu->pvApicPageR3;
    3317         if (pRCPtr)
    3318             *pRCPtr  = pApicCpu->pvApicPageRC;
    3319         return VINF_SUCCESS;
    3320     }
    3321 
    3322     *pHCPhys = 0;
    3323     *pR0Ptr  = NIL_RTR0PTR;
     3310    Assert(PDMHasApic(pVCpu->CTX_SUFF(pVM)));
     3311
     3312    PCAPICCPU pApicCpu = VMCPU_TO_APICCPU(pVCpu);
     3313    *pHCPhys = pApicCpu->HCPhysApicPage;
     3314    *pR0Ptr  = pApicCpu->pvApicPageR0;
    33243315    if (pR3Ptr)
    3325         *pR3Ptr  = NIL_RTR3PTR;
     3316        *pR3Ptr  = pApicCpu->pvApicPageR3;
    33263317    if (pRCPtr)
    3327         *pRCPtr  = NIL_RTRCPTR;
    3328     return VERR_PDM_NO_APIC_INSTANCE;
    3329 }
    3330 
     3318        *pRCPtr  = pApicCpu->pvApicPageRC;
     3319    return VINF_SUCCESS;
     3320}
     3321
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