qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v5 00/11] block: Accept node-name in all node level QMP commands
@ 2016-08-03 11:21 Kevin Wolf
  2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 01/11] block: Accept node-name for block-stream Kevin Wolf
                   ` (11 more replies)
  0 siblings, 12 replies; 28+ messages in thread
From: Kevin Wolf @ 2016-08-03 11:21 UTC (permalink / raw)
  To: qemu-block; +Cc: kwolf, mreitz, eblake, berto, qemu-devel

As stated in the RFC I sent two weeks ago:

   * Node level commands: We need to complete the conversion that makes
     commands accept node names instead of BlockBackend names. In some places
     we intentionally allow only BlockBackends because we don't know if the
     command works in other places than the root. This is okay, but we can
     accept node names anyway. We just need to check that the node is a root
     node as expected.

This part of the RFC is implemented by this series.

v5:
- Sent separate patch "block: Accept any target node for transactional
  blockdev-backup" and rebased this series on it [Max]
- Check bdrv_is_inserted() in qmp_get_root_bs() [Max]
- Resolved merge conflicts with QAPI boxed type conversion

v4:
- Changed the way to decide whether a root-node-only QMP command is allowed on
  a specific node. Instead of checking that it has a BB on top, the new check
  is that there is no non-BB parent on top. This allows using unattached nodes.
- Fixed incorrect documentation change for block-commit [Eric]

v3:
- Now with updated documentation

Kevin Wolf (11):
  block: Accept node-name for block-stream
  block: Accept node-name for block-commit
  block: Accept node-name for blockdev-backup
  block: Accept node-name for blockdev-mirror
  block: Accept node-name for blockdev-snapshot-delete-internal-sync
  block: Accept node-name for blockdev-snapshot-internal-sync
  block: Accept node-name for change-backing-file
  block: Accept node-name for drive-backup
  block: Accept node-name for drive-mirror
  nbd-server: Use a separate BlockBackend
  nbd-server: Allow node name for nbd-server-add

 block.c                        |   2 +
 block/block-backend.c          |  16 ++++
 blockdev-nbd.c                 |  21 ++---
 blockdev.c                     | 197 ++++++++++++++---------------------------
 include/block/nbd.h            |   3 +-
 include/sysemu/block-backend.h |   1 +
 nbd/server.c                   |  25 ++++--
 qapi/block-core.json           |  24 ++---
 qapi/block.json                |  14 +--
 qemu-nbd.c                     |   4 +-
 qmp-commands.hx                |  25 +++---
 tests/qemu-iotests/030         |   2 +-
 tests/qemu-iotests/041         |   8 +-
 tests/qemu-iotests/055         |   7 +-
 tests/qemu-iotests/057         |   4 +-
 15 files changed, 161 insertions(+), 192 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2016-08-08 13:14 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-03 11:21 [Qemu-devel] [PATCH v5 00/11] block: Accept node-name in all node level QMP commands Kevin Wolf
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 01/11] block: Accept node-name for block-stream Kevin Wolf
2016-08-03 12:25   ` Alberto Garcia
2016-08-03 12:53   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 02/11] block: Accept node-name for block-commit Kevin Wolf
2016-08-03 12:32   ` Alberto Garcia
2016-08-03 12:54   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 03/11] block: Accept node-name for blockdev-backup Kevin Wolf
2016-08-03 12:58   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 04/11] block: Accept node-name for blockdev-mirror Kevin Wolf
2016-08-03 14:59   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 05/11] block: Accept node-name for blockdev-snapshot-delete-internal-sync Kevin Wolf
2016-08-03 15:06   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 06/11] block: Accept node-name for blockdev-snapshot-internal-sync Kevin Wolf
2016-08-03 15:07   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 07/11] block: Accept node-name for change-backing-file Kevin Wolf
2016-08-03 15:09   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 08/11] block: Accept node-name for drive-backup Kevin Wolf
2016-08-03 15:14   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 09/11] block: Accept node-name for drive-mirror Kevin Wolf
2016-08-03 15:32   ` Max Reitz
2016-08-03 15:34   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 10/11] nbd-server: Use a separate BlockBackend Kevin Wolf
2016-08-03 16:00   ` Max Reitz
2016-08-03 11:21 ` [Qemu-devel] [PATCH v5 11/11] nbd-server: Allow node name for nbd-server-add Kevin Wolf
2016-08-03 16:12   ` Max Reitz
2016-08-03 16:36   ` [Qemu-devel] [Qemu-block] " Max Reitz
2016-08-08 13:14 ` [Qemu-devel] [PATCH v5 00/11] block: Accept node-name in all node level QMP commands 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).