All of lore.kernel.org
 help / color / mirror / Atom feed
From: Don Slutz <dslutz@verizon.com>
To: Jan Beulich <JBeulich@suse.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Don Slutz <dslutz@verizon.com>
Cc: Tim Deegan <tim@xen.org>, Kevin Tian <kevin.tian@intel.com>,
	Keir Fraser <keir@xen.org>, Jun Nakajima <jun.nakajima@intel.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>,
	Eddie Dong <eddie.dong@intel.com>,
	xen-devel@lists.xen.org,
	Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>,
	Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>
Subject: Re: [PATCH v2 1/3] Add vmware_hw to xl.cfg
Date: Mon, 08 Sep 2014 18:41:50 -0400	[thread overview]
Message-ID: <540E30AE.2040404@terremark.com> (raw)
In-Reply-To: <540DE7170200007800032248@mail.emea.novell.com>


On 09/08/14 11:27, Jan Beulich wrote:
>>>> On 08.09.14 at 17:16, <boris.ostrovsky@oracle.com> wrote:
>> On 09/08/2014 10:21 AM, Jan Beulich wrote:
>>>>>> On 08.09.14 at 15:56, <dslutz@verizon.com> wrote:
>>>> On 09/08/14 09:20, Ian Campbell wrote:
>>>>> On Wed, 2014-09-03 at 08:45 +0100, Jan Beulich wrote:
>>>>>>>>> On 02.09.14 at 20:24, <dslutz@verizon.com> wrote:
>>>>>>> On 09/02/14 03:28, Jan Beulich wrote:
>>>>>>>>>>> On 01.09.14 at 17:33, <dslutz@verizon.com> wrote:
>>>>>>>>> So based on this, I picked the order:
>>>>>>>>>
>>>>>>>>> 0x40000000 is viridian, vmware or xen
>>>>>>>>> 0x40000100 is vmware or xen
>>>>>>>>> 0x40000200 is xen
>>>>>>>> Is there really a point in enabling both Viridian and VMware extensions
>>>>>>>> at the same time?
>>>>>>> Not that I know of (and I do not want to say there there is no code
>>>>>>> out there that can work with both).  Instead of an error or warning
>>>>>>> I went with what xen is currently doing and that seabios was happy
>>>>>>> to find xen at 0x40000200.
>>>>>>>
>>>>>>> If the consensus is to ignore, or report an error or warning I will go that
>>>>>>> way.  For now I am not planning on changing.
>>>>>> My personal take on this is that the hypervisor (or perhaps already
>>>>>> the tools) should reject enabling both at the same time.
>>>>> That sounds sensible to me.
>>>>>
>>>>> Generally we seem to have the hypervisor check these things as a
>>>>> backstop, to stop broken tools, but also check in the tools so we can
>>>>> give a better error message.
>>>>>
>>>> Ok, with 2 votes this way how about (for v4) I will drop the change to
>>>> xen/arch/x86/traps.c (I.E. 0x40000100 will be xen)  And change
>>>>
>>>> cpuid_vmware_leaves to return 0 if is_viridian_domain().
>>> Not exactly - the conclusion rather is to not allow both to become
>>> true at the same time.
>> I have vague recollection of some Windows products (newer Microsoft
>> Server releases?) expecting to run on hypervisor, i.e. Viridian. Would
>> such restriction break these?

Not directly, newer windows and multiple cpus need viridian to run on
xen.  We have no plans to adjust xen so that windows without viridian
and multiple cpus would work.

VMware does all a fall back mode:


    Testing the virtual BIOS DMI information and the hypervisor port

Apart from the CPUID-based method for VMware virtual machine detection, 
VMware also provides a fallback mechanism for the following reasons:

  * This CPUID-based technique will not work for guest code running at
    CPL3 when VT/AMD-V is not available or not enabled.
  * The hypervisor present bit and hypervisor information leaf are only
    defined for products based on VMware hardware version 7.




Which does require getting data into smbios xenstore entries before

running the guest.  But does allow use of vmware tools even when
cpuid data says viridian.




>> Or is this orthogonal to this discussion (assuming I am right about MS
>> in the first place)?
> The question is whether Windows, when run on VMware, makes use
> of the VMware extensions _and_ after being migrated to Xen would
> be capable of making use of the Viridian ones. I doubt that, i.e. I'd
> assume that until rebooted they'd continue to use VMware's (with
> the wild assumption that such a "live" migration is actually possible in
> the first place), and they'd prefer using Viridian's after reboot. The
> only dependency might be on devices that shouldn't disappear, but
> that's independent of the hypervisor side foreign VMM emulation
> afaict.

Such a "live" migration would need a lot of work, and not clear
this topic would apply.  Most OSes like to determine what the hardware
looks like at boot, and not have it change while they are running.
  As far as I know for standard windows images the VMware support is not
enough with out the guest time faking that VMware does to get windows to
work.

So for 4.5 I see no issues with saying only viridian or vmware_hw, not both.


    -Don Slutz

> Jan
>

  reply	other threads:[~2014-09-08 22:41 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-01 15:33 [PATCH v2 0/3] Xen VMware tools support Don Slutz
2014-09-01 15:33 ` [PATCH v2 1/3] Add vmware_hw to xl.cfg Don Slutz
2014-09-02  7:28   ` Jan Beulich
2014-09-02 18:24     ` Don Slutz
2014-09-03  7:45       ` Jan Beulich
2014-09-03 10:59         ` Don Slutz
2014-09-03 12:33           ` Jan Beulich
2014-09-03 12:51             ` Don Slutz
2014-09-08 13:21           ` Ian Campbell
2014-09-08 13:47             ` Don Slutz
2014-09-08 13:55               ` Ian Campbell
2014-09-08 13:20         ` Ian Campbell
2014-09-08 13:56           ` Don Slutz
2014-09-08 14:07             ` Andrew Cooper
2014-09-08 18:39               ` Don Slutz
2014-09-08 22:11               ` Don Slutz
2014-09-08 23:34                 ` Andrew Cooper
2014-09-08 14:21             ` Jan Beulich
2014-09-08 15:16               ` Boris Ostrovsky
2014-09-08 15:27                 ` Jan Beulich
2014-09-08 22:41                   ` Don Slutz [this message]
2014-09-08 13:17   ` Ian Campbell
2014-09-08 13:27     ` Andrew Cooper
2014-09-08 13:41       ` Ian Campbell
2014-09-08 14:18         ` Don Slutz
2014-09-08 19:16     ` Don Slutz
2014-09-09  9:39       ` Ian Campbell
2014-09-09 17:02         ` Don Slutz
2014-09-10  9:30           ` Ian Campbell
2014-09-10 17:44             ` Don Slutz
2014-09-12 12:25             ` Slutz, Donald Christopher
2014-09-08 22:14     ` Don Slutz
2014-09-01 15:33 ` [PATCH v2 2/3] vmport: Add VMware provided include files Don Slutz
2014-09-02  7:34   ` Jan Beulich
2014-09-02 18:46     ` Don Slutz
2014-09-03  7:51       ` Jan Beulich
2014-09-03 12:38         ` Don Slutz
2014-09-01 15:33 ` [PATCH v2 3/3] Add limited support of VMware's hyper-call Don Slutz
2014-09-02  8:16   ` Jan Beulich
2014-09-03  0:55     ` Don Slutz
2014-09-03  8:25       ` Jan Beulich
2014-09-03 18:28         ` Don Slutz
2014-09-08 13:35   ` Ian Campbell
2014-09-08 16:57     ` Don Slutz
2014-09-09  9:36       ` Ian Campbell
2014-09-09 17:31         ` Don Slutz
2014-09-09 19:22           ` Boris Ostrovsky
2014-09-10  9:32           ` Ian Campbell
2014-09-10 17:25             ` Don Slutz
2014-09-01 16:10 ` [PATCH v2 0/3] Xen VMware tools support Jan Beulich
2014-09-01 18:14   ` Don Slutz
2014-09-08 13:03 ` Ian Campbell
2014-09-08 13:18   ` Don Slutz
2014-09-08 13:42     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=540E30AE.2040404@terremark.com \
    --to=dslutz@verizon.com \
    --cc=Aravind.Gopalakrishnan@amd.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=eddie.dong@intel.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=suravee.suthikulpanit@amd.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.