Skip to content

Commit 122ae01

Browse files
LiangChen77sean-jc
authored andcommitted
KVM: x86: remove the unused assigned_dev_head from kvm_arch
Legacy device assignment was dropped years ago. This field is not used anymore. Signed-off-by: Liang Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent 329369c commit 122ae01

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,6 @@ struct kvm_arch {
12841284
*/
12851285
spinlock_t mmu_unsync_pages_lock;
12861286

1287-
struct list_head assigned_dev_head;
12881287
struct iommu_domain *iommu_domain;
12891288
bool iommu_noncoherent;
12901289
#define __KVM_HAVE_ARCH_NONCOHERENT_DMA

arch/x86/kvm/x86.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12425,7 +12425,6 @@ int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
1242512425
goto out_uninit_mmu;
1242612426

1242712427
INIT_HLIST_HEAD(&kvm->arch.mask_notifier_list);
12428-
INIT_LIST_HEAD(&kvm->arch.assigned_dev_head);
1242912428
atomic_set(&kvm->arch.noncoherent_dma_count, 0);
1243012429

1243112430
/* Reserve bit 0 of irq_sources_bitmap for userspace irq source */

0 commit comments

Comments
 (0)