From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPY3a-00077O-Ec for qemu-devel@nongnu.org; Tue, 09 Apr 2013 08:53:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPY3Z-00053R-2d for qemu-devel@nongnu.org; Tue, 09 Apr 2013 08:53:50 -0400 Received: from greensocs.com ([87.106.252.221]:42063 helo=s15328186.onlinehome-server.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPY3Y-00053H-SK for qemu-devel@nongnu.org; Tue, 09 Apr 2013 08:53:48 -0400 From: fred.konrad@greensocs.com Date: Tue, 9 Apr 2013 14:53:29 +0200 Message-Id: <1365512016-21944-1-git-send-email-fred.konrad@greensocs.com> Subject: [Qemu-devel] [PATCH v6 0/7] virtio-serial refactoring. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: aliguori@us.ibm.com, qemu-devel@nongnu.org, amit.shah@redhat.com Cc: cornelia.huck@de.ibm.com, peter.maydell@linaro.org, mark.burton@greensocs.com, fred.konrad@greensocs.com From: KONRAD Frederic This is the next part of virtio-refactoring. Basically it creates virtio-serial device which extends virtio-device. Then a virtio-serial can be connected on a virtio-bus. virtio-serial-pci, virtio-serial-s390 and virtio-serial-ccw are created too, they extend respectively virtio-pci, virtio-s390-device, virtio-ccw-device and have a virtio-serial. Tested-by: Cornelia Huck Reviewed-by: Cornelia Huck Reviewed-by: Peter Maydell You can checkout my branch here: git://project.greensocs.com/qemu-virtio.git virtio-serial-v6 Note that it is nearly the same series as virtio-blk and virtio-scsi refactoring. I made basic tests (with linux guests) on: * qemu-system-i386 Amit are you ok with that? Changes v5 -> v6: * Renamed device "virtio-serial" => "virtio-serial-device". Changes v4 -> v5: * Fixed rebase issue with nvector and the clarifying comment. * Changed property macro for s390 and ccw device too. Changes v3 -> v4: * Removed serial configuration field ommited in VirtioCCWDevice structure. Changes v2 -> v3: * Added CCW device. * Rebased. Thanks, Fred KONRAD Frederic (7): virtio-serial: add the virtio-serial device. virtio-serial-pci: switch to the new API. virtio-serial-s390: switch to the new API. virtio-serial-ccw: switch to the new API. virtio-serial: cleanup: init and exit functions. virtio-serial: cleanup: use QOM casts. virtio-serial: cleanup: remove qdev field. hw/char/virtio-serial-bus.c | 157 ++++++++++++++++++++++---------------- hw/s390x/s390-virtio-bus.c | 31 +++++--- hw/s390x/s390-virtio-bus.h | 12 ++- hw/s390x/virtio-ccw.c | 29 +++---- hw/s390x/virtio-ccw.h | 12 ++- hw/virtio/virtio-pci.c | 131 ++++++++++++++++--------------- hw/virtio/virtio-pci.h | 14 +++- include/hw/virtio/virtio-serial.h | 13 +++- 8 files changed, 239 insertions(+), 160 deletions(-) -- 1.8.1.4