From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYPg7-00032j-2S for qemu-devel@nongnu.org; Tue, 13 Nov 2012 18:14:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYPg4-0004yX-0Q for qemu-devel@nongnu.org; Tue, 13 Nov 2012 18:13:59 -0500 Received: from cantor2.suse.de ([195.135.220.15]:48960 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYPg3-0004y0-QE for qemu-devel@nongnu.org; Tue, 13 Nov 2012 18:13:55 -0500 Message-ID: <50A2D0F1.5050209@suse.de> Date: Wed, 14 Nov 2012 00:00:01 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <50A258ED.7080807@greensocs.com> <20121113163242.613b3d07@BR9GNB5Z> In-Reply-To: <20121113163242.613b3d07@BR9GNB5Z> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Virtio refactoring. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck Cc: Peter Maydell , aliguori@us.ibm.com, Evgeny Voevodin , Mark Burton , qemu-devel@nongnu.org, agraf@suse.de, =?UTF-8?B?S09OUkFEIEZyw6lkw6lyaWM=?= Am 13.11.2012 16:32, schrieb Cornelia Huck: > On Tue, 13 Nov 2012 15:27:57 +0100 > KONRAD Fr=C3=A9d=C3=A9ric wrote: >> * Introduce a new VirtioBus ( same way as scsi-bus.c ), with=20 >> VirtIODevice >> interface : >> -> callback to completely abstract the VirtioDevice from=20 >> VirtioPCI. >> -> for the queue, load/save the queue/config, features, ...,= =20 >> other ? >> * Add a VirtioBus to the VirtioPCIProxy. ( virtio-pci.c ) : >> -> moving all to the newer callback. >> * For each of the virtio-device : ( virtio-x.c ) >> -> making a separate class for virtio-x which is a VirtioDev= ice. >> -> making a virtio-x-pci which has a virtio-x. >> * Create virtio-mmio ( virtio-mmio.c ). >> >> Is it the right approach ? Do I miss something ? >=20 > What of the alias handling? Can this be killed once everything has been > converted? AFAIU yes, but we may need to add new aliases for the long versions (virtio-blk-pci) instead. ;) Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg