Re: [PATCH] iommu/amd: Re-factor guest virtual APIC (de-)activation code

From: joro@xxxxxxxxxx
Date: Fri Aug 09 2019 - 11:31:05 EST


On Tue, Jul 23, 2019 at 07:00:37PM +0000, Suthikulpanit, Suravee wrote:
> Re-factore the logic for activate/deactivate guest virtual APIC mode (GAM)
> into helper functions, and export them for other drivers (e.g. SVM).
> to support run-time activate/deactivate of SVM AVIC.
>
> Cc: Joerg Roedel <joro@xxxxxxxxxx>
> Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@xxxxxxx>
> ---
> drivers/iommu/amd_iommu.c | 85 +++++++++++++++++++++++++++++------------
> drivers/iommu/amd_iommu_types.h | 9 +++++
> include/linux/amd-iommu.h | 12 ++++++
> 3 files changed, 82 insertions(+), 24 deletions(-)

Applied, thanks Suravee.