summaryrefslogtreecommitdiff
path: root/hw/i386
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2018-03-29 14:51:28 +0200
committerMichael S. Tsirkin <mst@redhat.com>2018-06-26 21:58:03 +0300
commit0b363b61f1b7530572d7f4d26a3cff390a2100d5 (patch)
tree8fef4284a90f51c0411b6a8ed1933046da9ce9d3 /hw/i386
parent00928a421d47f49691cace1207481b7aad31b1f1 (diff)
downloadqemu-0b363b61f1b7530572d7f4d26a3cff390a2100d5.zip
hw/i386: Fix IVHD entry length for AMD IOMMU
Counting from the IVHD ID field to the all-devices entry, we have 28 bytes, not 36. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r--hw/i386/acpi-build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
index 9bc6d97ea1..fff1059a31 100644
--- a/hw/i386/acpi-build.c
+++ b/hw/i386/acpi-build.c
@@ -2537,7 +2537,7 @@ build_amd_iommu(GArray *table_data, BIOSLinker *linker)
(1UL << 7), /* PPRSup */
1);
/* IVHD length */
- build_append_int_noprefix(table_data, 0x24, 2);
+ build_append_int_noprefix(table_data, 28, 2);
/* DeviceID */
build_append_int_noprefix(table_data, s->devid, 2);
/* Capability offset */