aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2013-04-25 10:11:23 -0400
committerAlexander Graf <agraf@suse.de>2013-04-26 14:27:28 -0400
commit07f0a7bdec5c4039cfb9b836482c45004d4c21cc (patch)
treeea47de6fc439dd8d20d6d1d0c4f9cd21f95c2fcb /include/linux/kvm_host.h
parent22e64024fb83065664160d1c28a10aa98cb5f24c (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/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h3
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;
1069struct kvm_device { 1070struct 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 */