Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350234
b: refs/heads/master
c: db34bbb
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and H. Peter Anvin committed Feb 13, 2013
1 parent bc8cd31 commit b394808
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32068f6527b8f1822a30671dedaf59c567325026
refs/heads/master: db34bbb767bdfa1ebed7214b876fe01c5b7ee457
7 changes: 7 additions & 0 deletions trunk/arch/x86/kernel/cpu/mshyperv.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ static bool __init ms_hyperv_platform(void)
if (!boot_cpu_has(X86_FEATURE_HYPERVISOR))
return false;

/*
* Xen emulates Hyper-V to support enlightened Windows.
* Check to see first if we are on a Xen Hypervisor.
*/
if (xen_cpuid_base())
return false;

cpuid(HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS,
&eax, &hyp_signature[0], &hyp_signature[1], &hyp_signature[2]);

Expand Down

0 comments on commit b394808

Please sign in to comment.