qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5
@ 2013-04-24 13:29 Kevin Wolf
  2013-04-24 13:57 ` Eric Blake
  2013-04-24 14:58 ` Stefan Hajnoczi
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Wolf @ 2013-04-24 13:29 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, stefanha

We don't want to commit to the API yet before everything is worked out.
Disable it for the 1.5 release. This commit is meant to be reverted
after the 1.5 release.

The disabling of the driver-specific options is achieved by applying the
old checks while parsing the command line.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
 blockdev.c               | 118 +++++++++++++++++++++++++++++++++++++++++++++--
 tests/qemu-iotests/group |   2 +-
 2 files changed, 115 insertions(+), 5 deletions(-)

diff --git a/blockdev.c b/blockdev.c
index 8a1652b..6e293e9 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -1656,10 +1656,120 @@ QemuOptsList qemu_drive_opts = {
     .name = "drive",
     .head = QTAILQ_HEAD_INITIALIZER(qemu_drive_opts.head),
     .desc = {
-        /*
-         * no elements => accept any params
-         * validation will happen later
-         */
+        {
+            .name = "bus",
+            .type = QEMU_OPT_NUMBER,
+            .help = "bus number",
+        },{
+            .name = "unit",
+            .type = QEMU_OPT_NUMBER,
+            .help = "unit number (i.e. lun for scsi)",
+        },{
+            .name = "if",
+            .type = QEMU_OPT_STRING,
+            .help = "interface (ide, scsi, sd, mtd, floppy, pflash, virtio)",
+        },{
+            .name = "index",
+            .type = QEMU_OPT_NUMBER,
+            .help = "index number",
+        },{
+            .name = "cyls",
+            .type = QEMU_OPT_NUMBER,
+            .help = "number of cylinders (ide disk geometry)",
+        },{
+            .name = "heads",
+            .type = QEMU_OPT_NUMBER,
+            .help = "number of heads (ide disk geometry)",
+        },{
+            .name = "secs",
+            .type = QEMU_OPT_NUMBER,
+            .help = "number of sectors (ide disk geometry)",
+        },{
+            .name = "trans",
+            .type = QEMU_OPT_STRING,
+            .help = "chs translation (auto, lba. none)",
+        },{
+            .name = "media",
+            .type = QEMU_OPT_STRING,
+            .help = "media type (disk, cdrom)",
+        },{
+            .name = "snapshot",
+            .type = QEMU_OPT_BOOL,
+            .help = "enable/disable snapshot mode",
+        },{
+            .name = "file",
+            .type = QEMU_OPT_STRING,
+            .help = "disk image",
+        },{
+            .name = "discard",
+            .type = QEMU_OPT_STRING,
+            .help = "discard operation (ignore/off, unmap/on)",
+        },{
+            .name = "cache",
+            .type = QEMU_OPT_STRING,
+            .help = "host cache usage (none, writeback, writethrough, "
+                    "directsync, unsafe)",
+        },{
+            .name = "aio",
+            .type = QEMU_OPT_STRING,
+            .help = "host AIO implementation (threads, native)",
+        },{
+            .name = "format",
+            .type = QEMU_OPT_STRING,
+            .help = "disk format (raw, qcow2, ...)",
+        },{
+            .name = "serial",
+            .type = QEMU_OPT_STRING,
+            .help = "disk serial number",
+        },{
+            .name = "rerror",
+            .type = QEMU_OPT_STRING,
+            .help = "read error action",
+        },{
+            .name = "werror",
+            .type = QEMU_OPT_STRING,
+            .help = "write error action",
+        },{
+            .name = "addr",
+            .type = QEMU_OPT_STRING,
+            .help = "pci address (virtio only)",
+        },{
+            .name = "readonly",
+            .type = QEMU_OPT_BOOL,
+            .help = "open drive file as read-only",
+        },{
+            .name = "iops",
+            .type = QEMU_OPT_NUMBER,
+            .help = "limit total I/O operations per second",
+        },{
+            .name = "iops_rd",
+            .type = QEMU_OPT_NUMBER,
+            .help = "limit read operations per second",
+        },{
+            .name = "iops_wr",
+            .type = QEMU_OPT_NUMBER,
+            .help = "limit write operations per second",
+        },{
+            .name = "bps",
+            .type = QEMU_OPT_NUMBER,
+            .help = "limit total bytes per second",
+        },{
+            .name = "bps_rd",
+            .type = QEMU_OPT_NUMBER,
+            .help = "limit read bytes per second",
+        },{
+            .name = "bps_wr",
+            .type = QEMU_OPT_NUMBER,
+            .help = "limit write bytes per second",
+        },{
+            .name = "copy-on-read",
+            .type = QEMU_OPT_BOOL,
+            .help = "copy read data from backing file into image file",
+        },{
+            .name = "boot",
+            .type = QEMU_OPT_BOOL,
+            .help = "(deprecated, ignored)",
+        },
         { /* end of list */ }
     },
 };
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
index 68eabda..bf944d9 100644
--- a/tests/qemu-iotests/group
+++ b/tests/qemu-iotests/group
@@ -57,6 +57,6 @@
 048 img auto quick
 049 rw auto
 050 rw auto backing quick
