Skip to content

nbd: Use BlockBackend

Max Reitz qemu-devel 2 versions – Applied

Status from this message: Thanks, applied to my block-next tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 2 repliesApplied
  2. v15 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Added patch 6, which converts qemu-nbd to BlockBackend as far as reasonable [Paolo]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6block: Lift more functions into BlockBackendblock/block-backend.c include/sysemu/block-backend.h+18 -00 replies
2/6block: Add AioContextNotifier functions to BBblock/block-backend.c include/sysemu/block-backend.h+26 -00 replies
3/6block: Add blk_add_close_notifier() for BBblock/block-backend.c include/sysemu/block-backend.h+6 -00 replies
4/6nbd: Change external interface to BlockBackendblockdev-nbd.c include/block/nbd.h nbd.c +1 more+18 -170 replies
5/6nbd: Use BlockBackend internallynbd.c+28 -280 replies
6/6qemu-nbd: Use BlockBackend where reasonableqemu-nbd.c+5 -51 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchPaolo Bonzini
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/6] nbd: Use BlockBackend
Quoted 1 line

From the block layer's perspective, the nbd server is pretty similar to

a guest device. Therefore, it should use BlockBackend to access block devices, just like any other guest device does.

This series consequently makes the nbd server use BlockBackend for referencing block devices.

v2:
- Added patch 6, which converts qemu-nbd to BlockBackend as far as reasonable [Paolo]

git-backport-diff against v1:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/6:[----] [--] 'block: Lift more functions into BlockBackend' 002/6:[----] [--] 'block: Add AioContextNotifier functions to BB' 003/6:[----] [--] 'block: Add blk_add_close_notifier() for BB' 004/6:[----] [--] 'nbd: Change external interface to BlockBackend' 005/6:[----] [--] 'nbd: Use BlockBackend internally' 006/6:[down] 'qemu-nbd: Use BlockBackend where reasonable'

Max Reitz (6):
block: Lift more functions into BlockBackend
block: Add AioContextNotifier functions to BB
block: Add blk_add_close_notifier() for BB
nbd: Change external interface to BlockBackend
nbd: Use BlockBackend internally
qemu-nbd: Use BlockBackend where reasonable

 block/block-backend.c          | 38 +++++++++++++++++++++++++
 blockdev-nbd.c                 | 15 +++++-----
 include/block/nbd.h            |  7 ++---
 include/sysemu/block-backend.h | 12 ++++++++
 nbd.c                          | 63 +++++++++++++++++++++---------------------
 qemu-nbd.c                     | 12 ++++----
 6 files changed, 99 insertions(+), 48 deletions(-)
Signature · 1 line
1.9.3