]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Add kvm_arch_sync_events to sync with asynchronize events
authorSheng Yang <sheng@linux.intel.com>
Tue, 6 Jan 2009 02:03:02 +0000 (10:03 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 15 Feb 2009 00:47:36 +0000 (02:47 +0200)
commit00c481be81ccfa90b3f6f8c6d1ce36e7f2d61d30
tree74dfd501fc541b7d55eecec7b9469f1db8225507
parentc0aa0d033c067e6e23a2525f2985603d68e4de0b
KVM: Add kvm_arch_sync_events to sync with asynchronize events

kvm_arch_sync_events is introduced to quiet down all other events may happen
contemporary with VM destroy process, like IRQ handler and work struct for
assigned device.

For kvm_arch_sync_events is called at the very beginning of kvm_destroy_vm(), so
the state of KVM here is legal and can provide a environment to quiet down other
events.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/kvm/kvm-ia64.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c