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

Alexander Mikhalitsyn posted 2 patches 3 days, 10 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260604103143.462071-1-alexander@mihalicyn.com
Maintainers: Keith Busch <kbusch@kernel.org>, Klaus Jensen <its@irrelevant.dk>, Jesper Devantier <foss@defmacro.it>
hw/nvme/ctrl.c | 10 ++++++++
hw/nvme/ns.c   | 65 +++++++++++++++++++++++++++++++++++++++++++++++++-
hw/nvme/nvme.h |  2 ++
3 files changed, 76 insertions(+), 1 deletion(-)
[PATCH 0/2] hw/nvme: support online resize
Posted by Alexander Mikhalitsyn 3 days, 10 hours ago
From: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@futurfusion.io>

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 and Windows Server 2022 (resized
disk was a secondary one in both cases).

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

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   | 65 +++++++++++++++++++++++++++++++++++++++++++++++++-
 hw/nvme/nvme.h |  2 ++
 3 files changed, 76 insertions(+), 1 deletion(-)

-- 
2.47.3