diff options
author | Klaus Jensen | 2020-12-09 23:43:15 +0100 |
---|---|---|
committer | Klaus Jensen | 2021-02-08 21:15:53 +0100 |
commit | 5f5dc4c6a9426d6a1fe69ea1b539721f5eab7176 (patch) | |
tree | 407e512fbbe8525770121fa42c9e3d4e155e8a7e /hw/block/nvme.h | |
parent | hw/block/nvme: enum style fix (diff) | |
download | qemu-5f5dc4c6a9426d6a1fe69ea1b539721f5eab7176.tar.gz qemu-5f5dc4c6a9426d6a1fe69ea1b539721f5eab7176.tar.xz qemu-5f5dc4c6a9426d6a1fe69ea1b539721f5eab7176.zip |
hw/block/nvme: zero out zones on reset
The zoned command set specification states that "All logical blocks in a
zone *shall* be marked as deallocated when [the zone is reset]". Since
the device guarantees 0x00 to be read from deallocated blocks we have to
issue a pwrite_zeroes since we cannot be sure that a discard will do
anything. But typically, this will be achieved with an efficient
unmap/discard operation.
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Tested-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Diffstat (limited to 'hw/block/nvme.h')
0 files changed, 0 insertions, 0 deletions