From: Ian Campbell <ian.campbell@citrix.com>
To: Don Slutz <don.slutz@gmail.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>,
George Dunlap <George.Dunlap@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,
Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>,
Jan Beulich <jbeulich@suse.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Subject: Re: [PATCH v12 1/8] tools: Add vga=vmware
Date: Tue, 7 Jul 2015 16:54:50 +0100 [thread overview]
Message-ID: <1436284490.25646.259.camel@citrix.com> (raw)
In-Reply-To: <1435447665-5433-2-git-send-email-Don.Slutz@Gmail.com>
On Sat, 2015-06-27 at 19:27 -0400, Don Slutz wrote:
> From: Don Slutz <dslutz@verizon.com>
>
> This allows use of QEMU's VMware emulated video card
>
> NOTE: vga=vmware is not supported by device_model_version=qemu-xen-traditional
>
> Signed-off-by: Don Slutz <dslutz@verizon.com>
> CC: Don Slutz <don.slutz@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
> ---
> v12:
> Dropped LIBXL_HAVE_LIBXL_VGA_INTERFACE_TYPE_VMWARE
> This means that the later patch that defines LIBXL_HAVE_VMWARE
> is now also required.
>
> v11:
> Dropped support for Qemu-trad.
> Also changed later patchs to not need this one.
>
> v10: New at v10.
>
> Was part of "tools: Add vmware_hwver support"
>
> docs/man/xl.cfg.pod.5 | 4 +++-
> tools/libxl/libxl_dm.c | 9 +++++++++
> tools/libxl/libxl_types.idl | 1 +
> tools/libxl/xl_cmdimpl.c | 2 ++
> 4 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5
> index a3e0e2e..84078f6 100644
> --- a/docs/man/xl.cfg.pod.5
> +++ b/docs/man/xl.cfg.pod.5
> @@ -1389,7 +1389,7 @@ This option is deprecated, use vga="stdvga" instead.
>
> =item B<vga="STRING">
>
> -Selects the emulated video card (none|stdvga|cirrus|qxl).
> +Selects the emulated video card (none|stdvga|cirrus|qxl|vmware).
> The default is cirrus.
>
> In general, QXL should work with the Spice remote display protocol
> @@ -1397,6 +1397,8 @@ for acceleration, and QXL driver is necessary in guest in this case.
> QXL can also work with the VNC protocol, but it will be like a standard
> VGA without acceleration.
>
> +NOTE: vmware is not supported on B<device_model_version = "qemu-xen-traditional">
> +
> =item B<vnc=BOOLEAN>
>
> Allow access to the display via the VNC protocol. This enables the
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index 6b8b3ac..975996d 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -256,6 +256,10 @@ static int libxl__build_device_model_args_old(libxl__gc *gc,
> case LIBXL_VGA_INTERFACE_TYPE_NONE:
> flexarray_append_pair(dm_args, "-vga", "none");
> break;
> + case LIBXL_VGA_INTERFACE_TYPE_VMWARE:
> + LOG(ERROR, "vga=vmware is not supported by "
> + "qemu-xen-traditional");
> + return ERROR_INVAL;
> case LIBXL_VGA_INTERFACE_TYPE_QXL:
> break;
> }
> @@ -657,6 +661,11 @@ static int libxl__build_device_model_args_new(libxl__gc *gc,
> GCSPRINTF("qxl-vga,vram_size_mb=%"PRIu64",ram_size_mb=%"PRIu64,
> (b_info->video_memkb/2/1024), (b_info->video_memkb/2/1024) ) );
> break;
> + case LIBXL_VGA_INTERFACE_TYPE_VMWARE:
> + flexarray_append_pair(dm_args, "-device",
> + GCSPRINTF("vmware-svga,vgamem_mb=%d",
> + libxl__sizekb_to_mb(b_info->video_memkb)));
> + break;
> }
>
> if (b_info->u.hvm.boot) {
> diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl
> index 736c4e4..534e7f0 100644
> --- a/tools/libxl/libxl_types.idl
> +++ b/tools/libxl/libxl_types.idl
> @@ -187,6 +187,7 @@ libxl_vga_interface_type = Enumeration("vga_interface_type", [
> (2, "STD"),
> (3, "NONE"),
> (4, "QXL"),
> + (5, "VMWARE"),
> ], init_val = "LIBXL_VGA_INTERFACE_TYPE_CIRRUS")
>
> libxl_vendor_device = Enumeration("vendor_device", [
> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> index 568fd21..efb3651 100644
> --- a/tools/libxl/xl_cmdimpl.c
> +++ b/tools/libxl/xl_cmdimpl.c
> @@ -2142,6 +2142,8 @@ skip_vfb:
> b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_NONE;
> } else if (!strcmp(buf, "qxl")) {
> b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_QXL;
> + } else if (!strcmp(buf, "vmware")) {
> + b_info->u.hvm.vga.kind = LIBXL_VGA_INTERFACE_TYPE_VMWARE;
> } else {
> fprintf(stderr, "Unknown vga \"%s\" specified\n", buf);
> exit(1);
next prev parent reply other threads:[~2015-07-07 15:54 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-27 23:27 [PATCH v12 0/8] Xen VMware tools support Don Slutz
2015-06-27 23:27 ` [PATCH v12 1/8] tools: Add vga=vmware Don Slutz
2015-07-07 15:54 ` Ian Campbell [this message]
2015-06-27 23:27 ` [PATCH v12 2/8] xen: Add support for VMware cpuid leaves Don Slutz
2015-07-01 20:01 ` Konrad Rzeszutek Wilk
2015-07-03 22:03 ` Don Slutz
2015-07-07 15:03 ` Konrad Rzeszutek Wilk
2015-07-28 2:54 ` Don Slutz
2015-07-07 15:56 ` Ian Campbell
2015-06-27 23:27 ` [PATCH v12 3/8] tools: Add vmware_hwver support Don Slutz
2015-07-01 20:14 ` Konrad Rzeszutek Wilk
2015-07-07 15:59 ` Ian Campbell
2015-07-28 2:58 ` Don Slutz
2015-06-27 23:27 ` [PATCH v12 4/8] vmware: Add VMware provided include file Don Slutz
2015-06-27 23:27 ` [PATCH v12 5/8] xen: Add vmware_port support Don Slutz
2015-06-27 23:27 ` [PATCH v12 6/8] tools: " Don Slutz
2015-07-07 16:01 ` Ian Campbell
2015-06-27 23:27 ` [PATCH v12 7/8] Add IOREQ_TYPE_VMWARE_PORT Don Slutz
2015-07-01 20:49 ` Konrad Rzeszutek Wilk
2015-07-03 14:55 ` Don Slutz
2015-07-07 15:02 ` Konrad Rzeszutek Wilk
2015-07-28 2:59 ` Don Slutz
2015-06-27 23:27 ` [PATCH v12 8/8] Add xentrace to vmware_port Don Slutz
2015-06-29 14:54 ` Andrew Cooper
2015-06-29 16:11 ` Don Slutz
2015-07-10 8:40 ` [PATCH v12 0/8] Xen VMware tools support Jan Beulich
2015-07-10 9:07 ` Wei Liu
2015-07-28 3:18 ` Don Slutz
2015-07-28 14:32 ` Konrad Rzeszutek Wilk
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=1436284490.25646.259.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Aravind.Gopalakrishnan@amd.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=don.slutz@gmail.com \
--cc=dslutz@verizon.com \
--cc=eddie.dong@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).