aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-05-09 04:10:34 -0400
committerH. Peter Anvin <hpa@zytor.com>2010-05-09 04:10:34 -0400
commit96f6e775b58687d85ee33004d414419b5ec34106 (patch)
tree85df676750b9c10608ddf248bf6b5a0afc5a70ee
parentd7be0ce6afb1df60bc786f57410407ceae92b994 (diff)
x86, hypervisor: Export the x86_hyper* symbols
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>
-rw-r--r--arch/x86/kernel/cpu/hypervisor.c1
-rw-r--r--arch/x86/kernel/cpu/mshyperv.c1
-rw-r--r--arch/x86/kernel/cpu/vmware.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/hypervisor.c b/arch/x86/kernel/cpu/hypervisor.c
index 87381759d3cb..4afb5a2130ed 100644
--- a/arch/x86/kernel/cpu/hypervisor.c
+++ b/arch/x86/kernel/cpu/hypervisor.c
@@ -36,6 +36,7 @@ static const __initconst struct hypervisor_x86 * const hypervisors[] =
36}; 36};
37 37
38const struct hypervisor_x86 *x86_hyper; 38const struct hypervisor_x86 *x86_hyper;
39EXPORT_SYMBOL(x86_hyper);
39 40
40static inline void __init 41static inline void __init
41detect_hypervisor_vendor(void) 42detect_hypervisor_vendor(void)
diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyperv.c
index 5969c3ee3186..0f1371724c86 100644
--- a/arch/x86/kernel/cpu/mshyperv.c
+++ b/arch/x86/kernel/cpu/mshyperv.c
@@ -51,3 +51,4 @@ const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = {
51 .detect = ms_hyperv_platform, 51 .detect = ms_hyperv_platform,
52 .init_platform = ms_hyperv_init_platform, 52 .init_platform = ms_hyperv_init_platform,
53}; 53};
54EXPORT_SYMBOL(x86_hyper_ms_hyperv);
diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c
index 265b432f6e64..b9d1ff588445 100644
--- a/arch/x86/kernel/cpu/vmware.c
+++ b/arch/x86/kernel/cpu/vmware.c
@@ -99,7 +99,6 @@ static bool __init vmware_platform(void)
99 99
100 return false; 100 return false;
101} 101}
102EXPORT_SYMBOL(vmware_platform);
103 102
104/* 103/*
105 * VMware hypervisor takes care of exporting a reliable TSC to the guest. 104 * VMware hypervisor takes care of exporting a reliable TSC to the guest.
@@ -125,3 +124,4 @@ const __refconst struct hypervisor_x86 x86_hyper_vmware = {
125 .set_cpu_features = vmware_set_cpu_features, 124 .set_cpu_features = vmware_set_cpu_features,
126 .init_platform = vmware_platform_setup, 125 .init_platform = vmware_platform_setup,
127}; 126};
127EXPORT_SYMBOL(x86_hyper_vmware);