On Fri, Apr 10, 2026 at 04:33:47PM +0200, Matthieu Rolla wrote: > Hello @Stefan Hajnoczi , > > > Thanks for the review! v3 sent. > > > Wording: Fixed in v3, no more "physical PCIe slot" claim. Now describes it > as NVMe namespace-level hotplug. > > > I/O drain: Moved nvme_ns_drain() to the start of the unplug handler so > in-flight I/O completes before detach. Tested under warp load (16 > concurrent 1MiB uploads via MinIO/DirectPV) device_del returns in ~400ms > with clean removal, no use-after-free. > > > Symmetry: moved subsys->namespaces[nsid] = NULL into nvme_ns_unrealize() > so the namespace lifecycle is complete (mirrors what nvme_ns_realize() sets > up). > > > I don't have a working Windows test setup, I'd really appreciate if you > could test it next week as you offered. > > Thanks again for your time Awesome, thanks! I will give Windows Server a spin next week. I'm not an expert in hw/nvme/ but the patch looks good to me: Reviewed-by: Stefan Hajnoczi