KVM: mark requests that need synchronization
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Apr 2017 12:33:43 +0000 (14:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Apr 2017 12:36:44 +0000 (14:36 +0200)
commit7a97cec26b94c909f4cbad2dc3186af3e457a522
treece711b80c36bb3c2828cc63b9f65187fa95e2305
parent178f02ffafafc59d4d4b135242e5cc1515743680
KVM: mark requests that need synchronization

kvm_make_all_requests() provides a synchronization that waits until all
kicked VCPUs have acknowledged the kick.  This is important for
KVM_REQ_MMU_RELOAD as it prevents freeing while lockless paging is
underway.

This patch adds the synchronization property into all requests that are
currently being used with kvm_make_all_requests() in order to preserve
the current behavior and only introduce a new framework.  Removing it
from requests where it is not necessary is left for future patches.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
arch/x86/include/asm/kvm_host.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c