]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
KVM: x86/xen: Take srcu lock when accessing kvm_memslots()
authorWanpeng Li <wanpengli@tencent.com>
Fri, 23 Apr 2021 08:23:20 +0000 (16:23 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 23 Apr 2021 21:00:50 +0000 (17:00 -0400)
commit9c1a07442c95f6e64dc8de099e9f35ea73db7852
tree071c9494694a03f93f60f50364ad3a096ddd5016
parentbf05bf16c76bb44ab5156223e1e58e26dfe30a88
KVM: x86/xen: Take srcu lock when accessing kvm_memslots()

kvm_memslots() will be called by kvm_write_guest_offset_cached() so we should
take the srcu lock. Let's pull the srcu lock operation from kvm_steal_time_set_preempted()
again to fix xen part.

Fixes: 30b5c851af7 ("KVM: x86/xen: Add support for vCPU runstate information")
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <1619166200-9215-1-git-send-email-wanpengli@tencent.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c