xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] libxl: remove qemu default devices for upstream qemu
@ 2013-09-30 11:53 Fabio Fantoni
  2013-10-08 14:51 ` Fabio Fantoni
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Fantoni @ 2013-09-30 11:53 UTC (permalink / raw)
  To: xen-devel
  Cc: Ian.Campbell, Stefano.Stabellini, George.Dunlap, Ian.Jackson,
	wei.lui2, Fabio Fantoni

Remove default devices created by qemu. Qemu will create only devices
defined by xen, since the devices not defined by xen are not usable.
Remove deleting of empty floppy no more needed with nodefault.

Changes from v1:
Fix multi-line comment style

Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
---
 tools/libxl/libxl_dm.c |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
index 2c6f5d9..eb71089 100644
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -392,6 +392,13 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
     flexarray_append(dm_args, "-mon");
     flexarray_append(dm_args, "chardev=libxl-cmd,mode=control");
 
+    /* 
+     * Remove default devices created by qemu. Qemu will create only devices
+     * defined by xen, since the devices not defined by xen are not usable.
+     * Remove deleting of empty floppy no more needed with nodefault.
+     */
+    flexarray_append(dm_args, "-nodefaults");
+
     if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
         flexarray_append(dm_args, "-xen-attach");
     }
@@ -457,9 +464,6 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
     if (b_info->type == LIBXL_DOMAIN_TYPE_HVM) {
         int ioemu_nics = 0;
 
-        /* Disable useless empty floppy drive */
-        flexarray_vappend(dm_args, "-global", "isa-fdc.driveA=", NULL);
-
         if (b_info->u.hvm.serial) {
             flexarray_vappend(dm_args, "-serial", b_info->u.hvm.serial, NULL);
         }
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] libxl: remove qemu default devices for upstream qemu
  2013-09-30 11:53 [PATCH v2] libxl: remove qemu default devices for upstream qemu Fabio Fantoni
@ 2013-10-08 14:51 ` Fabio Fantoni
  2013-10-08 14:54   ` George Dunlap
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Fantoni @ 2013-10-08 14:51 UTC (permalink / raw)
  To: Fabio Fantoni
  Cc: xen-devel, Ian.Campbell, Stefano.Stabellini, George.Dunlap,
	Ian.Jackson, wei.lui2

Il 30/09/2013 13:53, Fabio Fantoni ha scritto:
> Remove default devices created by qemu. Qemu will create only devices
> defined by xen, since the devices not defined by xen are not usable.
> Remove deleting of empty floppy no more needed with nodefault.

Any comment on this?

Thanks for any reply.

>
> Changes from v1:
> Fix multi-line comment style
>
> Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
> ---
>   tools/libxl/libxl_dm.c |   10 +++++++---
>   1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
> index 2c6f5d9..eb71089 100644
> --- a/tools/libxl/libxl_dm.c
> +++ b/tools/libxl/libxl_dm.c
> @@ -392,6 +392,13 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
>       flexarray_append(dm_args, "-mon");
>       flexarray_append(dm_args, "chardev=libxl-cmd,mode=control");
>   
> +    /*
> +     * Remove default devices created by qemu. Qemu will create only devices
> +     * defined by xen, since the devices not defined by xen are not usable.
> +     * Remove deleting of empty floppy no more needed with nodefault.
> +     */
> +    flexarray_append(dm_args, "-nodefaults");
> +
>       if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
>           flexarray_append(dm_args, "-xen-attach");
>       }
> @@ -457,9 +464,6 @@ static char ** libxl__build_device_model_args_new(libxl__gc *gc,
>       if (b_info->type == LIBXL_DOMAIN_TYPE_HVM) {
>           int ioemu_nics = 0;
>   
> -        /* Disable useless empty floppy drive */
> -        flexarray_vappend(dm_args, "-global", "isa-fdc.driveA=", NULL);
> -
>           if (b_info->u.hvm.serial) {
>               flexarray_vappend(dm_args, "-serial", b_info->u.hvm.serial, NULL);
>           }

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] libxl: remove qemu default devices for upstream qemu
  2013-10-08 14:51 ` Fabio Fantoni
@ 2013-10-08 14:54   ` George Dunlap
  2013-10-10 16:49     ` Anthony PERARD
  0 siblings, 1 reply; 6+ messages in thread
From: George Dunlap @ 2013-10-08 14:54 UTC (permalink / raw)
  To: Fabio Fantoni
  Cc: xen-devel, Ian.Campbell, Stefano.Stabellini, Ian.Jackson,
	wei.lui2, Anthony PERARD

