qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] block: block driver callbacks fixes
@ 2017-06-29 18:43 Manos Pitsidianakis
  2017-06-29 18:43 ` [Qemu-devel] [PATCH v2 1/3] block: pass bdrv_* methods to bs->file by default Manos Pitsidianakis
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Manos Pitsidianakis @ 2017-06-29 18:43 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-block, Stefan Hajnoczi, Alberto Garcia, Kevin Wolf,
	Max Reitz

This series makes implementing some of the bdrv_* callbacks easier for block
drivers by passing requests to bs->file if bs->drv doesn't implement it instead
of failing, and adding default bdrv_co_get_block_status() implementations.

This is based against Kevin Wolf's block branch, commit
0dd2ec6bc46bd93ea0b9df602962883417f31400

v2:
  do not pass to bs->file if bs->drv is NULL
  move bs->file check outside of bdrv_inc_in_flight() area in bdrv_co_ioctl()
  new patch: remove duplicate code from block/raw-format.c

Manos Pitsidianakis (3):
  block: pass bdrv_* methods to bs->file by default
  block: use defaults of bdrv_* callbacks in raw
  block: add default implementations for bdrv_co_get_block_status()

 block.c                   | 27 +++++++++++++++++++++++++--
 block/blkdebug.c          | 12 +-----------
 block/commit.c            | 12 +-----------
 block/io.c                | 29 +++++++++++++++++++++++++++++
 block/mirror.c            | 12 +-----------
 block/raw-format.c        | 32 +-------------------------------
 include/block/block_int.h | 16 ++++++++++++++++
 7 files changed, 74 insertions(+), 66 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2017-07-06  9:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-29 18:43 [Qemu-devel] [PATCH v2 0/3] block: block driver callbacks fixes Manos Pitsidianakis
2017-06-29 18:43 ` [Qemu-devel] [PATCH v2 1/3] block: pass bdrv_* methods to bs->file by default Manos Pitsidianakis
2017-07-03 15:56   ` Eric Blake
2017-07-03 18:40     ` Eric Blake
2017-07-06  8:40       ` [Qemu-devel] [Qemu-block] " Stefan Hajnoczi
2017-07-06  9:09   ` Stefan Hajnoczi
2017-06-29 18:43 ` [Qemu-devel] [PATCH v2 2/3] block: use defaults of bdrv_* callbacks in raw Manos Pitsidianakis
2017-07-03 16:05   ` Eric Blake
2017-07-06  9:40   ` Stefan Hajnoczi
2017-06-29 18:43 ` [Qemu-devel] [PATCH v2 3/3] block: add default implementations for bdrv_co_get_block_status() Manos Pitsidianakis
2017-07-03 16:12   ` Eric Blake
2017-07-03 17:51     ` Eric Blake
2017-07-03 18:24       ` Manos Pitsidianakis
2017-07-03 18:31         ` Eric Blake
2017-07-03 22:22           ` Eric Blake

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).