mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add sparse_qcow_tempfile() which creates a QCOW2 image with one allocated cluster per L2 table, spread across num_l2_tables distinct L2 tables. Reading these clusters in sequence forces L2 cache misses when the count exceeds the cache capacity. Also add the L2_ENTRIES_PER_TABLE constant, 8192 for 64 KiB clusters. To be used by the L2 cache cold miss benchmark. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>