KVM: Move kvm_guest_init out of generic code
authorAlexander Graf <agraf@suse.de>
Thu, 29 Jul 2010 12:47:56 +0000 (14:47 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:49 +0000 (10:50 +0200)
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>
arch/x86/include/asm/kvm_para.h
include/linux/kvm_para.h

index 05eba5e9a8e8e59372ddc615e630a8a21f155f37..7b562b6184bcf6d1b4b640c676ed6d4f3f0bae2e 100644 (file)
@@ -158,6 +158,12 @@ static inline unsigned int kvm_arch_para_features(void)
        return cpuid_eax(KVM_CPUID_FEATURES);
 }
 
+#ifdef CONFIG_KVM_GUEST
+void __init kvm_guest_init(void);
+#else
+#define kvm_guest_init() do { } while (0)
 #endif
 
+#endif /* __KERNEL__ */
+
 #endif /* _ASM_X86_KVM_PARA_H */
index ac2015a2501242f685c9bc34db6ff885170bad4b..47a070b0520e1ee766b5b4b26816d12d9f45cad8 100644 (file)
 #include <asm/kvm_para.h>
 
 #ifdef __KERNEL__
-#ifdef CONFIG_KVM_GUEST
-void __init kvm_guest_init(void);
-#else
-#define kvm_guest_init() do { } while (0)
-#endif
 
 static inline int kvm_para_has_feature(unsigned int feature)
 {
This page took 0.025605 seconds and 5 git commands to generate.