From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsA69-0003QL-LD for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:24:53 -0400 Received: from [199.232.76.173] (port=58294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsA68-0003QC-NP for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:24:52 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NsA67-0004Z6-HO for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:24:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19651) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NsA67-0004Yw-4r for qemu-devel@nongnu.org; Thu, 18 Mar 2010 03:24:51 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2I7OocP021671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Mar 2010 03:24:50 -0400 Date: Thu, 18 Mar 2010 09:21:25 +0200 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH 0/5] virtio: cleanup layout assumptions List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com, qemu-devel@nongnu.org This patchset helps remove the assumption that vdev must be the 1st member in any virtio device implementation. Other assumptions (made by qdev) can be removed in a similar way separately, this patchset does not do this yet. Juan, this is an alternative to your 'tell virtio about DO_UPCAST' patch, pls take a look. Michael S. Tsirkin (5): virtio: add type safe API virtio-net: remove layout assumptions virtio-serial: remove struct layout assumptions virtio-balloon: remove layout assumptions virtio-blk: remove layout assumption hw/virtio-balloon.c | 9 ++++----- hw/virtio-blk.c | 8 ++++---- hw/virtio-net.c | 10 +++++----- hw/virtio-serial-bus.c | 14 +++++++------- hw/virtio.c | 5 +++-- hw/virtio.h | 9 ++++++++- 6 files changed, 31 insertions(+), 24 deletions(-)