Received: from eggs.gnu.org ([208.118.235.92]:52398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBWKy-0003Gz-BX for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:13:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBWKx-0008Pa-Aq for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:13:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBWKx-0008PR-2F for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:13:47 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r21KDkCq019763 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Mar 2013 15:13:46 -0500 From: Kevin Wolf Date: Fri, 1 Mar 2013 21:13:34 +0100 Message-Id: <1362168821-25668-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/7] block: Add driver specific options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, armbru@redhat.com, stefanha@redhat.com Instead of constantly keeping complaining that we need this big -blockdev things, let's start attacking individual parts of the project. Here is the first part, allowing block drivers to provide additional -drive options. Any options that isn't processed by the block layer is passed to the driver which can use them. If it doesn't, you get an error message like today. At the end of this series you can specify: -drive file=test.qcow2,lazy_refcounts=on This doesn't include a way to specify options for backing files yet, but I don't think there's anything blocking such extensions on top. Kevin Wolf (7): block: Add options QDict to .bdrv_open() block: Add options QDict to bdrv_open() prototype Add qdict_clone_shallow() block: Add options QDict to bdrv_open_common() qemu-option: Add qemu_opts_absorb_qdict() block: Support driver specific options in drive_init() qcow2: Allow lazy refcounts to be enabled on the command line block.c | 81 ++++++++++++++++++++++++++++++++++++----------- block/blkverify.c | 2 +- block/bochs.c | 2 +- block/cloop.c | 2 +- block/cow.c | 2 +- block/dmg.c | 2 +- block/parallels.c | 2 +- block/qcow.c | 2 +- block/qcow2-cluster.c | 2 +- block/qcow2.c | 43 +++++++++++++++++++++++-- block/qcow2.h | 1 + block/qed.c | 4 +-- block/raw.c | 2 +- block/vdi.c | 2 +- block/vmdk.c | 4 +-- block/vpc.c | 2 +- block/vvfat.c | 2 +- blockdev.c | 53 ++++++++++++++++++++++++++----- hw/xen_disk.c | 2 +- include/block/block.h | 4 +-- include/block/block_int.h | 3 +- include/qapi/qmp/qdict.h | 2 ++ include/qemu/option.h | 1 + qemu-img.c | 6 ++-- qemu-io.c | 2 +- qemu-nbd.c | 2 +- qobject/qdict.c | 22 +++++++++++++ util/qemu-option.c | 34 ++++++++++++++++++++ 28 files changed, 233 insertions(+), 55 deletions(-) -- 1.8.1.2