From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjNa1-0004I2-FO for qemu-devel@nongnu.org; Thu, 21 Nov 2013 01:17:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjNZt-0002i6-2q for qemu-devel@nongnu.org; Thu, 21 Nov 2013 01:17:33 -0500 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:52172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjNZs-0002hz-Uc for qemu-devel@nongnu.org; Thu, 21 Nov 2013 01:17:25 -0500 Received: by mail-qa0-f44.google.com with SMTP id i13so2853262qae.10 for ; Wed, 20 Nov 2013 22:17:24 -0800 (PST) Sender: Paolo Bonzini Message-ID: <528DA56D.9000305@redhat.com> Date: Thu, 21 Nov 2013 07:17:17 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1384926761-9962-1-git-send-email-airlied@gmail.com> <1384926761-9962-8-git-send-email-airlied@gmail.com> <1384948961.2005.99.camel@nilsson.home.kraxel.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 7/8] virtio-vga: v1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dave Airlie Cc: Gerd Hoffmann , "qemu-devel@nongnu.org" 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