-051 rw auto
+#051 rw auto
 052 rw auto backing
 053 rw auto
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5
  2013-04-24 13:29 [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5 Kevin Wolf
@ 2013-04-24 13:57 ` Eric Blake
  2013-04-24 14:58 ` Stefan Hajnoczi
  1 sibling, 0 replies; 4+ messages in thread
From: Eric Blake @ 2013-04-24 13:57 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: qemu-devel, stefanha

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

On 04/24/2013 07:29 AM, Kevin Wolf wrote:
> We don't want to commit to the API yet before everything is worked out.
> Disable it for the 1.5 release. This commit is meant to be reverted
> after the 1.5 release.

Agreed that command line support without QMP support is awkward, so
crippling the code until we have full support in 1.6 is perfectly fine
for libvirt's perspective.

> 
> The disabling of the driver-specific options is achieved by applying the
> old checks while parsing the command line.
> 
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
>  blockdev.c               | 118 +++++++++++++++++++++++++++++++++++++++++++++--
>  tests/qemu-iotests/group |   2 +-
>  2 files changed, 115 insertions(+), 5 deletions(-)

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5
  2013-04-24 13:29 [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5 Kevin Wolf
  2013-04-24 13:57 ` Eric Blake
@ 2013-04-24 14:58 ` Stefan Hajnoczi
  2013-04-24 15:03   ` Kevin Wolf
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Hajnoczi @ 2013-04-24 14:58 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: qemu-devel, stefanha

On Wed, Apr 24, 2013 at 03:29:29PM +0200, Kevin Wolf wrote:
> We don't want to commit to the API yet before everything is worked out.
> Disable it for the 1.5 release. This commit is meant to be reverted
> after the 1.5 release.
> 
> The disabling of the driver-specific options is achieved by applying the
> old checks while parsing the command line.
> 
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
>  blockdev.c               | 118 +++++++++++++++++++++++++++++++++++++++++++++--
>  tests/qemu-iotests/group |   2 +-
>  2 files changed, 115 insertions(+), 5 deletions(-)

I was wondering why you merged the original patches already, this explains it :).

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5
  2013-04-24 14:58 ` Stefan Hajnoczi
@ 2013-04-24 15:03   ` Kevin Wolf
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Wolf @ 2013-04-24 15:03 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel, stefanha

Am 24.04.2013 um 16:58 hat Stefan Hajnoczi geschrieben:
> On Wed, Apr 24, 2013 at 03:29:29PM +0200, Kevin Wolf wrote:
> > We don't want to commit to the API yet before everything is worked out.
> > Disable it for the 1.5 release. This commit is meant to be reverted
> > after the 1.5 release.
> > 
> > The disabling of the driver-specific options is achieved by applying the
> > old checks while parsing the command line.
> > 
> > Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> > ---
> >  blockdev.c               | 118 +++++++++++++++++++++++++++++++++++++++++++++--
> >  tests/qemu-iotests/group |   2 +-
> >  2 files changed, 115 insertions(+), 5 deletions(-)
> 
> I was wondering why you merged the original patches already, this explains it :).

The original patches came in three or four series, the first of which
was merged about a month ago. So it didn't make sense to hold back just
the last one as the basics were already in.

Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-24 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 13:29 [Qemu-devel] [PATCH] block: Disable driver-specific options for 1.5 Kevin Wolf
2013-04-24 13:57 ` Eric Blake
2013-04-24 14:58 ` Stefan Hajnoczi
2013-04-24 15:03   ` Kevin Wolf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).