Skip to content

Commit 7192554

Browse files
ssuthiku-amdmstsirkin
authored andcommitted
hw/i386/amd_iommu: Assign pci-id 0x1419 for the AMD IOMMU device
Currently, the QEMU-emulated AMD IOMMU device use PCI vendor id 0x1022 (AMD) with device id zero (undefined). Eventhough this does not cause any functional issue for AMD IOMMU driver since it normally uses information in the ACPI IVRS table to probe and initialize the device per recommendation in the AMD IOMMU specification, the device id zero causes the Windows Device Manager utility to show the device as an unknown device. Since Windows only recognizes AMD IOMMU device with device id 0x1419 as listed in the machine.inf file, modify the QEMU AMD IOMMU model to use the id 0x1419 to avoid the issue. This advertise the IOMMU as the AMD IOMMU device for Family 15h (Models 10h-1fh). Signed-off-by: Suravee Suthikulpanit <[email protected]> Message-Id: <[email protected]> Reviewed-by: Daniel P. Berrangé <[email protected]> Reviewed-by: Yan Vugenfirer <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent c17ad4b commit 7192554

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hw/i386/amd_iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,7 @@ static void amdvi_pci_class_init(ObjectClass *klass, void *data)
17061706
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
17071707

17081708
k->vendor_id = PCI_VENDOR_ID_AMD;
1709+
k->device_id = 0x1419;
17091710
k->class_id = 0x0806;
17101711
k->realize = amdvi_pci_realize;
17111712

0 commit comments

Comments
 (0)