All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: delete unused variables iommu_noncoherent in struct kvm_arch
@ 2025-02-06  2:26 fuqiang wang
  2025-02-06 15:16 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: fuqiang wang @ 2025-02-06  2:26 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini; +Cc: kvm, linux-kernel, wangfuqiang49

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 <wangfuqiang49@jd.com>
---
 arch/x86/include/asm/kvm_host.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index b15cde0a9b5c..98555afb6f10 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -1354,7 +1354,6 @@ struct kvm_arch {
 	u64 shadow_mmio_value;
 
 	struct iommu_domain *iommu_domain;
-	bool iommu_noncoherent;
 #define __KVM_HAVE_ARCH_NONCOHERENT_DMA
 	atomic_t noncoherent_dma_count;
 #define __KVM_HAVE_ARCH_ASSIGNED_DEVICE
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm: delete unused variables iommu_noncoherent in struct kvm_arch
  2025-02-06  2:26 [PATCH] kvm: delete unused variables iommu_noncoherent in struct kvm_arch fuqiang wang
@ 2025-02-06 15:16 ` Sean Christopherson
  0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2025-02-06 15:16 UTC (permalink / raw)
  To: fuqiang wang; +Cc: Paolo Bonzini, kvm, linux-kernel, wangfuqiang49

On Thu, Feb 06, 2025, fuqiang wang wrote:
> 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.

Someone else beat you to it by a few weeks, I just haven't applied the patch
yet.  Thanks!

https://lore.kernel.org/all/20250124075055.97158-1-znscnchen@gmail.com

> 
> Signed-off-by: wangfuqiang49 <wangfuqiang49@jd.com>
> ---
>  arch/x86/include/asm/kvm_host.h | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
> index b15cde0a9b5c..98555afb6f10 100644
> --- a/arch/x86/include/asm/kvm_host.h
> +++ b/arch/x86/include/asm/kvm_host.h
> @@ -1354,7 +1354,6 @@ struct kvm_arch {
>  	u64 shadow_mmio_value;
>  
>  	struct iommu_domain *iommu_domain;
> -	bool iommu_noncoherent;
>  #define __KVM_HAVE_ARCH_NONCOHERENT_DMA
>  	atomic_t noncoherent_dma_count;
>  #define __KVM_HAVE_ARCH_ASSIGNED_DEVICE
> -- 
> 2.47.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-06 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06  2:26 [PATCH] kvm: delete unused variables iommu_noncoherent in struct kvm_arch fuqiang wang
2025-02-06 15:16 ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.