kvm: delete unused variables iommu_noncoherent in struct kvm_arch
PATCH 1/1 kvm: delete unused variables iommu_noncoherent in struct kvm_arch
The code of legacy device assignment is deleted entirely in commit ad6260da1e23 ("KVM: x86: drop legacy device assignment") and the variable iommu_noncoherent in struct kvm_arch is also not referenced by any other code. So it is deleted in this patch.
Signed-off-by wangfuqiang49 <[email protected]>
--- arch/x86/include/asm/kvm_host.h | 1 - 1 file changed, 1 deletion(-)
arch/x86/include/asm/kvm_host.h +0 -1
@@ -1354,7 +1354,6 @@ struct kvm_arch {u64 shadow_mmio_value;struct iommu_domain *iommu_domain; -bool iommu_noncoherent;#define __KVM_HAVE_ARCH_NONCOHERENT_DMAatomic_t noncoherent_dma_count;#define __KVM_HAVE_ARCH_ASSIGNED_DEVICE
Signature · 1 line
2.47.0
Sean Christopherson
maintainerQuoted 4 lines · fuqiang wang
The code of legacy device assignment is deleted entirely in commit
ad6260da1e23("KVM: x86: drop legacy device assignment") and the variableiommu_noncoherentin structkvm_archis also not referenced by any other code. So it is deleted in this patch.
Someone else beat you to it by a few weeks, I just haven't applied the patch yet. Thanks!
https://lore.kernel.org/all/[email protected]
Quoted 21 lines
Signed-off-by wangfuqiang49 <[email protected]>--- arch/x86/include/asm/kvm_host.h | 1 - 1 file changed, 1 deletion(-)arch/x86/include/asm/kvm_host.h +0
-1@@ -1354,7 +1354,6 @@ struct kvm_arch {u64 shadow_mmio_value;struct iommu_domain *iommu_domain; -bool iommu_noncoherent;#define __KVM_HAVE_ARCH_NONCOHERENT_DMAatomic_t noncoherent_dma_count;#define __KVM_HAVE_ARCH_ASSIGNED_DEVICESignature · 1 line
2.47.0