amd_iommu: fix wrong MMIO operations
commite526ab61e95059e4eaec636bfdedbf6695347cb2
authorRoman Kapl <rka@sysgo.com>
Tue, 27 Apr 2021 11:05:04 +0000 (27 13:05 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 14 May 2021 14:26:18 +0000 (14 10:26 -0400)
treeb64d32d62c636046f043e2057793b811817c1cbc
parentad6461ad6eb3cf36c5d535da5f036f75dd145bcd
amd_iommu: fix wrong MMIO operations

Address was swapped with value when writing MMIO registers, so the user
saw garbage in lot of cases. The interrupt status was not correctly set.

Signed-off-by: Roman Kapl <rka@sysgo.com>
Message-Id: <20210427110504.10878-1-rka@sysgo.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/amd_iommu.c