RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-18 Thread KY Srinivasan
> -Original Message- > From: devel [mailto:devel-boun...@linuxdriverproject.org] On Behalf Of KY > Srinivasan > Sent: Thursday, April 18, 2013 9:23 AM > To: Michael S. Tsirkin > Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; > x...@kernel.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-18 Thread KY Srinivasan
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Thursday, April 18, 2013 3:48 AM > To: KY Srinivasan > Cc: Jan Beulich; o...@aepfle.de; b...@alien8.de; a...@canonical.com; > x...@kernel.org; t...@linutronix.de; de...@linuxdriverproject.org; >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-18 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 04:28:36PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Jan Beulich [mailto:jbeul...@suse.com] > > Sent: Wednesday, April 17, 2013 11:51 AM > > To: KY Srinivasan; Michael S. Tsirkin > > Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com;

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-18 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 04:28:36PM +, KY Srinivasan wrote: -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Wednesday, April 17, 2013 11:51 AM To: KY Srinivasan; Michael S. Tsirkin Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-18 Thread KY Srinivasan
-Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Thursday, April 18, 2013 3:48 AM To: KY Srinivasan Cc: Jan Beulich; o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; t...@linutronix.de; de...@linuxdriverproject.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-18 Thread KY Srinivasan
-Original Message- From: devel [mailto:devel-boun...@linuxdriverproject.org] On Behalf Of KY Srinivasan Sent: Thursday, April 18, 2013 9:23 AM To: Michael S. Tsirkin Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; x...@kernel.org; linux-kernel@vger.kernel.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, April 17, 2013 11:51 AM > To: KY Srinivasan; Michael S. Tsirkin > Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; > t...@linutronix.de; de...@linuxdriverproject.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Jan Beulich
>>> On 17.04.13 at 17:31, KY Srinivasan wrote: > If Xen were to change where it would not unconditionally emulate Hyper-V, I > would not be opposed to taking > this check out. But it doesn't do this unconditionally, only upon admin request. Jan -- To unsubscribe from this list: send the line

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Wednesday, April 17, 2013 9:49 AM > To: KY Srinivasan > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread H. Peter Anvin
On 04/17/2013 07:09 AM, Jan Beulich wrote: > > Iirc it was/is XenServer which enable Hyper-V emulation for all HVM > guests, which clearly is the wrong thing. I was personally also not > really in agreement with the override in the kernel, but it was > decided to do it that way at that point in

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 02:34:57PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Michael S. Tsirkin [mailto:m...@redhat.com] > > Sent: Wednesday, April 17, 2013 9:25 AM > > To: KY Srinivasan > > Cc: x...@kernel.org; gre...@linuxfoundation.org; > >

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Wednesday, April 17, 2013 9:25 AM > To: KY Srinivasan > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 02:12:12PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Michael S. Tsirkin [mailto:m...@redhat.com] > > Sent: Wednesday, April 17, 2013 8:49 AM > > To: KY Srinivasan > > Cc: x...@kernel.org; gre...@linuxfoundation.org; > >

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Wednesday, April 17, 2013 8:49 AM > To: KY Srinivasan > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 04:01:02PM +0300, Michael S. Tsirkin wrote: > On Wed, Apr 17, 2013 at 02:52:42PM +0100, Jan Beulich wrote: > > >>> On 17.04.13 at 15:20, KY Srinivasan wrote: > > > If I recall correctly, the issue here was that Xen was enabling Hyper-V > > > emulation un-conditionally

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Jan Beulich
>>> On 17.04.13 at 15:01, "Michael S. Tsirkin" wrote: > On Wed, Apr 17, 2013 at 02:52:42PM +0100, Jan Beulich wrote: >> >>> On 17.04.13 at 15:20, KY Srinivasan wrote: >> > If I recall correctly, the issue here was that Xen was enabling Hyper-V >> > emulation un-conditionally even for Linux

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

2013-04-17 Thread Victor Miasnikov
Hi! This is _positive_ variant of possible future, but on _practic_ very often we need prevent _negative_ variant of possible future I don't really know what this means. On practic: this means, that need test with KVM "Hyper-V emulation" not only Windows guest, but _all_ Linux guest

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 02:52:42PM +0100, Jan Beulich wrote: > >>> On 17.04.13 at 15:20, KY Srinivasan wrote: > > If I recall correctly, the issue here was that Xen was enabling Hyper-V > > emulation un-conditionally even for Linux guests. > > To make this a little more precise - Xen is doing

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Jan Beulich
>>> On 17.04.13 at 15:20, KY Srinivasan wrote: > If I recall correctly, the issue here was that Xen was enabling Hyper-V > emulation un-conditionally even for Linux guests. To make this a little more precise - Xen is doing so only when the guest config tells it to. Jan -- To unsubscribe from

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

