diff options
| author | Peter Xu | 2016-10-31 08:34:38 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-11-15 16:20:36 +0100 |
| commit | 1a43713b02e515575134e18af1f5d0e8c3c26bcc (patch) | |
| tree | d10263c7ee20c7f597a5a97578d8ce54a38344c9 /hw | |
| parent | virtio-crypto: tag as not hotpluggable and migration (diff) | |
| download | qemu-1a43713b02e515575134e18af1f5d0e8c3c26bcc.tar.gz qemu-1a43713b02e515575134e18af1f5d0e8c3c26bcc.tar.xz qemu-1a43713b02e515575134e18af1f5d0e8c3c26bcc.zip | |
intel_iommu: fix several incorrect endianess and bit fields
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/i386/intel_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 5a12ae7a93..20c4d2c3b7 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -2180,7 +2180,7 @@ static int vtd_interrupt_remap_msi(IntelIOMMUState *iommu, } addr.data = origin->address & VTD_MSI_ADDR_LO_MASK; - if (le16_to_cpu(addr.addr.__head) != 0xfee) { + if (addr.addr.__head != 0xfee) { VTD_DPRINTF(GENERAL, "error: MSI addr low 32 bits invalid: " "0x%"PRIx32, addr.data); return -VTD_FR_IR_REQ_RSVD; |
