Received: from eggs.gnu.org ([2001:4830:134:3::10]:33306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxdfj-0001EF-RJ for qemu-devel@nongnu.org; Thu, 19 Jun 2014 10:50:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxdfa-0006A3-Lf for qemu-devel@nongnu.org; Thu, 19 Jun 2014 10:50:39 -0400 Received: from averel.grnet-hq.admin.grnet.gr ([195.251.29.3]:17932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxdfa-00065T-FC for qemu-devel@nongnu.org; Thu, 19 Jun 2014 10:50:30 -0400 From: Chrysostomos Nanakos Date: Thu, 19 Jun 2014 17:48:45 +0300 Message-Id: <1403189328-18457-1-git-send-email-cnanakos@grnet.gr> Subject: [Qemu-devel] [PATCH v4 0/3] Support Archipelago as a QEMU block backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, Chrysostomos Nanakos , stefanha@redhat.com v4: - Move Archipelago QMP support from qapi-schema.json file to qapi/block-core.json. Fixe various typographic errors, thanks to Kevin Wolf and Eric Blake. - Use new .create_opts format, define new QemuOptsList structure and refactor qemu_archipelago_create function. v3: - Break down initial patch from one to three. First patch implements Archipelago QEMU block backend with read/write functionality. Second patch implements .bdrv_create() and adds support for creating Archipelago images. Third patch adds QMP support. - Remove global variable g_xseg_init, make xseg_initialize(), xseg_join() and xseg_leave() reentrant and thread-safe. - Introduce new enum BlockdevOptionsArchipelago for the QMP support. v2: - Implement .bdrv_parse_filename() function to convert the shortuct version with a single string to the individual options. - Remove global variables and move relevant fields to ArchipelagoAIOCB struct. - Remove ArchipelagoConf struct and use the relevant fields as individual arguments. - Remove ArchipelagoCB struct and use ArchipelagoAIOCB instead. - Remove ArchipelagoThread struct and move relevant fields to ArchipelagoAIOCB instead. Now an I/O thread is spawned for per-device to handle all async I/O requests. - Remove double data copy, use qemu_iovec_from_buf() and copy data directly to the destination buffer. - Remove archipelago_aio_bh_cb() function, a full request is completed in qemu_archipelago_complete_aio() instead. - Resolve proposed changes from Kevin Wolf and miscellaneous style issues. Chrysostomos Nanakos (3): block: Support Archipelago as a QEMU block backend block/archipelago: Add support for creating images QMP: Add support for Archipelago MAINTAINERS | 6 + block/Makefile.objs | 2 + block/archipelago.c | 1182 ++++++++++++++++++++++++++++++++++++++++++++++++++ configure | 40 ++ qapi/block-core.json | 33 +- 5 files changed, 1260 insertions(+), 3 deletions(-) create mode 100644 block/archipelago.c -- 1.7.10.4