summaryrefslogtreecommitdiff
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-03-11 17:22:41 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2024-03-11 17:22:41 +0300
commita81d95ae8c805cd137d3385ad669b5200b739d0f (patch)
tree3f701cb7549dcbeab148d4099bc32ec09c38149f /include/linux/kvm_host.h
parent4d4c02852abf01059e45a188f16f13f7ec78371c (diff)
parentc2744ed2230a92636f04cde48f2f7d8d3486e194 (diff)
downloadlinux-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.h1
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;