]> git.baikalelectronics.ru Git - 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)
commit4367dfce88c9e14704510cb482acd7af1a0401dc
tree071c9494694a03f93f60f50364ad3a096ddd5016
parent627063ce1ae170bedca2e810696a43e13d71dd75
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: 652519a15a3 ("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