x86: Detect running on a Microsoft HyperV system
authorKy Srinivasan <ksrinivasan@novell.com>
Thu, 6 May 2010 19:08:41 +0000 (12:08 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 7 May 2010 01:24:15 +0000 (18:24 -0700)
commita2a47c6c3d1a7c01da4464b3b7be93b924f874c1
treee647047bb37cce40777bf29c4aef8f92a56cdad8
parent097c1bd5673edaf2a162724636858b71f658fdd2
x86: Detect running on a Microsoft HyperV system

This patch integrates HyperV detection within the framework currently
used by VmWare. With this patch, we can avoid having to replicate the
HyperV detection code in each of the Microsoft HyperV drivers.

Reworked and tweaked by Greg K-H to build properly.

Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
LKML-Reference: <20100506190841.GA1605@kroah.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Vadim Rozenfeld <vrozenfe@redhat.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: "K.Prasad" <prasad@linux.vnet.ibm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/hyperv.h
arch/x86/include/asm/mshyperv.h [new file with mode: 0644]
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/hypervisor.c
arch/x86/kernel/cpu/mshyperv.c [new file with mode: 0644]