2013-04-17 Thread Victor Miasnikov
Hi! 2013/4/17 Jan Beulich >>> On 17.04.13 at 12:16, "Michael S. Tsirkin" wrote: > 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. There are two reasons here: For one, when the hypervisor is not

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 01:20:58PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Michael S. Tsirkin [mailto:m...@redhat.com] > > Sent: Wednesday, April 17, 2013 3:06 AM > > To: KY Srinivasan > > Cc: x...@kernel.org; gre...@linuxfoundation.org; > >

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

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 04:03:08PM +0300, Victor M. wrote: > Hi! > > 2013/4/17 Jan Beulich > > >>> On 17.04.13 at 12:16, "Michael S. Tsirkin"  wrote: > > 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 >

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
> -Original Message- > From: Michael S. Tsirkin [mailto:m...@redhat.com] > Sent: Wednesday, April 17, 2013 3:06 AM > To: KY Srinivasan > Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; >

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

2013-04-17 Thread Victor Miasnikov
Hi! Short: >> When KVM runs in Hyper-V emulation mode it expects to get Hyper-V hypercalls. >> Mixing KVM hypercalls and Hyper-V requires some tricks. It VVM>> KVM "Hyper-V emulation" -- this can be related "Linux on Hyper-V" ? It's not related. Are You shue? Xen-team _think_ too what

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Sun, Feb 03, 2013 at 05:22:38PM -0800, K. Y. Srinivasan wrote: > 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. > > Signed-off-by: K. Y. Srinivasan I'm very

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Sun, Feb 03, 2013 at 05:22:38PM -0800, K. Y. Srinivasan wrote: 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. Signed-off-by: K. Y. Srinivasan

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

2013-04-17 Thread Victor Miasnikov
Hi! Short: When KVM runs in Hyper-V emulation mode it expects to get Hyper-V hypercalls. Mixing KVM hypercalls and Hyper-V requires some tricks. It VVM KVM Hyper-V emulation -- this can be related Linux on Hyper-V ? It's not related. Are You shue? Xen-team _think_ too what is not

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
-Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 3:06 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

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

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 04:03:08PM +0300, Victor M. wrote: Hi! 2013/4/17 Jan Beulich On 17.04.13 at 12:16, Michael S. Tsirkin  wrote: 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

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 01:20:58PM +, KY Srinivasan wrote: -Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 3:06 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org;

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

2013-04-17 Thread Victor Miasnikov
Hi! 2013/4/17 Jan Beulich On 17.04.13 at 12:16, Michael S. Tsirkin wrote: 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. There are two reasons here: For one, when the hypervisor is not

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Jan Beulich
On 17.04.13 at 15:20, KY Srinivasan k...@microsoft.com wrote: If I recall correctly, the issue here was that Xen was enabling Hyper-V emulation un-conditionally even for Linux guests. To make this a little more precise - Xen is doing so only when the guest config tells it to. Jan -- To

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 02:52:42PM +0100, Jan Beulich wrote: On 17.04.13 at 15:20, KY Srinivasan k...@microsoft.com wrote: If I recall correctly, the issue here was that Xen was enabling Hyper-V emulation un-conditionally even for Linux guests. To make this a little more precise - Xen is

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

