diff options
author | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2016-08-23 13:52:43 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-08 13:18:58 +0200 |
commit | 411b44ba80ab0023383fe3f377e903cb0cb7d8bb (patch) | |
tree | 5efb3d31f639aa856eff3975230ed5f1769d9f4b /include | |
parent | 5881f73757cc3dbada878e67c119a801ed0f9a07 (diff) | |
download | linux-411b44ba80ab0023383fe3f377e903cb0cb7d8bb.tar.gz linux-411b44ba80ab0023383fe3f377e903cb0cb7d8bb.tar.bz2 linux-411b44ba80ab0023383fe3f377e903cb0cb7d8bb.zip |
svm: Implements update_pi_irte hook to setup posted interrupt
This patch implements update_pi_irte function hook to allow SVM
communicate to IOMMU driver regarding how to set up IRTE for handling
posted interrupt.
In case AVIC is enabled, during vcpu_load/unload, SVM needs to update
IOMMU IRTE with appropriate host physical APIC ID. Also, when
vcpu_blocking/unblocking, SVM needs to update the is-running bit in
the IOMMU IRTE. Both are achieved via calling amd_iommu_update_ga().
However, if GA mode is not enabled for the pass-through device,
IOMMU driver will simply just return when calling amd_iommu_update_ga.
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions