qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Can we improve virtio data structures with QOM?


From: Markus Armbruster
Subject: Re: [Qemu-devel] Can we improve virtio data structures with QOM?
Date: Thu, 31 May 2012 18:48:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Anthony Liguori <address@hidden> writes:

[On how to model virtio devices in QOM:]
> Basically, it should look like:
>
> VirtioPCIDevice is-a PCIDevice
>
> VirtioPCIDevice has-a link<VirtioDevice>

Could you explain why this is link<> and not child<>?

> VirtioDevice is-a DeviceState
>
> VirtioBlk is-a VirtioDevice
> VirtioNet is-a VirtioDevice
> ...
>
> VirtioPCIBlk is-a VirtioPCIDevice
> VirtioPCIBlk has-a child<VirtioBlk>
>
> This gives us backwards compat while also providing a cleaner
> model. VirtioPCIBlk et al would be deprecated eventually (but not any
> time soon).



reply via email to

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