* [Qemu-devel] qdev status report
@ 2009-09-02 9:10 Gerd Hoffmann
2009-09-02 10:23 ` malc
2009-09-02 15:02 ` Blue Swirl
0 siblings, 2 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2009-09-02 9:10 UTC (permalink / raw)
To: qemu-devel@nongnu.org
Hi,
This is a summary of where we stand in terms of converting drivers to
qdev (with pc being the main focus).
qdev status report
==================
There are basically three different states a driver can be in:
not converted
Obvious, right?
partly converted
The device will appear in the qdev tree. It will be visible in the
'info qtree' monitor command (when properly connected all the way up
to the main system bus). The setup still goes the old, hard-coded
code paths for setting up device parameters though.
fully converted
The device is setup uses qdev properties for all device parameters.
Which means you can create fully functional instances of the device
using the -device command line switch.
Note that not all qemu configuration is in the qdev tree. We have
host side state and guest side state. qdev only handles the guest
side state, i.e. the devices seen by the guest. The host side state
is not covered by qdev. Having a clear split between host and guest
state is required though. Linking host state to a guest device is
done using properties.
host/guest split: drives
------------------------
Works.
Host side: -drive if=none,id=<name>,<parameters>
Guest side: -device virtio-blk-pci,drive=<name>
host/guest split: chardevs
--------------------------
I'm working on it. Plan:
Host side: -chardev pty,id=<name>
Guest side: -device serial,chr=<name>
Note: Creating named+unconnected chardevs is also useful for
slirp forwarding.
host/guest split: nics
----------------------
Not investigated yet in detail.
The current way of having a NICInfo pointer as DeviceState->nd is a
big hack. The info in NICInfo should be attributes instead, and in
fact some already covered by qdev. Big question is how we'll link the
guest nic to the host side. Property with a vlan number? IIRC there
are plans to replace vlans with something else, what is the state
there?
pc driver conversion status
---------------------------
core stuff: pic,apic,cpus,memory -- not converted
isa: floppy -- partly converted
isa: ps/2 -- partly converted
isa: all others: not converted
pci: hostbridge (i440fx) -- partly converted
pci: all vga -- partly converted
-> vgabios is not handled.
pci: nics -- partly converted
-> see above: nic guest/host split.
-> also: bootrom is not handled.
pci sound -- fully converted
virtio-blk -- fully converted
virtio-balloon -- fully converted
virtio-console -- party converted
-> depends on chardev work
scsi -- fully converted
-> not merged yet, patches went to the list a few days ago.
usb uhci -- fully converted
usb ohci -- pci version is fully converted.
usb hid -- fully converted
usb msd -- fully converted
usb others -- partly converted
-> all usb not merged yet, patches went to the list a few days ago.
-> some usb devs depend on chardev work.
ide -- not converted
-> I'm working on it.
watchdogs -- fully converted
serial,parallel -- not converted
-> depends on chardev work
bluetooth -- not converted
cheers,
Gerd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] qdev status report
2009-09-02 9:10 [Qemu-devel] qdev status report Gerd Hoffmann
@ 2009-09-02 10:23 ` malc
2009-09-02 10:57 ` Gerd Hoffmann
2009-09-02 15:02 ` Blue Swirl
1 sibling, 1 reply; 5+ messages in thread
From: malc @ 2009-09-02 10:23 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org
On Wed, 2 Sep 2009, Gerd Hoffmann wrote:
> Hi,
>
> This is a summary of where we stand in terms of converting drivers to
> qdev (with pc being the main focus).
>
>
[..snip..]
>
> isa: floppy -- partly converted
> isa: ps/2 -- partly converted
> isa: all others: not converted
ISA sound cards (sb16,adlib,gus,cs4231a) are converted?
[..snip..]
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] qdev status report
2009-09-02 10:23 ` malc
@ 2009-09-02 10:57 ` Gerd Hoffmann
2009-09-02 11:11 ` malc
0 siblings, 1 reply; 5+ messages in thread
From: Gerd Hoffmann @ 2009-09-02 10:57 UTC (permalink / raw)
To: malc; +Cc: qemu-devel@nongnu.org
>> isa: floppy -- partly converted
>> isa: ps/2 -- partly converted
>> isa: all others: not converted
>
> ISA sound cards (sb16,adlib,gus,cs4231a) are converted?
No. Only the PCI cards (es1370, ac97) are.
cheers,
Gerd
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] qdev status report
2009-09-02 10:57 ` Gerd Hoffmann
@ 2009-09-02 11:11 ` malc
0 siblings, 0 replies; 5+ messages in thread
From: malc @ 2009-09-02 11:11 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org
On Wed, 2 Sep 2009, Gerd Hoffmann wrote:
> > > isa: floppy -- partly converted
> > > isa: ps/2 -- partly converted
> > > isa: all others: not converted
> >
> > ISA sound cards (sb16,adlib,gus,cs4231a) are converted?
>
> No. Only the PCI cards (es1370, ac97) are.
Uh.. I missed the 'not' part in 'all others: not converted'.
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] qdev status report
2009-09-02 9:10 [Qemu-devel] qdev status report Gerd Hoffmann
2009-09-02 10:23 ` malc
@ 2009-09-02 15:02 ` Blue Swirl
1 sibling, 0 replies; 5+ messages in thread
From: Blue Swirl @ 2009-09-02 15:02 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org
On Wed, Sep 2, 2009 at 12:10 PM, Gerd Hoffmann<kraxel@redhat.com> wrote:
> Hi,
>
> This is a summary of where we stand in terms of converting drivers to
> qdev (with pc being the main focus).
>
>
> qdev status report
> ==================
>
> There are basically three different states a driver can be in:
>
> not converted
> Obvious, right?
>
> partly converted
> The device will appear in the qdev tree. It will be visible in the
> 'info qtree' monitor command (when properly connected all the way up
> to the main system bus). The setup still goes the old, hard-coded
> code paths for setting up device parameters though.
>
> fully converted
> The device is setup uses qdev properties for all device parameters.
> Which means you can create fully functional instances of the device
> using the -device command line switch.
>
>
> Note that not all qemu configuration is in the qdev tree. We have
> host side state and guest side state. qdev only handles the guest
> side state, i.e. the devices seen by the guest. The host side state
> is not covered by qdev. Having a clear split between host and guest
> state is required though. Linking host state to a guest device is
> done using properties.
>
>
> host/guest split: drives
> ------------------------
>
> Works.
> Host side: -drive if=none,id=<name>,<parameters>
> Guest side: -device virtio-blk-pci,drive=<name>
>
>
> host/guest split: chardevs
> --------------------------
>
> I'm working on it. Plan:
> Host side: -chardev pty,id=<name>
> Guest side: -device serial,chr=<name>
>
> Note: Creating named+unconnected chardevs is also useful for
> slirp forwarding.
>
>
> host/guest split: nics
> ----------------------
>
> Not investigated yet in detail.
>
> The current way of having a NICInfo pointer as DeviceState->nd is a
> big hack. The info in NICInfo should be attributes instead, and in
> fact some already covered by qdev. Big question is how we'll link the
> guest nic to the host side. Property with a vlan number? IIRC there
> are plans to replace vlans with something else, what is the state
> there?
>
>
> pc driver conversion status
> ---------------------------
>
> core stuff: pic,apic,cpus,memory -- not converted
>
> isa: floppy -- partly converted
> isa: ps/2 -- partly converted
> isa: all others: not converted
>
> pci: hostbridge (i440fx) -- partly converted
> pci: all vga -- partly converted
> -> vgabios is not handled.
>
> pci: nics -- partly converted
> -> see above: nic guest/host split.
> -> also: bootrom is not handled.
>
> pci sound -- fully converted
> virtio-blk -- fully converted
> virtio-balloon -- fully converted
>
> virtio-console -- party converted
> -> depends on chardev work
>
> scsi -- fully converted
> -> not merged yet, patches went to the list a few days ago.
>
> usb uhci -- fully converted
> usb ohci -- pci version is fully converted.
> usb hid -- fully converted
> usb msd -- fully converted
> usb others -- partly converted
> -> all usb not merged yet, patches went to the list a few days ago.
> -> some usb devs depend on chardev work.
>
> ide -- not converted
> -> I'm working on it.
>
> watchdogs -- fully converted
>
> serial,parallel -- not converted
> -> depends on chardev work
>
> bluetooth -- not converted
Sparc32 driver conversion status
---------------------------
all devices: fully converted
Sparc64 driver conversion status
---------------------------
native devices: fully converted
pc devices: see above
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-09-02 15:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-02 9:10 [Qemu-devel] qdev status report Gerd Hoffmann
2009-09-02 10:23 ` malc
2009-09-02 10:57 ` Gerd Hoffmann
2009-09-02 11:11 ` malc
2009-09-02 15:02 ` Blue Swirl
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).