]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/kvm_host.h
kvm: destroy emulated devices on VM exit
[karo-tx-linux.git] / include / linux / kvm_host.h
index feffbdaf898681f68c5c8428a1b9b1fb4ea969ed..36c9776947415de55f588dcd7351d3a18af3386a 100644 (file)
@@ -393,6 +393,7 @@ struct kvm {
        long mmu_notifier_count;
 #endif
        long tlbs_dirty;
+       struct list_head devices;
 };
 
 #define kvm_err(fmt, ...) \
@@ -1069,8 +1070,8 @@ struct kvm_device_ops;
 struct kvm_device {
        struct kvm_device_ops *ops;
        struct kvm *kvm;
-       atomic_t users;
        void *private;
+       struct list_head vm_node;
 };
 
 /* create, destroy, and name are mandatory */