diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-03-11 17:22:41 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-03-11 17:22:41 +0300 |
commit | a81d95ae8c805cd137d3385ad669b5200b739d0f (patch) | |
tree | 3f701cb7549dcbeab148d4099bc32ec09c38149f /include/linux/kvm_host.h | |
parent | 4d4c02852abf01059e45a188f16f13f7ec78371c (diff) | |
parent | c2744ed2230a92636f04cde48f2f7d8d3486e194 (diff) | |
download | linux-a81d95ae8c805cd137d3385ad669b5200b739d0f.tar.xz |
Merge tag 'kvm-x86-asyncpf-6.9' of https://github.com/kvm-x86/linux into HEAD
KVM async page fault changes for 6.9:
- Always flush the async page fault workqueue when a work item is being
removed, especially during vCPU destruction, to ensure that there are no
workers running in KVM code when all references to KVM-the-module are gone,
i.e. to prevent a use-after-free if kvm.ko is unloaded.
- Grab a reference to the VM's mm_struct in the async #PF worker itself instead
of gifting the worker a reference, e.g. so that there's no need to remember
to *conditionally* clean up after the worker.
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 9a45f673f687..77b9ec28c9ec 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -238,7 +238,6 @@ struct kvm_async_pf { struct list_head link; struct list_head queue; struct kvm_vcpu *vcpu; - struct mm_struct *mm; gpa_t cr2_or_gpa; unsigned long addr; struct kvm_arch_async_pf arch; |