VirtualBox

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


Ignore:
Timestamp:
Jun 15, 2011 4:42:55 PM (14 years ago)
Author:
vboxsync
Message:

DevAPIC: Locking reworking in progress.

File:
1 edited

Legend:

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

    r37452 r37475  
    315315    if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns))
    316316    {
    317         Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR));
    318         pdmLock(pVM);
    319         pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, u64Value);
    320         pdmUnlock(pVM);
    321         return VINF_SUCCESS;
     317        AssertPtr(pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR));
     318        return pVM->pdm.s.Apic.CTX_SUFF(pfnWriteMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, u64Value);
    322319    }
    323320    return VERR_PDM_NO_APIC_INSTANCE;
     
    338335    if (pVM->pdm.s.Apic.CTX_SUFF(pDevIns))
    339336    {
    340         Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR));
    341         pdmLock(pVM);
    342         pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, pu64Value);
    343         pdmUnlock(pVM);
    344         return VINF_SUCCESS;
     337        AssertPtr(pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR));
     338        pdmLock(pVM);
     339        int rc = pVM->pdm.s.Apic.CTX_SUFF(pfnReadMSR)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), iCpu, u32Reg, pu64Value);
     340        pdmUnlock(pVM);
     341        return rc;
    345342    }
    346343    return VERR_PDM_NO_APIC_INSTANCE;
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