qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] block/stream:add flush l2_table_cache, ensure data integrity
@ 2023-07-24  7:30 Evanzhang
  2023-07-24  7:30 ` Evanzhang
  0 siblings, 1 reply; 6+ messages in thread
From: Evanzhang @ 2023-07-24  7:30 UTC (permalink / raw)
  To: qemu-devel, qemu-block; +Cc: jsnow, vsementsov, kwolf, hreitz, Evanzhang

Verification steps:
1.qemu-img  create -f  qcow2 data1.img 10M
  qemu-img  create -f  qcow2 -b data1.img data1.qcow2

2.write 1M data to data1.img

3.create vm  use data1.qcow2 as the data disk
  /usr/libexec/qemu-kvm -M pc,accel=kvm -smp 4 -cpu host -m 4g -drive
  file=./centos_7.5_64_20200603.qcow2,if=none,id=drive-virtio0,cache=none,
  aio=native -device virtio-blk-pci,drive=drive-virtio0,id=virtio0 -drive
  file=./data1.qcow2,if=none,id=drive-virtio1,cache=none,l2-cache-size=
  1048576,aio=native -device virtio-blk-pci,drive=drive-virtio1,id=virtio1
  -vnc :101 -qmp stdio

4.{"execute": "block-stream", "arguments":{"device":"drive-virtio1"}}

5.kill -9 $(pidof qemu-kvm)

6.md5sum data1.img data1.qcow2,check if it is the same


Evanzhang (1):
  block/stream:add flush l2_table_cache,ensure data integrity

 block/stream.c | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.9.5



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

end of thread, other threads:[~2023-07-26  7:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-24  7:30 [PATCH v1] block/stream:add flush l2_table_cache, ensure data integrity Evanzhang
2023-07-24  7:30 ` Evanzhang
2023-07-25 14:25   ` [PATCH v1] block/stream:add flush l2_table_cache,ensure " Vladimir Sementsov-Ogievskiy
2023-07-25 15:13     ` Denis V. Lunev
2023-07-25 16:38       ` Vladimir Sementsov-Ogievskiy
2023-07-26  7:04         ` 回复: " 张承

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).