VirtualBox

Changeset 12684 in vbox for trunk/src/VBox/VMM/PDMDevice.cpp


Ignore:
Timestamp:
Sep 24, 2008 12:12:24 PM (16 years ago)
Author:
vboxsync
Message:

refactoring to simplify migration to per-CPU action flags

File:
1 edited

Legend:

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

    r12669 r12684  
    40084008    PVM pVM = pDevIns->Internal.s.pVMHC;
    40094009    LogFlow(("pdmR3PicHlp_SetInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT_PIC %d -> 1\n",
    4010              pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VM_FF_ISSET(pVM, VM_FF_INTERRUPT_PIC)));
    4011     VM_FF_SET(pVM, VM_FF_INTERRUPT_PIC);
     4010             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pVM, 0, VM_FF_INTERRUPT_PIC)));
     4011    /* for PIC we always deliver to CPU 0, MP use APIC */
     4012    VMCPU_FF_SET(pVM, 0, VM_FF_INTERRUPT_PIC);
    40124013    REMR3NotifyInterruptSet(pVM);
    40134014    VMR3NotifyFF(pVM, true);
     
    40204021    PDMDEV_ASSERT_DEVINS(pDevIns);
    40214022    LogFlow(("pdmR3PicHlp_ClearInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT_PIC %d -> 0\n",
    4022              pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VM_FF_ISSET(pDevIns->Internal.s.pVMHC, VM_FF_INTERRUPT_PIC)));
    4023     VM_FF_CLEAR(pDevIns->Internal.s.pVMHC, VM_FF_INTERRUPT_PIC);
     4023             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pDevIns->Internal.s.pVMHC, 0, VM_FF_INTERRUPT_PIC)));
     4024    /* for PIC we always deliver to CPU 0, MP use APIC */
     4025    VMCPU_FF_CLEAR(pDevIns->Internal.s.pVMHC, 0, VM_FF_INTERRUPT_PIC);
    40244026    REMR3NotifyInterruptClear(pDevIns->Internal.s.pVMHC);
    40254027}
     
    40774079    PDMDEV_ASSERT_DEVINS(pDevIns);
    40784080    PVM pVM = pDevIns->Internal.s.pVMHC;
    4079 #ifdef VBOX_WITH_SMP_GUESTS
    40804081    LogFlow(("pdmR3ApicHlp_SetInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT %d -> 1\n",
    40814082             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pVM, cpuid, VM_FF_INTERRUPT_APIC)));
    40824083    VMCPU_FF_SET(pVM, cpuid, VM_FF_INTERRUPT_APIC);
    4083 #else
    4084     LogFlow(("pdmR3ApicHlp_SetInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT %d -> 1\n",
    4085              pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VM_FF_ISSET(pVM, VM_FF_INTERRUPT_APIC)));
    4086     VM_FF_SET(pVM, VM_FF_INTERRUPT_APIC);
    4087 #endif
    40884084    REMR3NotifyInterruptSet(pVM);
    40894085    VMR3NotifyFF(pVM, true);
     
    40954091{
    40964092    PDMDEV_ASSERT_DEVINS(pDevIns);
    4097 #ifdef VBOX_WITH_SMP_GUESTS
    40984093    LogFlow(("pdmR3ApicHlp_ClearInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT %d -> 0\n",
    40994094             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VMCPU_FF_ISSET(pDevIns->Internal.s.pVMHC, cpuid, VM_FF_INTERRUPT_APIC)));
    41004095    VMCPU_FF_CLEAR(pDevIns->Internal.s.pVMHC, cpuid, VM_FF_INTERRUPT_APIC);
    4101 #else
    4102     LogFlow(("pdmR3ApicHlp_ClearInterruptFF: caller='%s'/%d: VM_FF_INTERRUPT %d -> 0\n",
    4103              pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VM_FF_ISSET(pDevIns->Internal.s.pVMHC, VM_FF_INTERRUPT_APIC)));
    4104     VM_FF_CLEAR(pDevIns->Internal.s.pVMHC, VM_FF_INTERRUPT_APIC);
    4105 #endif
    41064096    REMR3NotifyInterruptClear(pDevIns->Internal.s.pVMHC);
    41074097}
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