qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option.
  2009-12-07 12:42 ` [Qemu-devel] [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option Gerd Hoffmann
@ 2009-12-08 12:46   ` Paolo Bonzini
  2009-12-08 15:58     ` Gerd Hoffmann
  0 siblings, 1 reply; 6+ messages in thread
From: Paolo Bonzini @ 2009-12-08 12:46 UTC (permalink / raw)
  To: qemu-devel

On 12/07/2009 01:42 PM, Gerd Hoffmann wrote:
> Add global command line option to disable default devices.

Should -readconfig imply this?

Paolo

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

* Re: [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option.
  2009-12-08 12:46   ` [Qemu-devel] " Paolo Bonzini
@ 2009-12-08 15:58     ` Gerd Hoffmann
  0 siblings, 0 replies; 6+ messages in thread
From: Gerd Hoffmann @ 2009-12-08 15:58 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

On 12/08/09 13:46, Paolo Bonzini wrote:
> On 12/07/2009 01:42 PM, Gerd Hoffmann wrote:
>> Add global command line option to disable default devices.
>
> Should -readconfig imply this?

Hmm, not sure.  Why do you think this would be useful?

cheers,
   Gerd

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

* Re: [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option.
       [not found] <1236361906.1375741260288537008.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
@ 2009-12-08 16:11 ` Paolo Bonzini
  2009-12-08 16:32   ` Daniel P. Berrange
  2009-12-08 16:34   ` Gerd Hoffmann
  0 siblings, 2 replies; 6+ messages in thread
From: Paolo Bonzini @ 2009-12-08 16:11 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

> > > Add global command line option to disable default devices.
> >
> > Should -readconfig imply this?
> 
> Hmm, not sure.  Why do you think this would be useful?

Here is my thinking: if you used -writeconfig, your machine description
is (at least in theory) entirely included in the config file including
(again in theory) the default devices.  So, if the machine description
has no parallel port, QEMU should not create a default one when you load
it with -readconfig.

It's not really about usefulness in other words; it's more whether you
think it fits in -{read,write}config's design or not.

Paolo

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

* Re: [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option.
  2009-12-08 16:11 ` [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option Paolo Bonzini
@ 2009-12-08 16:32   ` Daniel P. Berrange
  2009-12-08 16:34   ` Gerd Hoffmann
  1 sibling, 0 replies; 6+ messages in thread
From: Daniel P. Berrange @ 2009-12-08 16:32 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Gerd Hoffmann, qemu-devel

On Tue, Dec 08, 2009 at 11:11:29AM -0500, Paolo Bonzini wrote:
> > > > Add global command line option to disable default devices.
> > >
> > > Should -readconfig imply this?
> > 
> > Hmm, not sure.  Why do you think this would be useful?
> 
> Here is my thinking: if you used -writeconfig, your machine description
> is (at least in theory) entirely included in the config file including
> (again in theory) the default devices.  So, if the machine description
> has no parallel port, QEMU should not create a default one when you load
> it with -readconfig.

Shouldn't  -writeconfig just  add '-nodefaults' to the config it
generates ?

That way if someone instead creates a configfile by hand, copying in
their existing QEMU args they still get default devices which matches 
behaviour of their existing CLI args.

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

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

* Re: [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option.
  2009-12-08 16:11 ` [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option Paolo Bonzini
  2009-12-08 16:32   ` Daniel P. Berrange
@ 2009-12-08 16:34   ` Gerd Hoffmann
  2009-12-08 16:39     ` Paolo Bonzini
  1 sibling, 1 reply; 6+ messages in thread
From: Gerd Hoffmann @ 2009-12-08 16:34 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: qemu-devel

On 12/08/09 17:11, Paolo Bonzini wrote:
>>>> Add global command line option to disable default devices.
>>>
>>> Should -readconfig imply this?
>>
>> Hmm, not sure.  Why do you think this would be useful?
>
> Here is my thinking: if you used -writeconfig, your machine description
> is (at least in theory) entirely included in the config file including
> (again in theory) the default devices.

The default devices are *not* included by in the file created by 
-writeconfig.  So I tend to thing -readconfig should not automagically 
turn on -nodefaults to avoid unpleasent surprises for users.

Devices created via -readconfig are treated like devices created via 
[device] sections in the config file.  So it doesn't matter whenever you 
configure your isa-serial device via command line or config file, in any 
case it will make qemu not create the default serial port.

cheers,
   Gerd

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

* Re: [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option.
  2009-12-08 16:34   ` Gerd Hoffmann
@ 2009-12-08 16:39     ` Paolo Bonzini
  0 siblings, 0 replies; 6+ messages in thread
From: Paolo Bonzini @ 2009-12-08 16:39 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

> > Here is my thinking: if you used -writeconfig, your machine description
> > is (at least in theory) entirely included in the config file including
> > (again in theory) the default devices.
> 
> The default devices are *not* included by in the file created by 
> -writeconfig.

Yes, that's why I wrote "at least in theory".  It doesn't now but that
would be a bug, because it makes -nodefaults another legacy option that
has to be remembered and passed again upon -readconfig.

> Devices created via -readconfig are treated like devices created via 
> [device] sections in the config file.  So it doesn't matter whenever you 
> configure your isa-serial device via command line or config file, in any 
> case it will make qemu not create the default serial port.

I was thinking about the case when you don't want at all a particular
default device.

Paolo

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

end of thread, other threads:[~2009-12-08 16:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1236361906.1375741260288537008.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com>
2009-12-08 16:11 ` [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option Paolo Bonzini
2009-12-08 16:32   ` Daniel P. Berrange
2009-12-08 16:34   ` Gerd Hoffmann
2009-12-08 16:39     ` Paolo Bonzini
2009-12-07 12:42 [Qemu-devel] [FOR 0.12 PATCH v3 00/21] default devices: qdev integration Gerd Hoffmann
2009-12-07 12:42 ` [Qemu-devel] [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option Gerd Hoffmann
2009-12-08 12:46   ` [Qemu-devel] " Paolo Bonzini
2009-12-08 15:58     ` Gerd Hoffmann

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