Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96f6e775 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

x86, hypervisor: Export the x86_hyper* symbols



Export x86_hyper and the related specific structures, allowing for
hypervisor identification by modules.

Signed-off-by: default avatarH. 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>
parent d7be0ce6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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);