From: Fabio Fantoni <fabio.fantoni@m2r.biz>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xensource.com, Stefano.Stabellini@eu.citrix.com,
George.Dunlap@eu.citrix.com, wei.lui2@citrix.com,
Ian.Jackson@eu.citrix.com, qemu-devel@nongnu.org,
spice-devel@lists.freedesktop.org,
Anthony Perard <anthony.perard@citrix.com>,
pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v4] libxl: usb2 and usb3 controller support for upstream qemu
Date: Fri, 13 Sep 2013 15:42:14 +0200 [thread overview]
Message-ID: <52331636.1070708@m2r.biz> (raw)
In-Reply-To: <1379073541.19256.47.camel@kazak.uk.xensource.com>
Il 13/09/2013 13:59, Ian Campbell ha scritto:
> On Mon, 2013-07-15 at 11:11 +0200, Fabio Fantoni wrote:
>
> Stefano or Anthony -- your input as qemu-xen types would be appreciated
> here on this patch.
>
>>> + case 2:
>>> + flexarray_vappend(dm_args, "-device","ich9-usb-ehci1,id=usb,"
>>> + "bus=pci.0,addr=0x1d.0x7", NULL);
>>> + for (i = 1; i < 4; i++)
>>> + flexarray_vappend(dm_args, "-device", libxl__sprintf(gc,
>>> + "ich9-usb-uhci%d,masterbus=usb.0,firstport=%d,"
>>> + "bus=pci.0%s,addr=0x1d.%#x", i, 2*(i-1), i == 1 ?
>>> + ",multifunction=on" : "", i-1), NULL);
>>> + break;
> Please format this in some sort of halfway readable style.
>
> Using GCSPRINTF might help, as would putting newlines in more logical
> places.
>
> Also you don't need _vappend, _append_pair would do.
Thanks for reply.
I'll do them on next version if I understand right the "halfway readable
style".
>
>>> diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl
>>> index d218a2d..100f36c 100644
>>> --- a/tools/libxl/libxl_types.idl
>>> +++ b/tools/libxl/libxl_types.idl
>>> @@ -325,6 +325,7 @@ libxl_domain_build_info = Struct("domain_build_info",[
>>> ("serial", string),
>>> ("boot", string),
>>> ("usb", libxl_defbool),
>>> + ("usbversion", integer),
> Some sort of whitepace damage?
On source code seem correct (usbversion with same whitespace of usb
before the "(" and also aligned to view), I don't know what cause this
problem.
I try to remove the patch and reapply it from git format-patch file
(with patch -p1 -i ...) and also in that case the source code seem correct.
>
>>> # usbdevice:
>>> # - "tablet" for absolute mouse,
>>> # - "mouse" for PS/2 protocol relative mouse
>>> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
>>> index 8a478ba..a618ede 100644
>>> --- a/tools/libxl/xl_cmdimpl.c
>>> +++ b/tools/libxl/xl_cmdimpl.c
>>> @@ -1495,6 +1495,8 @@ skip_vfb:
>>> xlu_cfg_replace_string (config, "serial", &b_info->u.hvm.serial, 0);
>>> xlu_cfg_replace_string (config, "boot", &b_info->u.hvm.boot, 0);
>>> xlu_cfg_get_defbool(config, "usb", &b_info->u.hvm.usb, 0);
>>> + if (!xlu_cfg_get_long (config, "usbversion", &l, 0))
>>> + b_info->u.hvm.usbversion = l;
> and again.
>
>>> switch (xlu_cfg_get_list_as_string_list(config, "usbdevice",
>>> &b_info->u.hvm.usbdevice_list,
>>> 1))
>
WARNING: multiple messages have this Message-ID (diff)
From: Fabio Fantoni <fabio.fantoni@m2r.biz>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xensource.com, Stefano.Stabellini@eu.citrix.com,
George.Dunlap@eu.citrix.com, wei.lui2@citrix.com,
Ian.Jackson@eu.citrix.com, qemu-devel@nongnu.org,
spice-devel@lists.freedesktop.org,
Anthony Perard <anthony.perard@citrix.com>,
pbonzini@redhat.com
Subject: Re: [PATCH v4] libxl: usb2 and usb3 controller support for upstream qemu
Date: Fri, 13 Sep 2013 15:42:14 +0200 [thread overview]
Message-ID: <52331636.1070708@m2r.biz> (raw)
In-Reply-To: <1379073541.19256.47.camel@kazak.uk.xensource.com>
Il 13/09/2013 13:59, Ian Campbell ha scritto:
> On Mon, 2013-07-15 at 11:11 +0200, Fabio Fantoni wrote:
>
> Stefano or Anthony -- your input as qemu-xen types would be appreciated
> here on this patch.
>
>>> + case 2:
>>> + flexarray_vappend(dm_args, "-device","ich9-usb-ehci1,id=usb,"
>>> + "bus=pci.0,addr=0x1d.0x7", NULL);
>>> + for (i = 1; i < 4; i++)
>>> + flexarray_vappend(dm_args, "-device", libxl__sprintf(gc,
>>> + "ich9-usb-uhci%d,masterbus=usb.0,firstport=%d,"
>>> + "bus=pci.0%s,addr=0x1d.%#x", i, 2*(i-1), i == 1 ?
>>> + ",multifunction=on" : "", i-1), NULL);
>>> + break;
> Please format this in some sort of halfway readable style.
>
> Using GCSPRINTF might help, as would putting newlines in more logical
> places.
>
> Also you don't need _vappend, _append_pair would do.
Thanks for reply.
I'll do them on next version if I understand right the "halfway readable
style".
>
>>> diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl
>>> index d218a2d..100f36c 100644
>>> --- a/tools/libxl/libxl_types.idl
>>> +++ b/tools/libxl/libxl_types.idl
>>> @@ -325,6 +325,7 @@ libxl_domain_build_info = Struct("domain_build_info",[
>>> ("serial", string),
>>> ("boot", string),
>>> ("usb", libxl_defbool),
>>> + ("usbversion", integer),
> Some sort of whitepace damage?
On source code seem correct (usbversion with same whitespace of usb
before the "(" and also aligned to view), I don't know what cause this
problem.
I try to remove the patch and reapply it from git format-patch file
(with patch -p1 -i ...) and also in that case the source code seem correct.
>
>>> # usbdevice:
>>> # - "tablet" for absolute mouse,
>>> # - "mouse" for PS/2 protocol relative mouse
>>> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
>>> index 8a478ba..a618ede 100644
>>> --- a/tools/libxl/xl_cmdimpl.c
>>> +++ b/tools/libxl/xl_cmdimpl.c
>>> @@ -1495,6 +1495,8 @@ skip_vfb:
>>> xlu_cfg_replace_string (config, "serial", &b_info->u.hvm.serial, 0);
>>> xlu_cfg_replace_string (config, "boot", &b_info->u.hvm.boot, 0);
>>> xlu_cfg_get_defbool(config, "usb", &b_info->u.hvm.usb, 0);
>>> + if (!xlu_cfg_get_long (config, "usbversion", &l, 0))
>>> + b_info->u.hvm.usbversion = l;
> and again.
>
>>> switch (xlu_cfg_get_list_as_string_list(config, "usbdevice",
>>> &b_info->u.hvm.usbdevice_list,
>>> 1))
>
next prev parent reply other threads:[~2013-09-13 13:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 13:58 [Qemu-devel] [PATCH v4] libxl: usb2 and usb3 controller support for upstream qemu Fabio Fantoni
2013-07-12 13:58 ` Fabio Fantoni
2013-07-12 16:13 ` [Qemu-devel] " George Dunlap
2013-07-12 16:13 ` George Dunlap
2013-07-12 22:12 ` [Qemu-devel] [Xen-devel] " Dario Faggioli
2013-07-12 22:12 ` Dario Faggioli
2013-07-15 9:11 ` [Qemu-devel] " Fabio Fantoni
2013-07-15 9:11 ` Fabio Fantoni
2013-09-13 11:59 ` [Qemu-devel] " Ian Campbell
2013-09-13 11:59 ` Ian Campbell
2013-09-13 13:42 ` Fabio Fantoni [this message]
2013-09-13 13:42 ` Fabio Fantoni
2013-09-13 13:54 ` [Qemu-devel] " Ian Campbell
2013-09-13 13:54 ` 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=52331636.1070708@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=Stefano.Stabellini@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=spice-devel@lists.freedesktop.org \
--cc=wei.lui2@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 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.