Re: [PATCH 4/6] hw/block/nvme: zero out zones on reset

2021-01-17 Thread Dmitry Fomichev
On Mon, 2021-01-11 at 13:32 +0100, Klaus Jensen wrote: > From: Klaus Jensen > > 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

[PATCH 4/6] hw/block/nvme: zero out zones on reset

2021-01-11 Thread Klaus Jensen
From: Klaus Jensen 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