Changeset 85855 in vbox
- Timestamp:
- Aug 21, 2020 7:36:02 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 140024
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r85677 r85855 3617 3617 RT_ZERO(Ivrs); 3618 3618 3619 uint16_t const uIommuBus = 0; 3620 uint16_t const uIommuDev = RT_HI_U16(pThis->u32IommuAmdPciAddress); 3621 uint16_t const uIommuFn = RT_LO_U16(pThis->u32IommuAmdPciAddress); 3622 3619 3623 /* IVRS header. */ 3620 3624 acpiR3PrepareHeader(pThis, &Ivrs.Hdr.header, "IVRS", sizeof(Ivrs), ACPI_IVRS_FMT_REV_FIXED); … … 3635 3639 + sizeof(Ivrs.IvhdType10IoApic) 3636 3640 + sizeof(Ivrs.IvhdType10Hpet); 3637 Ivrs.IvhdType10.u16DeviceId = pThis->u32IommuAmdPciAddress;3641 Ivrs.IvhdType10.u16DeviceId = PCIBDF_MAKE(uIommuBus, VBOX_PCI_DEVFN_MAKE(uIommuDev, uIommuFn)); 3638 3642 Ivrs.IvhdType10.u16CapOffset = 0; /* 0=No multiple IOMMU functionality. */ 3639 3643 Ivrs.IvhdType10.u64BaseAddress = 0xfeb80000; /* MMIO base address: Taken from real hardware ACPI dumps. */ … … 4582 4586 4583 4587 /* Warn if the SB IOAPIC is not at the required address if an AMD IOMMU is configured. */ 4584 if ( pThis->u32Io cPciAddress4585 && pThis->u32SbIoApicPciAddress != VBOX_PCI_BDF_SB_IOAPIC)4588 if ( pThis->u32IommuAmdPciAddress 4589 && pThis->u32SbIoApicPciAddress != RT_MAKE_U32(VBOX_PCI_FN_SB_IOAPIC, VBOX_PCI_DEV_SB_IOAPIC)) 4586 4590 { 4587 4591 /** @todo Maybe make this a VM startup failure later. */
Note:
See TracChangeset
for help on using the changeset viewer.