]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86, hypervisor: Export the x86_hyper* symbols
authorH. Peter Anvin <hpa@zytor.com>
Sun, 9 May 2010 08:10:34 +0000 (01:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 9 May 2010 08:10:34 +0000 (01:10 -0700)
Export x86_hyper and the related specific structures, allowing for
hypervisor identification by modules.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Greg KH <greg@kroah.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Alok Kataria <akataria@vmware.com>
Cc: Ky Srinivasan <ksrinivasan@novell.com>
Cc: Dmitry Torokhov <dtor@vmware.com>
LKML-Reference: <4BE49778.6060800@zytor.com>

arch/x86/kernel/cpu/hypervisor.c
arch/x86/kernel/cpu/mshyperv.c
arch/x86/kernel/cpu/vmware.c

index 87381759d3cb83f6657058a9ec1ea672cb49f906..4afb5a2130ed2c983ce2e31c6149432d52a3bcde 100644 (file)
@@ -36,6 +36,7 @@ static const __initconst struct hypervisor_x86 * const hypervisors[] =
 };
 
 const struct hypervisor_x86 *x86_hyper;
+EXPORT_SYMBOL(x86_hyper);
 
 static inline void __init
 detect_hypervisor_vendor(void)
index 5969c3ee318626433402c10f33ec75c2660cdc9e..0f1371724c86b88e9943d07648702f2220f3f98d 100644 (file)
@@ -51,3 +51,4 @@ const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = {
        .detect                 = ms_hyperv_platform,
        .init_platform          = ms_hyperv_init_platform,
 };
+EXPORT_SYMBOL(x86_hyper_ms_hyperv);
index 265b432f6e644ca4e002b21d450f63af6c1a747d..b9d1ff588445db7659ffd3d4d0e4414e846081d6 100644 (file)
@@ -99,7 +99,6 @@ static bool __init vmware_platform(void)
 
        return false;
 }
-EXPORT_SYMBOL(vmware_platform);
 
 /*
  * VMware hypervisor takes care of exporting a reliable TSC to the guest.
@@ -125,3 +124,4 @@ const __refconst struct hypervisor_x86 x86_hyper_vmware = {
        .set_cpu_features       = vmware_set_cpu_features,
        .init_platform          = vmware_platform_setup,
 };
+EXPORT_SYMBOL(x86_hyper_vmware);