Il 21/11/2013 04:12, Dave Airlie ha scritto: > I'm not sure what that buys me here, I need the virtio-vga to attach > the vga ops the first console that the virtio-gpu registers, it can't > be a separate console, and since virtio-gpu initialises before > virtio-vga I can't tell it to not register the console.
If you make a base class, the ops can be registered in the base class and they just call a method in the base class. The default implementation of the method can be virtio-gpu's, but virtio-vga can override them and make them go to either the virtio-gpu implementation or the VGA implementation. Paolo