]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu: KVM: Split "struct vcpu_data" into separate AMD vs. Intel structs
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:34 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:31 +0000 (09:50 -0700)
commit53527ea1b70224d16d29edbd5c850456469f00ec
tree80fef68365adb1911ec68214b7bacb3cfa3cebff
parent803928483669b41e84c27086ffcf28438c1a8cca
iommu: KVM: Split "struct vcpu_data" into separate AMD vs. Intel structs

Split the vcpu_data structure that serves as a handoff from KVM to IOMMU
drivers into vendor specific structures.  Overloading a single structure
makes the code hard to read and maintain, is *very* misleading as it
suggests that mixing vendors is actually supported, and bastardizing
Intel's posted interrupt descriptor address when AMD's IOMMU already has
its own structure is quite unnecessary.

Tested-by: Sairaj Kodilkar <sarunkod@amd.com>
Link: https://lore.kernel.org/r/20250611224604.313496-33-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/irq_remapping.h
arch/x86/kvm/svm/avic.c
arch/x86/kvm/vmx/posted_intr.c
drivers/iommu/amd/iommu.c
drivers/iommu/intel/irq_remapping.c
include/linux/amd-iommu.h