On Mi, 2013-11-20 at 15:52 +1000, Dave Airlie wrote:
> From: Dave Airlie <airl...@redhat.com>
> 
> This is a virtio-vga device built on top of the virtio-gpu device.

Ah, I see what you use the wrapping for.  Hmm.  I think you should use a
common base class instead, i.e. something like virtio-gpu-base which
holds all the common stuff.  Both virtio-gpu and virtio-vga can use that
as TypeInfo->parent then.  This way virtio-vga doesn't have to muck with
virtio-gpu internals.  virtio-gpu-base can be tagged as abstract class
(using .abstract = true) so it will not be instantiated directly.

cheers,
  Gerd



Reply via email to