RE: [PATCH] Change hypervisor detection order

From: Dong, Eddie
Date: Thu Jul 07 2011 - 19:45:38 EST


Sounds good.
Eddie

> -----Original Message-----
> From: Anupam Chanda [mailto:achanda@xxxxxxxxxx]
> Sent: Friday, July 08, 2011 2:20 AM
> To: tglx@xxxxxxxxxxxxx; mingo@xxxxxxxxxx; hpa@xxxxxxxxx;
> x86@xxxxxxxxxx; stefano.stabellini@xxxxxxxxxxxxx;
> jeremy.fitzhardinge@xxxxxxxxxx; Dong, Eddie; linux-kernel@xxxxxxxxxxxxxxx
> Cc: achanda@xxxxxxxxxx
> Subject: [PATCH] Change hypervisor detection order
>
> Detect Xen before HyperV because in Viridian compatibility mode Xen
> presents
> itself as HyperV.
>
> Signed-off-by: Anupam Chanda <achanda@xxxxxxxxxx>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
> ---
> arch/x86/kernel/cpu/hypervisor.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/cpu/hypervisor.c
> b/arch/x86/kernel/cpu/hypervisor.c
> index 8095f86..ca23091 100644
> --- a/arch/x86/kernel/cpu/hypervisor.c
> +++ b/arch/x86/kernel/cpu/hypervisor.c
> @@ -33,10 +33,10 @@
> static const __initconst struct hypervisor_x86 * const hypervisors[] =
> {
> &x86_hyper_vmware,
> - &x86_hyper_ms_hyperv,
> #ifdef CONFIG_XEN_PVHVM
> &x86_hyper_xen_hvm,
> #endif
> + &x86_hyper_ms_hyperv,
> };
>
> const struct hypervisor_x86 *x86_hyper;
> --
> 1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/