mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
acpi: add DMAR scope definition for root IOAPIC
To enable interrupt remapping for intel IOMMU device, each IOAPIC device in the system reported via ACPI MADT must be explicitly enumerated under one specific remapping hardware unit. This patch adds the root-complex IOAPIC into the default DMAR device. Please refer to VT-d spec 8.3.1.1 for more information. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
d54bd7f80a
commit
cfc13df462
3 changed files with 38 additions and 3 deletions
|
@ -179,4 +179,12 @@ typedef struct Q35PCIHost {
|
|||
|
||||
uint64_t mch_mcfg_base(void);
|
||||
|
||||
/*
|
||||
* Arbitary but unique BNF number for IOAPIC device.
|
||||
*
|
||||
* TODO: make sure there would have no conflict with real PCI bus
|
||||
*/
|
||||
#define Q35_PSEUDO_BUS_PLATFORM (0xff)
|
||||
#define Q35_PSEUDO_DEVFN_IOAPIC (0x00)
|
||||
|
||||
#endif /* HW_Q35_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue