Emulate the interrupt remapping support when guest virtual APIC is
enabled.
See IOMMU spec:https://support.amd.com/TechDocs/48882_IOMMU.pdf
(section 2.2.5.2) for details information.
When VAPIC is enabled, it uses interrupt remapping as defined in
Table 22 and Figure 17 from IOMMU spec.
Cc: "Michael S. Tsirkin"<address@hidden>
Cc: Paolo Bonzini<address@hidden>
Cc: Richard Henderson<address@hidden>
Cc: Eduardo Habkost<address@hidden>
Cc: Marcel Apfelbaum<address@hidden>
Cc: Tom Lendacky<address@hidden>
Cc: Suravee Suthikulpanit<address@hidden>
Signed-off-by: Brijesh Singh<address@hidden>
---
hw/i386/amd_iommu.c | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++-
hw/i386/amd_iommu.h | 38 +++++++++++++++++++++++++++++
hw/i386/trace-events | 2 ++
3 files changed, 107 insertions(+), 1 deletion(-)