qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name
@ 2019-01-28 14:27 Anton Kuchin
  2019-01-28 14:27 ` [Qemu-devel] [PATCH 1/2] block: add functions to search BlockBackend by root BDS name Anton Kuchin
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anton Kuchin @ 2019-01-28 14:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Dr. David Alan Gilbert, qemu-block, Kevin Wolf, Max Reitz,
	Eric Blake, Markus Armbruster, Evgeny Yakovlev, Anton Kuchin

Some HMP and QMP commands are targeting BlockBackend but
for hotplugged devices name of BB is deprecated, instead
name of root BlockDriverState is set. These patches add
functions to search BB by attached root BDS name.

This approach isn't perfect, but I couldn't invent a better
one and I belive it's more convinient than accessing BB
by QOM path.

Anton Kuchin (2):
  block: add functions to search BlockBackend by root BDS name
  block: migrate callers from blk_by_name to blk_lookup

 block/block-backend.c          | 29 +++++++++++++++++++++++++++++
 blockdev-nbd.c                 |  2 +-
 blockdev.c                     |  6 +++---
 hmp.c                          |  2 +-
 include/sysemu/block-backend.h |  7 +++++++
 5 files changed, 41 insertions(+), 5 deletions(-)

-- 
2.19.1

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

end of thread, other threads:[~2019-01-28 18:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-28 14:27 [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name Anton Kuchin
2019-01-28 14:27 ` [Qemu-devel] [PATCH 1/2] block: add functions to search BlockBackend by root BDS name Anton Kuchin
2019-01-28 14:27 ` [Qemu-devel] [PATCH 2/2] block: migrate callers from blk_by_name to blk_lookup Anton Kuchin
2019-01-28 14:47 ` [Qemu-devel] [PATCH 0/2] block: add blk_lookup() for getting device by node_name Kevin Wolf
2019-01-28 16:53   ` Anton Kuchin
2019-01-28 18:02     ` 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).