Re: [PART2 PATCH v7 12/12] svm: Implements update_pi_irte hook to setup posted interrupt

From: Radim KrÄmÃÅ
Date: Wed Aug 31 2016 - 00:08:35 EST


2016-08-23 13:52-0500, Suravee Suthikulpanit:
> From: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
>
> 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@xxxxxxx>
> ---

I forgot nitpicks in the office before going on a vacation, ;)

Reviewed-by: Radim KrÄmÃÅ <rkrcmar@xxxxxxxxxx>