From: Fabio Fantoni <fabio.fantoni@m2r.biz>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: George.Dunlap@eu.citrix.com,
Anthony PERARD <anthony.perard@citrix.com>,
xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [PATCH] libxl: new parameters for upstream qemu's vga interfaces
Date: Thu, 10 Oct 2013 13:58:11 +0200 [thread overview]
Message-ID: <52569653.1010202@m2r.biz> (raw)
In-Reply-To: <alpine.DEB.2.02.1310101141520.26077@kaball.uk.xensource.com>
Il 10/10/2013 12:43, Stefano Stabellini ha scritto:
> On Thu, 10 Oct 2013, Fabio Fantoni wrote:
>> Il 10/10/2013 11:32, Ian Campbell ha scritto:
>>> On Thu, 2013-10-10 at 11:26 +0200, Fabio Fantoni wrote:
>>>> Il 30/09/2013 12:12, Fabio Fantoni ha scritto:
>>>>> Change the qemu parameters for upstream qemu vgas to the
>>>>> new ones (-device), introduced some years ago.
>>>> Ping
>>> Please CC the qemu maintainers (Stefano & Anthony), although these
>>> patches touch the toolstack they are logically qemu patches and need
>>> their ack.
>> Thanks for your reply, I added Anthony on CC and Stefano was already on it.
>>
>>>>> Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
>>>>> ---
>>>>> tools/libxl/libxl_dm.c | 12 +++++-------
>>>>> 1 file changed, 5 insertions(+), 7 deletions(-)
>>>>>
>>>>> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
>>>>> index 43c3bec..2c6f5d9 100644
>>>>> --- a/tools/libxl/libxl_dm.c
>>>>> +++ b/tools/libxl/libxl_dm.c
>>>>> @@ -486,15 +486,13 @@ 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_vappend(dm_args, "-vga", "std", NULL);
>>>>> + flexarray_append_pair(dm_args, "-device", "VGA");
>>>>> break;
>>>>> case LIBXL_VGA_INTERFACE_TYPE_CIRRUS:
>>>>> - flexarray_vappend(dm_args, "-vga", "cirrus", NULL);
>>>>> - if (b_info->video_memkb) {
>>>>> - flexarray_vappend(dm_args, "-global",
>>>>> - GCSPRINTF("vga.vram_size_mb=%d",
>>>>> - libxl__sizekb_to_mb(b_info->video_memkb)), NULL);
>>>>> - }
>>>>> + flexarray_append_pair(dm_args, "-device", "cirrus-vga");
>>>>> + flexarray_append_pair(dm_args, "-global",
>>>>> + GCSPRINTF("vga.vram_size_mb=%d",
>>>>> + libxl__sizekb_to_mb(b_info->video_memkb)));
>>>>> break;
>>>>> }
> Aside from switching to the new parameter format, this patch also
> removes the
>
> if (b_info->video_memkb) {
>
> check before passing the -global paramter. Is it deliberate?
> If so, it would be best to write down the motivation in the commit
> message.
> That said, the parameter change looks OK.
>
I removed the "if" after seeing that it isn't necessary because
b_info->video_memkb is always set (also without videoram parameter on
xl.cfg file).
I already tested it in both cases and I didn't find any problem.
next prev parent reply other threads:[~2013-10-10 11:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-30 10:12 [PATCH] libxl: new parameters for upstream qemu's vga interfaces Fabio Fantoni
2013-10-10 9:26 ` Fabio Fantoni
2013-10-10 9:32 ` Ian Campbell
2013-10-10 10:09 ` Fabio Fantoni
2013-10-10 10:43 ` Stefano Stabellini
2013-10-10 11:58 ` Fabio Fantoni [this message]
2013-10-10 10:51 ` Sander Eikelenboom
2013-10-10 12:29 ` Fabio Fantoni
2013-10-10 12:36 ` Sander Eikelenboom
2013-10-10 14:39 ` Fabio Fantoni
2013-10-16 12:03 ` Fabio Fantoni
2013-10-28 12:57 ` Fabio Fantoni
2013-10-28 16:45 ` Stefano Stabellini
2013-10-29 8:51 ` Fabio Fantoni
2013-11-04 17:52 ` Ian Campbell
2013-11-06 17:09 ` Stefano Stabellini
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=52569653.1010202@m2r.biz \
--to=fabio.fantoni@m2r.biz \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xensource.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).