diff options
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index f4e143621e35..a2ceb51b4274 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -114,6 +114,7 @@ struct kvm { | |||
114 | struct kvm_io_bus pio_bus; | 114 | struct kvm_io_bus pio_bus; |
115 | struct kvm_vm_stat stat; | 115 | struct kvm_vm_stat stat; |
116 | struct kvm_arch arch; | 116 | struct kvm_arch arch; |
117 | atomic_t users_count; | ||
117 | }; | 118 | }; |
118 | 119 | ||
119 | /* The guest did something we don't support. */ | 120 | /* The guest did something we don't support. */ |
@@ -140,6 +141,9 @@ int kvm_init(void *opaque, unsigned int vcpu_size, | |||
140 | struct module *module); | 141 | struct module *module); |
141 | void kvm_exit(void); | 142 | void kvm_exit(void); |
142 | 143 | ||
144 | void kvm_get_kvm(struct kvm *kvm); | ||
145 | void kvm_put_kvm(struct kvm *kvm); | ||
146 | |||
143 | #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) | 147 | #define HPA_MSB ((sizeof(hpa_t) * 8) - 1) |
144 | #define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB) | 148 | #define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB) |
145 | static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; } | 149 | static inline int is_error_hpa(hpa_t hpa) { return hpa >> HPA_MSB; } |