]> git.openfabrics.org - ~emulex/infiniband.git/commit
X86: Add a check to catch Xen emulation of Hyper-V
authorK. Y. Srinivasan <kys@microsoft.com>
Mon, 4 Feb 2013 01:22:38 +0000 (17:22 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 13 Feb 2013 00:27:03 +0000 (16:27 -0800)
commitdb34bbb767bdfa1ebed7214b876fe01c5b7ee457
tree6cbccf53064b6c56b0a74b551a34e81238008568
parent32068f6527b8f1822a30671dedaf59c567325026
X86: Add a check to catch Xen emulation of Hyper-V

Xen emulates Hyper-V to host enlightened Windows. Looks like this
emulation may be turned on by default even for Linux guests. Check and
fail Hyper-V detection if we are on Xen.

[ hpa: the problem here is that Xen doesn't emulate Hyper-V well
  enough, and if the Xen support isn't compiled in, we end up stubling
  over the Hyper-V emulation and try to activate it -- and it fails. ]

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Link: http://lkml.kernel.org/r/1359940959-32168-2-git-send-email-kys@microsoft.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/mshyperv.c