intel_iommu: pass whole remapped addresses to apic
authorRadim Krčmář <rkrcmar@redhat.com>
Mon, 10 Oct 2016 15:28:44 +0000 (17:28 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Oct 2016 17:44:49 +0000 (15:44 -0200)
commit329460191d527e0cfa9ddbd14c75994e73de1975
tree21b1965fbd3461fa6800343db3311b09ce7cfc8c
parent267ee357153bb61870b60da69ba9f839ddb0e32e
intel_iommu: pass whole remapped addresses to apic

The MMIO interface to APIC only allowed 8 bit addresses, which is not
enough for 32 bit addresses from EIM remapping.
Intel stored upper 24 bits in the high MSI address, so use the same
technique. The technique is also used in KVM MSI interface.
Other APICs are unlikely to handle those upper bits.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/intel_iommu.c