diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-07-28 11:08:56 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-07-29 08:36:42 -0400 |
| commit | 9de13951d5c3b424a1ad3767e7bc013831e7ad5d (patch) | |
| tree | b3ebdc7505686c498e8acd8803ee100f1ea57401 /virt | |
| parent | Merge tag 'kvm-x86-dirty_ring-6.17' of https://github.com/kvm-x86/linux into ... (diff) | |
| parent | VFIO: KVM: x86: Drop kvm_arch_{start,end}_assignment() (diff) | |
| download | linux-9de13951d5c3b424a1ad3767e7bc013831e7ad5d.tar.gz linux-9de13951d5c3b424a1ad3767e7bc013831e7ad5d.zip | |
Merge tag 'kvm-x86-no_assignment-6.17' of https://github.com/kvm-x86/linux into HEAD
KVM VFIO device assignment cleanups for 6.17
Kill off kvm_arch_{start,end}_assignment() and x86's associated tracking now
that KVM no longer uses assigned_device_count as a bad heuristic for "VM has
an irqbypass producer" or for "VM has access to host MMIO".
Diffstat (limited to 'virt')
| -rw-r--r-- | virt/kvm/vfio.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/virt/kvm/vfio.c b/virt/kvm/vfio.c index 196a102e34fb..be50514bbd11 100644 --- a/virt/kvm/vfio.c +++ b/virt/kvm/vfio.c @@ -175,7 +175,6 @@ static int kvm_vfio_file_add(struct kvm_device *dev, unsigned int fd) kvf->file = get_file(filp); list_add_tail(&kvf->node, &kv->file_list); - kvm_arch_start_assignment(dev->kvm); kvm_vfio_file_set_kvm(kvf->file, dev->kvm); kvm_vfio_update_coherency(dev); @@ -205,7 +204,6 @@ static int kvm_vfio_file_del(struct kvm_device *dev, unsigned int fd) continue; list_del(&kvf->node); - kvm_arch_end_assignment(dev->kvm); #ifdef CONFIG_SPAPR_TCE_IOMMU kvm_spapr_tce_release_vfio_group(dev->kvm, kvf); #endif @@ -336,7 +334,6 @@ static void kvm_vfio_release(struct kvm_device *dev) fput(kvf->file); list_del(&kvf->node); kfree(kvf); - kvm_arch_end_assignment(dev->kvm); } kvm_vfio_update_coherency(dev); |
