qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] block/null: Add read-pattern
@ 2025-04-27 22:58 Nir Soffer
  2025-04-27 22:58 ` [PATCH 1/2] block/null: Report DATA if not reading zeroes Nir Soffer
  2025-04-27 22:59 ` [PATCH 2/2] block/null: Add read-pattern option Nir Soffer
  0 siblings, 2 replies; 9+ messages in thread
From: Nir Soffer @ 2025-04-27 22:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: Hanna Reitz, Eric Blake, Markus Armbruster, qemu-block, Fam Zheng,
	Kevin Wolf, Nir Soffer

The null driver is very usefull for testing and benchmarking, but it can not
emulate an image full of zeroes or an image full of non-zero bytes. Such images
are needed for testing computing a blkhash via qemu-nbd or qemu-storage-daemon.

This change adds `read-pattern` option allowing emulution of image full of
zeroes and image for of non-zero bytes.

I used this for testing
https://lists.gnu.org/archive/html/qemu-devel/2025-04/msg05096.html

Nir Soffer (2):
  block/null: Report DATA if not reading zeroes
  block/null: Add read-pattern option

 block/null.c         | 21 ++++++++++++++++++---
 qapi/block-core.json |  9 ++++++++-
 2 files changed, 26 insertions(+), 4 deletions(-)

-- 
2.39.5 (Apple Git-154)



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-04-30 19:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-27 22:58 [PATCH 0/2] block/null: Add read-pattern Nir Soffer
2025-04-27 22:58 ` [PATCH 1/2] block/null: Report DATA if not reading zeroes Nir Soffer
2025-04-28 21:49   ` Eric Blake
2025-04-30 19:46     ` Nir Soffer
2025-04-27 22:59 ` [PATCH 2/2] block/null: Add read-pattern option Nir Soffer
2025-04-28 21:55   ` Eric Blake
2025-04-29  6:00     ` Markus Armbruster
2025-04-30 19:58       ` Nir Soffer
2025-04-30 19:54     ` Nir Soffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).