aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-04-05 15:20:30 -0400
committerGleb Natapov <gleb@redhat.com>2013-04-08 06:02:00 -0400
commitfc1b74925f87f6aca5432eb73f6a57eff30afde7 (patch)
treef0b14d3914f4d3d9881f8058372ee1de00a85361 /include/linux/kvm_host.h
parenta63cb56061239372fce2452dbedd35c95bd665aa (diff)
KVM: Move vm_list kvm_lock declarations out of x86
The variables vm_list and kvm_lock are common to all architectures, so move the declarations from arch/x86/include/asm/kvm_host.h to include/linux/kvm_host.h. Fixes sparse warnings like these when building for arm64: virt/kvm/kvm_main.c: warning: symbol 'kvm_lock' was not declared. Should it be static? virt/kvm/kvm_main.c: warning: symbol 'vm_list' was not declared. Should it be static? Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 1c0be23f874d..71fed38c7200 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -135,6 +135,9 @@ struct kvm;
135struct kvm_vcpu; 135struct kvm_vcpu;
136extern struct kmem_cache *kvm_vcpu_cache; 136extern struct kmem_cache *kvm_vcpu_cache;
137 137
138extern raw_spinlock_t kvm_lock;
139extern struct list_head vm_list;
140
138struct kvm_io_range { 141struct kvm_io_range {
139 gpa_t addr; 142 gpa_t addr;
140 int len; 143 int len;