]> www.infradead.org Git - qemu-nvme.git/commit
hw/nvme: add param to control auto zone transitioning to zone state closed
authorNiklas Cassel <niklas.cassel@wdc.com>
Fri, 28 May 2021 11:05:07 +0000 (11:05 +0000)
committerKlaus Jensen <k.jensen@samsung.com>
Thu, 17 Jun 2021 09:25:12 +0000 (11:25 +0200)
commitcddff39a1796fa5be119b3a70f708f964da1fd59
tree7cf8528bbcfa20635e4b408388a9daecb0a8216c
parente4403ae45eaab278c25c3ab64db4418ca9fe51e3
hw/nvme: add param to control auto zone transitioning to zone state closed

In the Zoned Namespace Command Set Specification, chapter
2.5.1 Managing resources

"The controller may transition zones in the ZSIO:Implicitly Opened state
to the ZSC:Closed state for resource management purposes."

The word may in this sentence means that automatically transitioning
an implicitly opened zone to closed is completely optional.

Add a new parameter so that the user can control if this automatic
transitioning should be performed or not.

Being able to control this can help with verifying that e.g. a user-space
program behaves properly even without this optional ZNS feature.

The default value is set to true, in order to not change the existing
behavior.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
[k.jensen: moved parameter to controller]
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
hw/nvme/ctrl.c
hw/nvme/nvme.h