VirtualBox

Ignore:
Timestamp:
Jun 30, 2020 5:19:25 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138905
Message:

AMD IOMMU: bugref:9654 PDM, Main: Changes for southbridge I/O APIC and related PCI address assignment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    r84868 r85007  
    2424#include <VBox/vmm/hm.h>
    2525#include <VBox/msi.h>
     26#include <Vbox/pci.h>
    2627#include <VBox/vmm/pdmdev.h>
    2728
     
    165166#define IOAPIC_DIRECT_OFF_DATA                  0x10
    166167#define IOAPIC_DIRECT_OFF_EOI                   0x40    /* Newer I/O APIC only. */
    167 
    168 /** The I/O APIC's Bus:Device:Function. */
    169 #define IOAPIC_BUS_DEV_FN                       NIL_PCIBDF
    170168
    171169/* Use PDM critsect for now for I/O APIC locking, see @bugref{8245#c121}. */
     
    657655        uint32_t const uPinMask = UINT32_C(1) << idxRte;
    658656        if (pThis->uIrr & uPinMask)
    659             ioapicSignalIntrForRte(pDevIns, pThis, pThisCC, IOAPIC_BUS_DEV_FN, idxRte);
     657            ioapicSignalIntrForRte(pDevIns, pThis, pThisCC, VBOX_PCI_BDF_SB_IOAPIC, idxRte);
    660658
    661659        IOAPIC_UNLOCK(pDevIns, pThis, pThisCC);
     
    772770                uint32_t const uPinMask = UINT32_C(1) << idxRte;
    773771                if (pThis->uIrr & uPinMask)
    774                     ioapicSignalIntrForRte(pDevIns, pThis, pThisCC, IOAPIC_BUS_DEV_FN, idxRte);
     772                    ioapicSignalIntrForRte(pDevIns, pThis, pThisCC, VBOX_PCI_BDF_SB_IOAPIC, idxRte);
    775773            }
    776774        }
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