2013-04-17 Thread Victor Miasnikov
Hi! This is _positive_ variant of possible future, but on _practic_ very often we need prevent _negative_ variant of possible future I don't really know what this means. On practic: this means, that need test with KVM Hyper-V emulation not only Windows guest, but _all_ Linux guest _all_

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Jan Beulich
On 17.04.13 at 15:01, Michael S. Tsirkin m...@redhat.com wrote: On Wed, Apr 17, 2013 at 02:52:42PM +0100, Jan Beulich wrote: On 17.04.13 at 15:20, KY Srinivasan k...@microsoft.com wrote: If I recall correctly, the issue here was that Xen was enabling Hyper-V emulation un-conditionally

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 04:01:02PM +0300, Michael S. Tsirkin wrote: On Wed, Apr 17, 2013 at 02:52:42PM +0100, Jan Beulich wrote: On 17.04.13 at 15:20, KY Srinivasan k...@microsoft.com wrote: If I recall correctly, the issue here was that Xen was enabling Hyper-V emulation

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
-Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 8:49 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 02:12:12PM +, KY Srinivasan wrote: -Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 8:49 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
-Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 9:25 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Michael S. Tsirkin
On Wed, Apr 17, 2013 at 02:34:57PM +, KY Srinivasan wrote: -Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 9:25 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org;

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread H. Peter Anvin
On 04/17/2013 07:09 AM, Jan Beulich wrote: Iirc it was/is XenServer which enable Hyper-V emulation for all HVM guests, which clearly is the wrong thing. I was personally also not really in agreement with the override in the kernel, but it was decided to do it that way at that point in time.

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
-Original Message- From: Michael S. Tsirkin [mailto:m...@redhat.com] Sent: Wednesday, April 17, 2013 9:49 AM To: KY Srinivasan Cc: x...@kernel.org; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread Jan Beulich
On 17.04.13 at 17:31, KY Srinivasan k...@microsoft.com wrote: If Xen were to change where it would not unconditionally emulate Hyper-V, I would not be opposed to taking this check out. But it doesn't do this unconditionally, only upon admin request. Jan -- To unsubscribe from this list:

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-04-17 Thread KY Srinivasan
-Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Wednesday, April 17, 2013 11:51 AM To: KY Srinivasan; Michael S. Tsirkin Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; t...@linutronix.de; de...@linuxdriverproject.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-02-01 Thread KY Srinivasan
> -Original Message- > From: devel [mailto:devel-boun...@linuxdriverproject.org] On Behalf Of KY > Srinivasan > Sent: Friday, February 01, 2013 10:11 AM > To: Stefano Stabellini; H. Peter Anvin > Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; > x...@kernel.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-02-01 Thread KY Srinivasan
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: Friday, February 01, 2013 8:20 AM > To: H. Peter Anvin > Cc: Jan Beulich; KY Srinivasan; o...@aepfle.de; b...@alien8.de; > a...@canonical.com; x...@kernel.org; t...@linutronix.de; >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-02-01 Thread Stefano Stabellini
On Thu, 31 Jan 2013, H. Peter Anvin wrote: > On 01/30/2013 12:53 AM, Jan Beulich wrote: > > > > I'm not convinced that's the right approach - any hypervisor > > could do similar emulation, and hence you either want to make > > sure you run on Hyper-V (by excluding all others), or you > > tolerate

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-02-01 Thread Stefano Stabellini
On Thu, 31 Jan 2013, H. Peter Anvin wrote: On 01/30/2013 12:53 AM, Jan Beulich wrote: I'm not convinced that's the right approach - any hypervisor could do similar emulation, and hence you either want to make sure you run on Hyper-V (by excluding all others), or you tolerate using the

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-02-01 Thread KY Srinivasan
-Original Message- From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] Sent: Friday, February 01, 2013 8:20 AM To: H. Peter Anvin Cc: Jan Beulich; KY Srinivasan; o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; t...@linutronix.de;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-02-01 Thread KY Srinivasan
-Original Message- From: devel [mailto:devel-boun...@linuxdriverproject.org] On Behalf Of KY Srinivasan Sent: Friday, February 01, 2013 10:11 AM To: Stefano Stabellini; H. Peter Anvin Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; x...@kernel.org;

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread H. Peter Anvin
On 01/30/2013 12:53 AM, Jan Beulich wrote: > > I'm not convinced that's the right approach - any hypervisor > could do similar emulation, and hence you either want to make > sure you run on Hyper-V (by excluding all others), or you > tolerate using the emulation (which may require syncing up with

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread H. Peter Anvin
On 01/31/2013 08:45 AM, Jan Beulich wrote: On 31.01.13 at 16:53, KY Srinivasan wrote: Are there any published standards in terms of how the CPUID space should be populated in the range from 0x4000 to 0x4001. Specifically, unless I recall having seen this range being marked as

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread Jan Beulich
>>> On 31.01.13 at 16:53, KY Srinivasan wrote: > Are there any published standards in terms of how the CPUID space should be > populated in the range from 0x4000 to 0x4001. Specifically, unless I recall having seen this range being marked as reserved for hypervisor use somewhere, but I

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread KY Srinivasan
> -Original Message- > From: devel [mailto:devel-boun...@linuxdriverproject.org] On Behalf Of KY > Srinivasan > Sent: Thursday, January 31, 2013 9:46 AM > To: Jan Beulich > Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; > x...@kernel.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread KY Srinivasan
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Thursday, January 31, 2013 2:38 AM > To: KY Srinivasan > Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; > t...@linutronix.de; de...@linuxdriverproject.org; gre...@linuxfoundation.org; >

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread KY Srinivasan
-Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Thursday, January 31, 2013 2:38 AM To: KY Srinivasan Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; t...@linutronix.de; de...@linuxdriverproject.org; gre...@linuxfoundation.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread KY Srinivasan
-Original Message- From: devel [mailto:devel-boun...@linuxdriverproject.org] On Behalf Of KY Srinivasan Sent: Thursday, January 31, 2013 9:46 AM To: Jan Beulich Cc: o...@aepfle.de; gre...@linuxfoundation.org; jasow...@redhat.com; x...@kernel.org; linux-kernel@vger.kernel.org;

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread Jan Beulich
On 31.01.13 at 16:53, KY Srinivasan k...@microsoft.com wrote: Are there any published standards in terms of how the CPUID space should be populated in the range from 0x4000 to 0x4001. Specifically, unless I recall having seen this range being marked as reserved for hypervisor use

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread H. Peter Anvin
On 01/31/2013 08:45 AM, Jan Beulich wrote: On 31.01.13 at 16:53, KY Srinivasan k...@microsoft.com wrote: Are there any published standards in terms of how the CPUID space should be populated in the range from 0x4000 to 0x4001. Specifically, unless I recall having seen this range being

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-31 Thread H. Peter Anvin
On 01/30/2013 12:53 AM, Jan Beulich wrote: I'm not convinced that's the right approach - any hypervisor could do similar emulation, and hence you either want to make sure you run on Hyper-V (by excluding all others), or you tolerate using the emulation (which may require syncing up with the

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread Jan Beulich
>>> On 30.01.13 at 19:12, KY Srinivasan wrote: > Presumably, Hyper-V emulation is only to run enlightened Windows. The issue > with > Xen is not that it emulates Hyper-V, but this emulation is turned on while > running Linux. > That is the reason I chose to check for Xen. Would you prefer a DMI

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread H. Peter Anvin
On 01/30/2013 10:12 AM, KY Srinivasan wrote: I'm not convinced that's the right approach - any hypervisor could do similar emulation, and hence you either want to make sure you run on Hyper-V (by excluding all others), or you tolerate using the emulation (which may require syncing up with the

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread KY Srinivasan
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, January 30, 2013 3:53 AM > To: KY Srinivasan > Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; > t...@linutronix.de; de...@linuxdriverproject.org; gre...@linuxfoundation.org; >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread Jan Beulich
>>> On 30.01.13 at 01:51, "K. Y. Srinivasan" wrote: > 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. > > Signed-off-by: K. Y. Srinivasan > --- >

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread Jan Beulich
On 30.01.13 at 01:51, K. Y. Srinivasan k...@microsoft.com wrote: 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. Signed-off-by: K. Y. Srinivasan

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread KY Srinivasan
-Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Wednesday, January 30, 2013 3:53 AM To: KY Srinivasan Cc: o...@aepfle.de; b...@alien8.de; a...@canonical.com; x...@kernel.org; t...@linutronix.de; de...@linuxdriverproject.org; gre...@linuxfoundation.org;

Re: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread H. Peter Anvin
On 01/30/2013 10:12 AM, KY Srinivasan wrote: I'm not convinced that's the right approach - any hypervisor could do similar emulation, and hence you either want to make sure you run on Hyper-V (by excluding all others), or you tolerate using the emulation (which may require syncing up with the

RE: [PATCH 2/3] X86: Add a check to catch Xen emulation of Hyper-V

2013-01-30 Thread Jan Beulich
On 30.01.13 at 19:12, KY Srinivasan k...@microsoft.com wrote: Presumably, Hyper-V emulation is only to run enlightened Windows. The issue with Xen is not that it emulates Hyper-V, but this emulation is turned on while running Linux. That is the reason I chose to check for Xen. Would you