[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stable-9.2.4 10/34] hw/i386/amd_iommu: Assign pci-id 0x1419 for the AMD
From: |
Michael Tokarev |
Subject: |
[Stable-9.2.4 10/34] hw/i386/amd_iommu: Assign pci-id 0x1419 for the AMD IOMMU device |
Date: |
Wed, 14 May 2025 15:57:32 +0300 |
From: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
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 <suravee.suthikulpanit@amd.com>
Message-Id: <20250325021140.5676-1-suravee.suthikulpanit@amd.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Yan Vugenfirer <yvugenfi@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 719255486df2fcbe1b8599786b37f4bb80272f1a)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c
index ffb234fb5c..23584f89ab 100644
--- a/hw/i386/amd_iommu.c
+++ b/hw/i386/amd_iommu.c
@@ -1716,6 +1716,7 @@ static void amdvi_pci_class_init(ObjectClass *klass, void
*data)
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
k->vendor_id = PCI_VENDOR_ID_AMD;
+ k->device_id = 0x1419;
k->class_id = 0x0806;
k->realize = amdvi_pci_realize;
--
2.39.5
- [Stable-9.2.4 07/34] target/mips: Simplify and fix update_pagemask, (continued)
- [Stable-9.2.4 07/34] target/mips: Simplify and fix update_pagemask, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 05/34] target/mips: Revert TARGET_PAGE_BITS_VARY, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 06/34] target/mips: Require even maskbits in update_pagemask, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 14/34] scsi-disk: Apply error policy for host_status errors again, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 11/34] tcg: Allocate TEMP_VAL_MEM frame in temp_load(), Michael Tokarev, 2025/05/14
- [Stable-9.2.4 08/34] migration: fix SEEK_CUR offset calculation in qio_channel_block_seek, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 09/34] virtio-net: Fix num_buffers for version 1, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 12/34] target/ppc: Big-core scratch register fix, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 13/34] target/ppc: Fix SPRC/SPRD SPRs for P9/10, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 15/34] smbios: Fix buffer overrun when using path= option, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 10/34] hw/i386/amd_iommu: Assign pci-id 0x1419 for the AMD IOMMU device,
Michael Tokarev <=
- [Stable-9.2.4 16/34] plugins/loader: fix deadlock when resetting/uninstalling a plugin, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 17/34] Fix objdump output parser in "nsis.py", Michael Tokarev, 2025/05/14
- [Stable-9.2.4 18/34] Revert "virtio-net: Copy received header to buffer", Michael Tokarev, 2025/05/14
- [Stable-9.2.4 20/34] target/avr: Improve decode of LDS, STS, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 23/34] target/mips: Fix MIPS16e translation, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 21/34] hw/core: Get default_cpu_type calling machine_class_default_cpu_type(), Michael Tokarev, 2025/05/14
- [Stable-9.2.4 25/34] meson: Remove CONFIG_STATX and CONFIG_STATX_MNT_ID, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 22/34] hw/core/cpu: gdb_arch_name string should not be freed, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 27/34] target/arm: Don't assert() for ISB/SB inside IT block, Michael Tokarev, 2025/05/14
- [Stable-9.2.4 19/34] target/i386/hvf: fix lflags_to_rflags, Michael Tokarev, 2025/05/14