[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130417101617.GF3881@redhat.com>
Date: Wed, 17 Apr 2013 13:16:17 +0300
From: "Michael S. Tsirkin" <mst@...hat.com>
To: Victor Miasnikov <vvm@....by>
Cc: "K. Y. Srinivasan" <kys@...rosoft.com>, x86@...nel.org,
gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
devel@...uxdriverproject.org, olaf@...fle.de, apw@...onical.com,
jasowang@...hat.com, tglx@...utronix.de, hpa@...or.com,
JBeulich@...e.com, bp@...en8.de
Subject: Re: KVM "Hyper-V emulation" -- this can be related "Linux on
Hyper-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
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists