Re: KVM "Hyper-V emulation" -- this can be related "Linux onHyper-V" ? Or "KVM emulates Hyper-V" as "Hyper-V emulates Hyper-V" ? Re:[PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

From: Michael S. Tsirkin
Date: Wed Apr 17 2013 - 07:15:52 EST


On Wed, Apr 17, 2013 at 12:10:01PM +0300, Victor Miasnikov wrote:
> Question is very simple: Hyper-V users/sysadmins need wait patch a-la this:
>
> ==
> KVM 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 KVM.

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

What's emulated not well enough?

> + /*
> + * KVM emulates Hyper-V to support enlightened Windows.
> + * Check to see first if we are on a KVM Hypervisor.
> + */

If the hypervisor says it's Hyper-V, that's because it wants
guests to use Hyper-V. I don't see why is guest second-guessing
this a good idea.

> + if (KVM_cpuid_base())
> + return false;
> +
> ==
>
>
> Or "KVM emulates Hyper-V" as "Hyper-V emulates Hyper-V" ?
>
>
> Best regards, Victor Miasnikov
> Blog: http://vvm.blog.tut.by/
>
> P.S.

No. You are using Hyper-V, not the KVM emulation of it. No patches
dealing with this emulation should have any effect on you.

--
MST
--
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/