aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/hypervisor.h
diff options
context:
space:
mode:
authorPrarit Bhargava <prarit@redhat.com>2012-07-06 13:47:39 -0400
committerAvi Kivity <avi@redhat.com>2012-07-11 19:33:32 +0300
commitfc73373b33f5f965f2f82bfbc40ef8e6072e986d (patch)
treeacb8f9c464c6bd9f737f6c4f88c1941e2f401d53 /arch/x86/include/asm/hypervisor.h
parent58d8b1728ea3da391ef01c43a384ea06ce4b7c8a (diff)
downloadkernel_goldelico_gta04-fc73373b33f5f965f2f82bfbc40ef8e6072e986d.zip
kernel_goldelico_gta04-fc73373b33f5f965f2f82bfbc40ef8e6072e986d.tar.gz
kernel_goldelico_gta04-fc73373b33f5f965f2f82bfbc40ef8e6072e986d.tar.bz2
KVM: Add x86_hyper_kvm to complete detect_hypervisor_platform check
While debugging I noticed that unlike all the other hypervisor code in the kernel, kvm does not have an entry for x86_hyper which is used in detect_hypervisor_platform() which results in a nice printk in the syslog. This is only really a stub function but it does make kvm more consistent with the other hypervisors. Signed-off-by: Prarit Bhargava <prarit@redhat.com> Cc: Avi Kivity <avi@redhat.com> Cc: Gleb Natapov <gleb@redhat.com> Cc: Alex Williamson <alex.williamson@redhat.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Cc: Marcelo Tostatti <mtosatti@redhat.com> Cc: kvm@vger.kernel.org Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/hypervisor.h')
-rw-r--r--arch/x86/include/asm/hypervisor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/hypervisor.h b/arch/x86/include/asm/hypervisor.h
index 7a15153..b518c75 100644
--- a/arch/x86/include/asm/hypervisor.h
+++ b/arch/x86/include/asm/hypervisor.h
@@ -49,6 +49,7 @@ extern const struct hypervisor_x86 *x86_hyper;
extern const struct hypervisor_x86 x86_hyper_vmware;
extern const struct hypervisor_x86 x86_hyper_ms_hyperv;
extern const struct hypervisor_x86 x86_hyper_xen_hvm;
+extern const struct hypervisor_x86 x86_hyper_kvm;
static inline bool hypervisor_x2apic_available(void)
{