xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: ZhouPeng <zpengxen@gmail.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Subject: Re: [PATCH 2/3] tools:libxl: Add qxl vga interface support v2
Date: Mon, 22 Oct 2012 15:36:24 +0100	[thread overview]
Message-ID: <508559E8.10102@eu.citrix.com> (raw)
In-Reply-To: <CAAh7U5MMmAz047KzHVMRkUF=hGZKGfDfM1KM41jF8g6bZAXq7g@mail.gmail.com>

On 18/10/12 11:19, ZhouPeng wrote:
> v4
>
> test and fix conflict with the latest Xen
> -----
>
>
> tools:libxl: Add qxl vga interface support for upstream-qemu-xen.
>
> Usage:
>    qxl=1|0
>
> Signed-off-by: Zhou Peng <ailvpeng25@gmail.com>

Thanks, Zhou Peng.  Just a couple of comments below:

>
> diff -r c1c549c4fe9e docs/man/xl.cfg.pod.5
> --- a/docs/man/xl.cfg.pod.5	Mon Oct 15 16:51:44 2012 +0100
> +++ b/docs/man/xl.cfg.pod.5	Thu Oct 18 17:53:25 2012 +0800
> @@ -930,10 +930,13 @@ in the B<VFB_SPEC_STRING> for configurin
>
>   Sets the amount of RAM which the emulated video card will contain,
>   which in turn limits the resolutions and bit depths which will be
> -available. This option is only available when using the B<stdvga>
> -option (see below).
> +available. This option is only available when using the B<stdvga> and
> +B<qxl> option (see below).
>   The default amount of video ram for stdvga is 8MB which is sufficient
>   for e.g. 1600x1200 at 32bpp.
> +For B<qxl> option, the default is 128MB. If B<videoram> is set greater
> +than 128MB, it will be trimmed to 128MB; if set less than 128MB, an
> +error will be triggered.

Is this a fixed value in qemu, or is this something that can be changed 
via the command-line?

> +
> +        if (b_info->device_model_version == LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN
> +            && b_info->u.hvm.vga.kind == LIBXL_VGA_INTERFACE_TYPE_QXL) {
> +            /*
> +             * QXL needs 128 Mib video ram by default.
> +             */
> +            if (b_info->video_memkb == LIBXL_MEMKB_DEFAULT) {
> +                b_info->video_memkb = 128 * 1024;
> +            }
> +            if (b_info->video_memkb < 128 * 1024) {
> +                LIBXL__LOG(CTX, LIBXL__LOG_ERROR,
> +                    "128 Mib videoram is necessary for qxl default");
> +                return ERROR_INVAL;
> +            }
> +            if (b_info->video_memkb > 128 * 1024) {
> +                b_info->video_memkb = 128 * 1024;
> +                LIBXL__LOG(CTX, LIBXL__LOG_WARNING,
> +                            "trim videoram to qxl default: 128 Mib");
> +            }
> +        }

It would be better to have a single #define for the required QXL video 
mem size, rather than duplicating "128*1024" several times.

Other than that, looks pretty good to me.

Thanks,
  -George

  reply	other threads:[~2012-10-22 14:36 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05 11:22 [PATCH 2/3] tools:libxl: Add qxl vga interface support v2 ZhouPeng
2012-06-06 13:05 ` Ian Campbell
2012-06-07  3:19   ` ZhouPeng
2012-06-07  6:08     ` Ian Campbell
2012-06-07  7:49       ` ZhouPeng
2012-07-03 11:30       ` ZhouPeng
2012-07-03 14:24         ` Ian Campbell
2012-10-10 16:50           ` George Dunlap
2012-10-14  5:16             ` ZhouPeng
2012-10-18 10:19               ` ZhouPeng
2012-10-22 14:36                 ` George Dunlap [this message]
2012-10-24  8:06                   ` ZhouPeng
2012-10-24 13:25                     ` George Dunlap
2012-10-30  7:45                       ` ZhouPeng
2012-11-19 11:37                     ` Ian Campbell
2012-11-21  3:27                       ` ZhouPeng
2012-11-21 11:02                         ` Ian Campbell
2013-01-16 17:00                           ` George Dunlap

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=508559E8.10102@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=zpengxen@gmail.com \
    /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).