diff options
author | Scott Wood <scottwood@freescale.com> | 2013-04-25 10:11:23 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-04-26 14:27:28 -0400 |
commit | 07f0a7bdec5c4039cfb9b836482c45004d4c21cc (patch) | |
tree | ea47de6fc439dd8d20d6d1d0c4f9cd21f95c2fcb /include | |
parent | 22e64024fb83065664160d1c28a10aa98cb5f24c (diff) |
kvm: destroy emulated devices on VM exit
The hassle of getting refcounting right was greater than the hassle
of keeping a list of devices to destroy on VM exit.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index feffbdaf8986..36c977694741 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -393,6 +393,7 @@ struct kvm { | |||
393 | long mmu_notifier_count; | 393 | long mmu_notifier_count; |
394 | #endif | 394 | #endif |
395 | long tlbs_dirty; | 395 | long tlbs_dirty; |
396 | struct list_head devices; | ||
396 | }; | 397 | }; |
397 | 398 | ||
398 | #define kvm_err(fmt, ...) \ | 399 | #define kvm_err(fmt, ...) \ |
@@ -1069,8 +1070,8 @@ struct kvm_device_ops; | |||
1069 | struct kvm_device { | 1070 | struct kvm_device { |
1070 | struct kvm_device_ops *ops; | 1071 | struct kvm_device_ops *ops; |
1071 | struct kvm *kvm; | 1072 | struct kvm *kvm; |
1072 | atomic_t users; | ||
1073 | void *private; | 1073 | void *private; |
1074 | struct list_head vm_node; | ||
1074 | }; | 1075 | }; |
1075 | 1076 | ||
1076 | /* create, destroy, and name are mandatory */ | 1077 | /* create, destroy, and name are mandatory */ |