VirtualBox

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


Ignore:
Timestamp:
Apr 18, 2019 3:54:40 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130138
Message:

PDM,APIC,PIC: Don't use AssertRelease on VMCPU_FF_INTERRUPT_PIC, VMCPU_FF_INTERRUPT_APIC and friends during restore. Instead added debug assertions in the relevant functions causing these to be set by misbehaving device state loaders. ticketref:18331 ticketref:18265

File:
1 edited

Legend:

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

    r78206 r78208  
    29792979static void apicSetInterruptFF(PVMCPU pVCpu, PDMAPICIRQ enmType)
    29802980{
     2981#ifdef IN_RING3
     2982    /* IRQ state should be loaded as-is by "LoadExec". Changes can be made from LoadDone. */
     2983    Assert(pVCpu->pVMR3->enmVMState != VMSTATE_LOADING || PDMR3HasLoadedState(pVCpu->pVMR3));
     2984#endif
     2985
    29812986    switch (enmType)
    29822987    {
     
    30353040VMM_INT_DECL(void) apicClearInterruptFF(PVMCPU pVCpu, PDMAPICIRQ enmType)
    30363041{
     3042#ifdef IN_RING3
     3043    /* IRQ state should be loaded as-is by "LoadExec". Changes can be made from LoadDone. */
     3044    Assert(pVCpu->pVMR3->enmVMState != VMSTATE_LOADING || PDMR3HasLoadedState(pVCpu->pVMR3));
     3045#endif
     3046
    30373047    /* NMI/SMI can't be cleared. */
    30383048    switch (enmType)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette