Skip to content

hw/nvme: support online resize

Alexander Mikhalitsyn qemu-devel 3 versions – Applied

Status from this message: Applied to nvme.next. Thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 0 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2hw/nvme: initialize ns->subsys for n->namespacehw/nvme/ctrl.c+1 -00 replies
2/2hw/nvme: support online resizehw/nvme/ctrl.c hw/nvme/ns.c hw/nvme/nvme.h+78 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKlaus Jensen
SeriesR-b
1/2
2/2

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

Read the v3 thread

Cover letter [PATCH v3 0/2] hw/nvme: support online resize

From: Alexander Mikhalitsyn <[email protected]>

Dear friends,

This patchset is aimed to support online resize for NVMe emulated device. My approach is simple - I just implement (BlockDevOps *)->resize_cb() callback and ensure that AER notification is fired to all controllers using a namespace that is being resized.

Testing.

I manually validated this with Debian 13 VM (a resized disk was a root disk) and Windows Server 2022 (a resized disk was a secondary one).

Git tree:
https://gitlab.com/mihalicyn/qemu/-/commits/nvme-resize

Changelog for version 3:
- rebased

Changelog for version 2:
- checkpatch fixes
- rebased
- CI is green (https://gitlab.com/mihalicyn/qemu/-/pipelines/2602102750)

Kind regards,
Alex

Alexander Mikhalitsyn (2):
hw/nvme: initialize ns->subsys for n->namespace
hw/nvme: support online resize

 hw/nvme/ctrl.c | 10 ++++++++
 hw/nvme/ns.c   | 68 +++++++++++++++++++++++++++++++++++++++++++++++++-
 hw/nvme/nvme.h |  2 ++
 3 files changed, 79 insertions(+), 1 deletion(-)
Signature · 1 line
2.47.3