]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu/amd: Re-factor guest virtual APIC (de-)activation code
authorSuthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com>
Tue, 23 Jul 2019 19:00:37 +0000 (19:00 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 9 Aug 2019 15:30:40 +0000 (17:30 +0200)
commitb9c6ff94e43a0ee053e0c1d983fba1ac4953b762
treed2e9958a900cbc336afcd1153b66c2479b257acf
parente21a712a9685488f5ce80495b37b9fdbe96c230d
iommu/amd: Re-factor guest virtual APIC (de-)activation code

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@8bytes.org>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h
include/linux/amd-iommu.h