Commit ba492962363a02c45836be205f339be48093e1be

Authored by Alexander Graf
Committed by Avi Kivity
1 parent 5fc87407b5

KVM: Move kvm_guest_init out of generic code

Currently x86 is the only architecture that uses kvm_guest_init(). With
PowerPC we're getting a second user, but the signature is different there
and we don't need to export it, as it uses the normal kernel init framework.

So let's move the x86 specific definition of that function over to the x86
specfic header file.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>

Showing 2 changed files with 6 additions and 5 deletions Side-by-side Diff

arch/x86/include/asm/kvm_para.h
... ... @@ -158,7 +158,13 @@
158 158 return cpuid_eax(KVM_CPUID_FEATURES);
159 159 }
160 160  
  161 +#ifdef CONFIG_KVM_GUEST
  162 +void __init kvm_guest_init(void);
  163 +#else
  164 +#define kvm_guest_init() do { } while (0)
161 165 #endif
  166 +
  167 +#endif /* __KERNEL__ */
162 168  
163 169 #endif /* _ASM_X86_KVM_PARA_H */
include/linux/kvm_para.h
... ... @@ -26,11 +26,6 @@
26 26 #include <asm/kvm_para.h>
27 27  
28 28 #ifdef __KERNEL__
29   -#ifdef CONFIG_KVM_GUEST
30   -void __init kvm_guest_init(void);
31   -#else
32   -#define kvm_guest_init() do { } while (0)
33   -#endif
34 29  
35 30 static inline int kvm_para_has_feature(unsigned int feature)
36 31 {