qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] qemu-iotests: Handle cache mode option in 091
@ 2014-05-20  1:10 Fam Zheng
  2014-05-20 13:17 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Fam Zheng @ 2014-05-20  1:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, jcody, Stefan Hajnoczi

We should allow testing this on tmpfs. Any cache setting in iotests
should try to obey $CACHEMODE.

The cache mode is still "none" by default but overridable

Signed-off-by: Fam Zheng <famz@redhat.com>

---
v2: Add _default_cache_mode and _supported_cache_modes. (Kevin)
---
 tests/qemu-iotests/091 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091
index 384b3ac..32bbd56 100755
--- a/tests/qemu-iotests/091
+++ b/tests/qemu-iotests/091
@@ -47,6 +47,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 _supported_fmt qcow2
 _supported_proto file
 _supported_os Linux
+_default_cache_mode "none"
+_supported_cache_modes "writethrough" "none" "writeback"
 
 size=1G
 
@@ -59,13 +61,13 @@ echo === Starting QEMU VM1 ===
 echo
 
 qemu_comm_method="monitor"
-_launch_qemu -drive file="${TEST_IMG}",cache=none,id=disk
+_launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk
 h1=$QEMU_HANDLE
 
 echo
 echo === Starting QEMU VM2 ===
 echo
-_launch_qemu -drive file="${TEST_IMG}",cache=none,id=disk \
+_launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk \
              -incoming "exec: cat '${MIG_FIFO}'"
 h2=$QEMU_HANDLE
 
-- 
1.9.2

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

* Re: [Qemu-devel] [PATCH v2] qemu-iotests: Handle cache mode option in 091
  2014-05-20  1:10 [Qemu-devel] [PATCH v2] qemu-iotests: Handle cache mode option in 091 Fam Zheng
@ 2014-05-20 13:17 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2014-05-20 13:17 UTC (permalink / raw)
  To: Fam Zheng; +Cc: kwolf, jcody, qemu-devel

On Tue, May 20, 2014 at 09:10:32AM +0800, Fam Zheng wrote:
> We should allow testing this on tmpfs. Any cache setting in iotests
> should try to obey $CACHEMODE.
> 
> The cache mode is still "none" by default but overridable
> 
> Signed-off-by: Fam Zheng <famz@redhat.com>
> 
> ---
> v2: Add _default_cache_mode and _supported_cache_modes. (Kevin)
> ---
>  tests/qemu-iotests/091 | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

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

end of thread, other threads:[~2014-05-20 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20  1:10 [Qemu-devel] [PATCH v2] qemu-iotests: Handle cache mode option in 091 Fam Zheng
2014-05-20 13:17 ` Stefan Hajnoczi

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