On 10/08/2013 03:51 PM, Fabio Fantoni wrote:
> Il 30/09/2013 13:53, Fabio Fantoni ha scritto:
>> Remove default devices created by qemu. Qemu will create only devices
>> defined by xen, since the devices not defined by xen are not usable.
>> Remove deleting of empty floppy no more needed with nodefault.
>
> Any comment on this?
>
> Thanks for any reply.

It sounds like a good idea to me, but I'm not in a position to review 
it.  You should CC Anthony Perard along with Stefano for patches that 
have to do with qemu.

  -George

>
>>
>> Changes from v1:
>> Fix multi-line comment style
>>
>> Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
>> ---
>>   tools/libxl/libxl_dm.c |   10 +++++++---
>>   1 file changed, 7 insertions(+), 3 deletions(-)
>>
>> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c
>> index 2c6f5d9..eb71089 100644
>> --- a/tools/libxl/libxl_dm.c
>> +++ b/tools/libxl/libxl_dm.c
>> @@ -392,6 +392,13 @@ static char **
>> libxl__build_device_model_args_new(libxl__gc *gc,
>>       flexarray_append(dm_args, "-mon");
>>       flexarray_append(dm_args, "chardev=libxl-cmd,mode=control");
>> +    /*
>> +     * Remove default devices created by qemu. Qemu will create only
>> devices
>> +     * defined by xen, since the devices not defined by xen are not
>> usable.
>> +     * Remove deleting of empty floppy no more needed with nodefault.
>> +     */
>> +    flexarray_append(dm_args, "-nodefaults");
>> +
>>       if (b_info->type == LIBXL_DOMAIN_TYPE_PV) {
>>           flexarray_append(dm_args, "-xen-attach");
>>       }
>> @@ -457,9 +464,6 @@ static char **
>> libxl__build_device_model_args_new(libxl__gc *gc,
>>       if (b_info->type == LIBXL_DOMAIN_TYPE_HVM) {
>>           int ioemu_nics = 0;
>> -        /* Disable useless empty floppy drive */
>> -        flexarray_vappend(dm_args, "-global", "isa-fdc.driveA=", NULL);
>> -
>>           if (b_info->u.hvm.serial) {
>>               flexarray_vappend(dm_args, "-serial",
>> b_info->u.hvm.serial, NULL);
>>           }
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] libxl: remove qemu default devices for upstream qemu
  2013-10-08 14:54   ` George Dunlap
@ 2013-10-10 16:49     ` Anthony PERARD
  2013-10-11  7:53       ` Fabio Fantoni
  2013-10-14 16:47       ` Ian Jackson
  0 siblings, 2 replies; 6+ messages in thread
From: Anthony PERARD @ 2013-10-10 16:49 UTC (permalink / raw)
  To: George Dunlap
  Cc: xen-devel, Ian.Campbell, Stefano.Stabellini, Ian.Jackson,
	wei.lui2, Fabio Fantoni

On Tue, Oct 08, 2013 at 03:54:16PM +0100, George Dunlap wrote:
> On 10/08/2013 03:51 PM, Fabio Fantoni wrote:
> >Il 30/09/2013 13:53, Fabio Fantoni ha scritto:
> >>Remove default devices created by qemu. Qemu will create only devices
> >>defined by xen, since the devices not defined by xen are not usable.
> >>Remove deleting of empty floppy no more needed with nodefault.
> >
> >Any comment on this?
> >
> >Thanks for any reply.
> 
> It sounds like a good idea to me, but I'm not in a position to
> review it.  You should CC Anthony Perard along with Stefano for
> patches that have to do with qemu.

After applying the patch, there is three things that goes away:
  - the parallel port
  - an empty cdrom driver, if xl does not ask for one
  - a block device reported by qemu as "sd0"

So, parallel, I suppose that can go away, as it's not usubal (by default
the output go to the graphic output). The "sd0" seems to be an sdcard
slot, but I don't think we can use it from xl. And the last one, the
cdrom driver is also not usubal from xl, if one want to insert a cd into
it, the cdrom driver need to be in the vm config file.

So, I'm happy with the patch:

Acked-by: Anthony PERARD <anthony.perard@citrix.com>

-- 
Anthony PERARD

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] libxl: remove qemu default devices for upstream qemu
  2013-10-10 16:49     ` Anthony PERARD
@ 2013-10-11  7:53       ` Fabio Fantoni
  2013-10-14 16:47       ` Ian Jackson
  1 sibling, 0 replies; 6+ messages in thread
From: Fabio Fantoni @ 2013-10-11  7:53 UTC (permalink / raw)
  To: Anthony PERARD
  Cc: xen-devel, Ian.Campbell, Stefano.Stabellini, George Dunlap,
	Ian.Jackson, wei.lui2

Il 10/10/2013 18:49, Anthony PERARD ha scritto:
> On Tue, Oct 08, 2013 at 03:54:16PM +0100, George Dunlap wrote:
>> On 10/08/2013 03:51 PM, Fabio Fantoni wrote:
>>> Il 30/09/2013 13:53, Fabio Fantoni ha scritto:
>>>> Remove default devices created by qemu. Qemu will create only devices
>>>> defined by xen, since the devices not defined by xen are not usable.
>>>> Remove deleting of empty floppy no more needed with nodefault.
>>> Any comment on this?
>>>
>>> Thanks for any reply.
>> It sounds like a good idea to me, but I'm not in a position to
>> review it.  You should CC Anthony Perard along with Stefano for
>> patches that have to do with qemu.
> After applying the patch, there is three things that goes away:
>    - the parallel port
>    - an empty cdrom driver, if xl does not ask for one
>    - a block device reported by qemu as "sd0"
>
> So, parallel, I suppose that can go away, as it's not usubal (by default
> the output go to the graphic output). The "sd0" seems to be an sdcard
> slot, but I don't think we can use it from xl. And the last one, the
> cdrom driver is also not usubal from xl, if one want to insert a cd into
> it, the cdrom driver need to be in the vm config file.
>
> So, I'm happy with the patch:
>
> Acked-by: Anthony PERARD <anthony.perard@citrix.com>
>
Thanks for your reply, can you check also this post please?
http://lists.xen.org/archives/html/xen-devel/2013-10/msg00843.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] libxl: remove qemu default devices for upstream qemu
  2013-10-10 16:49     ` Anthony PERARD
  2013-10-11  7:53       ` Fabio Fantoni
@ 2013-10-14 16:47       ` Ian Jackson
  1 sibling, 0 replies; 6+ messages in thread
From: Ian Jackson @ 2013-10-14 16:47 UTC (permalink / raw)
  To: Anthony PERARD
  Cc: xen-devel, Ian.Campbell, Stefano.Stabellini, George Dunlap,
	wei.lui2, Fabio Fantoni

Anthony PERARD writes ("Re: [PATCH v2] libxl: remove qemu default devices for upstream qemu"):
> On Tue, Oct 08, 2013 at 03:54:16PM +0100, George Dunlap wrote:
> > On 10/08/2013 03:51 PM, Fabio Fantoni wrote:
> > >Il 30/09/2013 13:53, Fabio Fantoni ha scritto:
> > >>Remove default devices created by qemu. Qemu will create only devices
> > >>defined by xen, since the devices not defined by xen are not usable.
> > >>Remove deleting of empty floppy no more needed with nodefault.
> > >
> > >Any comment on this?
> > >
> > >Thanks for any reply.
> > 
> > It sounds like a good idea to me, but I'm not in a position to
> > review it.  You should CC Anthony Perard along with Stefano for
> > patches that have to do with qemu.
> 
> After applying the patch, there is three things that goes away:
>   - the parallel port
>   - an empty cdrom driver, if xl does not ask for one
>   - a block device reported by qemu as "sd0"
> 
> So, parallel, I suppose that can go away, as it's not usubal (by default
> the output go to the graphic output). The "sd0" seems to be an sdcard
> slot, but I don't think we can use it from xl. And the last one, the
> cdrom driver is also not usubal from xl, if one want to insert a cd into
> it, the cdrom driver need to be in the vm config file.
> 
> So, I'm happy with the patch:
> 
> Acked-by: Anthony PERARD <anthony.perard@citrix.com>

Thanks for the patch and the review.

Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>

Ian.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-14 16:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 11:53 [PATCH v2] libxl: remove qemu default devices for upstream qemu Fabio Fantoni
2013-10-08 14:51 ` Fabio Fantoni
2013-10-08 14:54   ` George Dunlap
2013-10-10 16:49     ` Anthony PERARD
2013-10-11  7:53       ` Fabio Fantoni
2013-10-14 16:47       ` Ian Jackson

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).