diff options
| author | Sean Christopherson <seanjc@google.com> | 2025-06-12 01:45:34 +0300 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2025-06-23 19:50:31 +0300 |
| commit | 53527ea1b70224d16d29edbd5c850456469f00ec (patch) | |
| tree | 80fef68365adb1911ec68214b7bacb3cfa3cebff /include/linux | |
| parent | 803928483669b41e84c27086ffcf28438c1a8cca (diff) | |
| download | linux-53527ea1b70224d16d29edbd5c850456469f00ec.tar.xz | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/amd-iommu.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/amd-iommu.h b/include/linux/amd-iommu.h index deeefc92a5cf..99b4fa9a0296 100644 --- a/include/linux/amd-iommu.h +++ b/include/linux/amd-iommu.h @@ -12,18 +12,6 @@ struct amd_iommu; -/* - * This is mainly used to communicate information back-and-forth - * between SVM and IOMMU for setting up and tearing down posted - * interrupt - */ -struct amd_iommu_pi_data { - u32 ga_tag; - bool is_guest_mode; - struct vcpu_data *vcpu_data; - void *ir_data; -}; - #ifdef CONFIG_AMD_IOMMU struct task_struct; |
