acpi: fix DMAR device scope for IOAPIC
commit1b39bc1cf67eee07518ee05ce9306eaa53d868e4
authorPeter Xu <peterx@redhat.com>
Mon, 31 Oct 2016 07:34:39 +0000 (31 15:34 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 15 Nov 2016 15:20:36 +0000 (15 17:20 +0200)
tree448840ed044f2144648a3233e44ce8162ea59154
parent8e7a0a1616faa852d65427bbbb6296dffb38990d
acpi: fix DMAR device scope for IOAPIC

We should not use cpu_to_le16() here, instead each of device/function
value is stored in a 8 byte field.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
include/hw/acpi/acpi-defs.h