From: Evanzhang <Evanzhang@archeros.com>
To: qemu-devel@nongnu.org, qemu-block@nongnu.org
Cc: jsnow@redhat.com, vsementsov@yandex-team.ru, kwolf@redhat.com,
hreitz@redhat.com, Evanzhang <Evanzhang@archeros.com>
Subject: [PATCH v1] block/stream:add flush l2_table_cache, ensure data integrity
Date: Mon, 24 Jul 2023 15:30:03 +0800 [thread overview]
Message-ID: <cover.1690166344.git.Evanzhang@archeros.com> (raw)
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
next reply other threads:[~2023-07-24 14:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-24 7:30 Evanzhang [this message]
2023-07-24 7:30 ` [PATCH v1] block/stream:add flush l2_table_cache, ensure data integrity 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 ` 回复: " 张承
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1690166344.git.Evanzhang@archeros.com \
--to=evanzhang@archeros.com \
--cc=hreitz@redhat.com \
--cc=jsnow@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@yandex-team.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.