diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-01-06 02:03:02 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-02-15 00:47:36 (GMT) |
commit | ad8ba2cd44d4d39fb3fe55d5dcc565b19fc3a7fb (patch) | |
tree | 74dfd501fc541b7d55eecec7b9469f1db8225507 /arch/s390/kvm | |
parent | 85db06e514422ae429b5f85742d8111b70bd56f3 (diff) | |
download | linux-ad8ba2cd44d4d39fb3fe55d5dcc565b19fc3a7fb.tar.xz |
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>
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index be84971..0d33893 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -212,6 +212,10 @@ static void kvm_free_vcpus(struct kvm *kvm) } } +void kvm_arch_sync_events(struct kvm *kvm) +{ +} + void kvm_arch_destroy_vm(struct kvm *kvm) { kvm_free_vcpus(kvm); |