VirtualBox

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


Ignore:
Timestamp:
Jun 22, 2011 9:54:26 AM (13 years ago)
Author:
vboxsync
Message:

VMM: Check for VMCPU_FF_PDM_CRITSECT in R0 and RC.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r37452 r37584  
    483483            if (VM_FF_ISPENDING(pVM, VM_FF_TM_VIRTUAL_SYNC))
    484484                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3TMVirt);
    485             else
    486             if (VM_FF_ISPENDING(pVM, VM_FF_PGM_NEED_HANDY_PAGES))
     485            else if (VM_FF_ISPENDING(pVM, VM_FF_PGM_NEED_HANDY_PAGES))
    487486                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3HandyPages);
    488             else
    489             if (VM_FF_ISPENDING(pVM, VM_FF_PDM_QUEUES))
     487            else if (VM_FF_ISPENDING(pVM, VM_FF_PDM_QUEUES))
    490488                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3PDMQueues);
    491             else
    492             if (VM_FF_ISPENDING(pVM, VM_FF_EMT_RENDEZVOUS))
     489            else if (VM_FF_ISPENDING(pVM, VM_FF_EMT_RENDEZVOUS))
    493490                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3Rendezvous);
    494             else
    495             if (VM_FF_ISPENDING(pVM, VM_FF_PDM_DMA))
     491            else if (VM_FF_ISPENDING(pVM, VM_FF_PDM_DMA))
    496492                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3DMA);
    497             else
    498             if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TIMER))
     493            else if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TIMER))
    499494                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3Timer);
    500             else
    501             if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_PDM_CRITSECT))
     495            else if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_PDM_CRITSECT))
    502496                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3CritSect);
    503             else
    504             if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TO_R3))
     497            else if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TO_R3))
    505498                STAM_COUNTER_INC(&pVM->vmm.s.StatRZRetToR3);
    506499            else
  • trunk/src/VBox/VMM/VMMRC/TRPMRCHandlers.cpp

    r35346 r37584  
    187187    if (    rc == VINF_SUCCESS
    188188        &&  (   VM_FF_ISPENDING(pVM, VM_FF_TM_VIRTUAL_SYNC | VM_FF_REQUEST | VM_FF_PGM_NO_MEMORY | VM_FF_PDM_DMA)
    189              || VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TIMER | VMCPU_FF_TO_R3 | VMCPU_FF_INTERRUPT_APIC | VMCPU_FF_INTERRUPT_PIC | VMCPU_FF_REQUEST | VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL)
     189             || VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TIMER | VMCPU_FF_TO_R3 | VMCPU_FF_INTERRUPT_APIC | VMCPU_FF_INTERRUPT_PIC
     190                                          | VMCPU_FF_REQUEST | VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL
     191                                          | VMCPU_FF_PDM_CRITSECT)
    190192            )
    191193       )
     
    195197            rc = VINF_EM_NO_MEMORY;
    196198        /* Pending Ring-3 action. */
    197         else if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TO_R3))
     199        else if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_TO_R3 | VMCPU_FF_PDM_CRITSECT))
    198200        {
    199201            VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_TO_R3);
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