X86: Add a check to catch Xen emulation of Hyper-V
authorK. Y. Srinivasan <[email protected]>
Mon, 4 Feb 2013 01:22:38 +0000 (17:22 -0800)
committerH. Peter Anvin <[email protected]>
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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
arch/x86/kernel/cpu/mshyperv.c