hw/i386: Fix IVHD entry length for AMD IOMMU
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 29 Mar 2018 12:51:28 +0000 (14:51 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Jun 2018 18:58:03 +0000 (21:58 +0300)
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>
hw/i386/acpi-build.c

index 9bc6d97ea1b98d07c12568b217c36e2e3ba7ca7c..fff1059a31bf3e09646fbdc0131b3e8cbd494c2e 100644 (file)
@@ -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 */