mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
6e724d9d99
commit
1a43713b02
2 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue