qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [RfC PATCH] qdev: rework device properties.


From: Paul Brook
Subject: Re: [Qemu-devel] Re: [RfC PATCH] qdev: rework device properties.
Date: Tue, 30 Jun 2009 16:11:27 +0100
User-agent: KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; )

On Tuesday 30 June 2009, Juan Quintela wrote:
> Paul Brook <address@hidden> wrote:
> >> What I want to do, to make usb modular I need two things:
> >>
> >> a- a way to defino an alias, that "mouse" is equivalent to "QEMU USB
> >>    Keyboard".  One is the qdev name and the other is the name passed to
> >>    --usbdevice name.
> >
> > I'm not too bothered about this. We're changing the option, so I don't
> > see any particular problem with changing the device names at the same
> > time.
>
> backward compatibility?  Not that I care about this one really.

This is a new option. There's nothing to be backwards compatible with.

> >> b- things like disk are composed of:
> >>    "disk" : "rest of disk arguments"
> >>
> > I think this is confusing host configuration with machine configuration.
> > This has been discussed before.
>
> Yes, but it is the same problem. We are going to need something like:
>
> -usb-hardawre name=bar,... -usbdevice disk:name=bar
>
> or anything like that, the thing that I mean is that disk is going to
> have always a parameter (what disk we mean) and mouse is not going
> (necesarely)

I'm not sure we're discussing the same thing here. "rest of disk arguments" 
should not be part of the USB device. The USB device should just have a link 
to a drive object, which is configured elsewhere (e.g. via a -drive option).

Paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]