Received: from eggs.gnu.org ([208.118.235.92]:54635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHdR9-0007N2-4u for qemu-devel@nongnu.org; Mon, 18 Mar 2013 13:01:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHdR1-0003g4-Ho for qemu-devel@nongnu.org; Mon, 18 Mar 2013 13:01:27 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:42773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHdR1-0003dp-AR for qemu-devel@nongnu.org; Mon, 18 Mar 2013 13:01:19 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 18 Mar 2013 16:58:50 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2620A17D8019 for ; Mon, 18 Mar 2013 17:01:49 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r2IH0wJd50135178 for ; Mon, 18 Mar 2013 17:00:58 GMT Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r2IH16wB024807 for ; Mon, 18 Mar 2013 11:01:07 -0600 Date: Mon, 18 Mar 2013 18:01:03 +0100 From: Cornelia Huck Message-ID: <20130318180103.304ab8aa@gondolin> In-Reply-To: <1363624648-16906-1-git-send-email-fred.konrad@greensocs.com> References: <1363624648-16906-1-git-send-email-fred.konrad@greensocs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v10 00/11] virtio-blk refactoring. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fred.konrad@greensocs.com Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, mst@redhat.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, afaerber@suse.de On Mon, 18 Mar 2013 17:37:17 +0100 fred.konrad@greensocs.com wrote: > From: KONRAD Frederic > > This is the next part of virtio-refactoring. > > Basically it creates virtio-blk device which extends virtio-device. > Then a virtio-blk can be connected on a virtio-bus. > virtio-blk-pci, virtio-blk-s390x, virtio-blk-ccw are created too, they extend > respectively virtio-pci, virtio-s390-device, virtio-ccw-device and have a > virtio-blk. > > You can checkout my branch here: > > git://project.greensocs.com/qemu-virtio.git virtio-blk-v10 Comes up fine with virtio-ccw. device_add/device_del seems to work as well. > > I made basic tests (with linux guests) on: > * qemu-system-i386 > * qemu-system-s390x > > Cornelia made virtio-ccw test, and Stefan tried dataplane. > > Changes v9 -> v10: > * Fix the hot unplug issue spotted by Anthony. > Changes v8 -> v9: > * Fix the hot unplug issue spotted by Cornelia. > Changes v7 -> v8: > * Fix the allow_hotplug assertion spotted by Anthony. > * Attached the make virtio device's structures public (v4). > Changes v6 -> v7: > * Fix the DEFINE_VIRTIO_BLK_PROPERTIES macro issue spotted by Peter. > > Thanks, > > Fred > > KONRAD Frederic (11): > virtio: make virtio device's structures public. > virtio-x-bus: fix allow_hotplug assertion. > virtio-pci: fix hot unplug. > virtio-blk: don't use pointer for configuration. > virtio-blk: add the virtio-blk device. > virtio-blk-pci: switch to new API. > virtio-blk-s390: switch to the new API. > virtio-blk-ccw switch to new API. > virtio-blk: cleanup: init and exit functions. > virtio-blk: cleanup: QOM cast > virtio-blk: cleanup: remove qdev field. > > hw/s390x/s390-virtio-bus.c | 32 ++++++---- > hw/s390x/s390-virtio-bus.h | 13 +++- > hw/s390x/virtio-ccw.c | 35 ++++++----- > hw/s390x/virtio-ccw.h | 14 ++++- > hw/virtio-balloon.c | 15 ----- > hw/virtio-balloon.h | 14 +++++ > hw/virtio-blk.c | 151 +++++++++++++++++++++++++-------------------- > hw/virtio-blk.h | 39 ++++++++++++ > hw/virtio-net.c | 50 --------------- > hw/virtio-net.h | 50 +++++++++++++++ > hw/virtio-pci.c | 142 ++++++++++++++++++------------------------ > hw/virtio-pci.h | 15 ++++- > hw/virtio-rng.c | 19 ------ > hw/virtio-rng.h | 19 ++++++ > hw/virtio-scsi.c | 15 ----- > hw/virtio-scsi.h | 16 +++++ > hw/virtio-serial-bus.c | 41 ------------ > hw/virtio-serial.h | 41 ++++++++++++ > hw/virtio.h | 2 - > 19 files changed, 401 insertions(+), 322 deletions(-) >