From: Don Slutz <dslutz@verizon.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Tim Deegan <tim@xen.org>, Kevin Tian <kevin.tian@intel.com>,
Keir Fraser <keir@xen.org>,
Ian Campbell <ian.campbell@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Eddie Dong <eddie.dong@intel.com>, Don Slutz <dslutz@verizon.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Jan Beulich <jbeulich@suse.com>,
Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>,
Jun Nakajima <jun.nakajima@intel.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Subject: Re: [PATCH v3 02/16] tools part of add vmware_hw to xl.cfg
Date: Thu, 11 Sep 2014 13:48:32 -0400 [thread overview]
Message-ID: <5411E070.3030606@terremark.com> (raw)
In-Reply-To: <CAFLBxZbbbVPcRLk3fbL4RSq5zZG_WjOV-YP1cJVE61q_xBwz=A@mail.gmail.com>
On 09/11/14 07:23, George Dunlap wrote:
> On Mon, Sep 8, 2014 at 2:15 PM, Don Slutz <dslutz@verizon.com> wrote:
>> If non-zero then
>> Force use of VMware's VGA in QEMU.
>>
>> Signed-off-by: Don Slutz <dslutz@verizon.com>
> I think the title would be better "tools: Add vmware_hw support"
Ok.
>> ---
>> docs/man/xl.cfg.pod.5 | 6 ++++++
>> tools/libxc/xc_domain_restore.c | 14 ++++++++++++++
>> tools/libxc/xc_domain_save.c | 11 +++++++++++
>> tools/libxc/xg_save_restore.h | 2 ++
>> tools/libxl/libxl_create.c | 4 +++-
>> tools/libxl/libxl_dm.c | 33 +++++++++++++++++++++------------
>> tools/libxl/libxl_dom.c | 2 ++
>> tools/libxl/libxl_types.idl | 1 +
>> tools/libxl/xl_cmdimpl.c | 2 ++
>> 9 files changed, 62 insertions(+), 13 deletions(-)
>>
>> diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5
>> index 517ae2f..7f7319a 100644
>> --- a/docs/man/xl.cfg.pod.5
>> +++ b/docs/man/xl.cfg.pod.5
>> @@ -1147,6 +1147,12 @@ some other Operating Systems and in some circumstance can prevent
>> Xen's own paravirtualisation interfaces for HVM guests from being
>> used.
>>
>> +=item B<vmware_hw=NUMBER>
>> +
>> +Turns on or off the exposure of VMware cpuid. The number is the
>> +VMware's hardware version number, where 0 is off. If on it also
>> +forces the use of VMware's VGA in QEMU.
> You should also say what values are supported.
Here is what I have in v4:
=item B<vmware_hw=NUMBER>
Turns on or off the exposure of VMware cpuid. The number is the
VMware's hardware version number, where 0 is off. If not zero it
changes the default VGA to VMware's VGA.
The hardware version number (vmware_hw) come from VMware config files.
=over 4
In a .vmx it is virtualHW.version
In a .ovf it is part of the value of vssd:VirtualSystemType.
For vssd:VirtualSystemType == vmx-07, vmware_hw = 7.
=back
There is a lot in the different thread:
Message-ID: <54108DFB.8030804@terremark.com>
Date: Wed, 10 Sep 2014 13:44:27 -0400
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
To: Ian Campbell <Ian.Campbell@citrix.com>, Don Slutz <dslutz@verizon.com>
CC: Andrew Cooper <Andrew.Cooper3@citrix.com>, 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>, Ian Jackson <ian.jackson@eu.citrix.com>,
Eddie Dong <eddie.dong@intel.com>, <xen-devel@lists.xen.org>, "Aravind
Gopalakrishnan" <Aravind.Gopalakrishnan@amd.com>, Jan Beulich
<jbeulich@suse.com>, Boris Ostrovsky <boris.ostrovsky@oracle.com>, "Suravee
Suthikulpanit" <suravee.suthikulpanit@amd.com>
Subject: Re: [Xen-devel] [PATCH v2 1/3] Add vmware_hw to xl.cfg
References: <1409585629-25840-1-git-send-email-dslutz@verizon.com>
<1409585629-25840-2-git-send-email-dslutz@verizon.com>
<1410182256.3680.16.camel@kazak.uk.xensource.com>
<540E00AB.1000501@terremark.com>
<1410255568.8217.65.camel@kazak.uk.xensource.com>
<540F32A0.2070609@terremark.com>
<1410341443.8217.260.camel@kazak.uk.xensource.com>
In-Reply-To: <1410341443.8217.260.camel@kazak.uk.xensource.com>
>> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
>> index 103cbca..c79274b 100644
>> --- a/tools/libxl/libxl_dm.c
>> +++ b/tools/libxl/libxl_dm.c
>> @@ -542,19 +542,28 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
>> }
>> }
>>
>> - switch (b_info->u.hvm.vga.kind) {
>> - case LIBXL_VGA_INTERFACE_TYPE_STD:
>> - flexarray_append_pair(dm_args, "-device",
>> - GCSPRINTF("VGA,vgamem_mb=%d",
>> - libxl__sizekb_to_mb(b_info->video_memkb)));
>> - break;
>> - case LIBXL_VGA_INTERFACE_TYPE_CIRRUS:
>> + if (b_info->u.hvm.vmware_hw) {
>> flexarray_append_pair(dm_args, "-device",
>> - GCSPRINTF("cirrus-vga,vgamem_mb=%d",
>> - libxl__sizekb_to_mb(b_info->video_memkb)));
>> - break;
>> - case LIBXL_VGA_INTERFACE_TYPE_NONE:
>> - break;
>> + GCSPRINTF("vmware-svga,vgamem_mb=%d",
>> + libxl__sizekb_to_mb(
>> + b_info->video_memkb)));
>> + } else {
>> + switch (b_info->u.hvm.vga.kind) {
>> + case LIBXL_VGA_INTERFACE_TYPE_STD:
>> + flexarray_append_pair(dm_args, "-device",
>> + GCSPRINTF("VGA,vgamem_mb=%d",
>> + libxl__sizekb_to_mb(
>> + b_info->video_memkb)));
>> + break;
>> + case LIBXL_VGA_INTERFACE_TYPE_CIRRUS:
>> + flexarray_append_pair(dm_args, "-device",
>> + GCSPRINTF("cirrus-vga,vgamem_mb=%d",
>> + libxl__sizekb_to_mb(
>> + b_info->video_memkb)));
>> + break;
>> + case LIBXL_VGA_INTERFACE_TYPE_NONE:
>> + break;
>> + }
>> }
> So if we set vmware_hw, then we:
> 1. always add a vmware-svga device, regargless of whether vga has been requested
> 2. Ignore the vga parameter and only add vmware-svga, even if someone
> may want something else?
>
> I think at the libxl level, we should add a VMWARE interface type.
> Then in xl_cmdimpl.c, we should:
> * Add a vga="vmware" type in xl.cfg
> * honor the vga= setting (perhaps with a warning if vmware_hw is true?)
> * if vga is not set, and vmware_hw is true, default to vga=VMWARE
In v2 and v3 yes. In v4 no. What you are suggesting I have already coded.
>> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
>> index 8a38077..c30341a 100644
>> --- a/tools/libxl/xl_cmdimpl.c
>> +++ b/tools/libxl/xl_cmdimpl.c
>> @@ -1033,6 +1033,8 @@ static void parse_config_data(const char *config_source,
>> xlu_cfg_get_defbool(config, "acpi_s4", &b_info->u.hvm.acpi_s4, 0);
>> xlu_cfg_get_defbool(config, "nx", &b_info->u.hvm.nx, 0);
>> xlu_cfg_get_defbool(config, "viridian", &b_info->u.hvm.viridian, 0);
>> + if (!xlu_cfg_get_long(config, "vmware_hw", &l, 1))
>> + b_info->u.hvm.vmware_hw = l;
>> xlu_cfg_get_defbool(config, "hpet", &b_info->u.hvm.hpet, 0);
>> xlu_cfg_get_defbool(config, "vpt_align", &b_info->u.hvm.vpt_align, 0);
> This is a really minor thing, but is there a reason you put this in
> the middle of a bunch of other get_defbool()s, instead of putting it
> just after? It makes the code just look a bit more ugly. :-)
Not a good one, I was just following where viridian was done. Will move
it down a
few lines.
-Don Slutz
> -George
next prev parent reply other threads:[~2014-09-11 17:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-08 13:15 [PATCH v3 00/16] Xen VMware tools support Don Slutz
2014-09-08 13:15 ` [PATCH v3 01/16] hypervisor part of add vmware_hw to xl.cfg Don Slutz
2014-09-11 10:52 ` George Dunlap
2014-09-11 17:21 ` Don Slutz
2014-09-08 13:15 ` [PATCH v3 02/16] tools " Don Slutz
2014-09-11 11:23 ` George Dunlap
2014-09-11 17:48 ` Don Slutz [this message]
2014-09-08 13:15 ` [PATCH v3 03/16] vmware: Add VMware provided include files Don Slutz
2014-09-08 13:15 ` [PATCH v3 04/16] hypervisor part of add vmware_port to xl.cfg Don Slutz
2014-09-08 15:01 ` Boris Ostrovsky
2014-09-08 15:22 ` Jan Beulich
2014-09-08 15:32 ` Andrew Cooper
2014-09-08 15:43 ` Boris Ostrovsky
2014-09-08 17:56 ` Don Slutz
2014-09-08 17:20 ` Don Slutz
2014-09-11 15:34 ` George Dunlap
2014-09-08 13:15 ` [PATCH v3 05/16] tools " Don Slutz
2014-09-15 10:03 ` George Dunlap
2014-09-20 15:52 ` Slutz, Donald Christopher
2014-09-08 13:15 ` [PATCH v3 06/16] hypervisor part of convert vmware_port to xentrace usage Don Slutz
2014-09-08 13:15 ` [PATCH v3 07/16] tools " Don Slutz
2014-09-08 13:15 ` [PATCH v3 08/16] hypervisor part of add limited support of VMware's hyper-call rpc Don Slutz
2014-09-08 13:15 ` [PATCH v3 09/16] tools " Don Slutz
2014-09-08 13:15 ` [PATCH v3 10/16] Add VMware tool's triggers Don Slutz
2014-09-08 13:15 ` [PATCH v3 11/16] Add live migration of VMware's hyper-call RPC Don Slutz
2014-09-08 13:15 ` [PATCH v3 12/16] Add dump of HVM_SAVE_CODE(VMPORT) to xen-hvmctx Don Slutz
2014-09-08 13:15 ` [optional][PATCH v3 13/16] Add xen-hvm-param Don Slutz
2014-09-08 13:15 ` [optional][PATCH v3 14/16] Add xen-vmware-guestinfo Don Slutz
2014-09-08 13:15 ` [optional][PATCH v3 15/16] Add xen-list-vmware-guestinfo Don Slutz
2014-09-08 13:15 ` [optional][PATCH v3 16/16] Add xen-hvm-send-trigger Don Slutz
2014-09-08 13:38 ` [PATCH v3 00/16] Xen VMware tools support Ian Campbell
2014-09-08 16:58 ` Don Slutz
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=5411E070.3030606@terremark.com \
--to=dslutz@verizon.com \
--cc=Aravind.Gopalakrishnan@amd.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=eddie.dong@intel.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.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.