Block patches
Subsystems (2)
The following changes since commit e5cd695266c5709308aa95b1baae499e4b5d4544:
Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2018-05-08 17:05:58 +0100)
are available in the Git repository at:
git://github.com/stefanha/qemu.git tags/block-pull-request
for you to fetch changes up to 31be8a2a97ecba7d31a82932286489cac318e9e9:
block/file-posix: add x-check-page-cache=on|off option (2018-05-11 16:43:05 +0100)
----------------------------------------------------------------
Block pull request
* Support -drive cache.direct=off live migration for POSIX files
----------------------------------------------------------------
Joe Perches (4):
checkpatch: add a --strict check for utf-8 in commit logs
checkpatch: ignore email headers better
checkpatch: emit a warning on file add/move/delete
checkpatch: reduce MAINTAINERS update message frequency
Pasi Savanainen (1):
checkpatch: check utf-8 content from a commit log when it's missing
from charset
Stefan Hajnoczi (3):
blockjob: drop block_job_pause/resume_all() block/file-posix: implement bdrv_co_invalidate_cache() on Linux block/file-posix: add x-check-page-cache=on|off option
qapi/block-core.json | 7 +- include/block/blockjob_int.h | 14 ---- block/file-posix.c | 146 ++++++++++++++++++++++++++++++++++- blockjob.c | 27 ------- scripts/checkpatch.pl | 56 +++++++++++++- 5 files changed, 202 insertions(+), 48 deletions(-)
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 2/8] checkpatch: add a --strict check for utf-8 in commit logs
From: Joe Perches <[email protected]>
Some find using utf-8 in commit logs inappropriate.
Some patch commit logs contain unintended utf-8 characters when doing things like copy/pasting compilation output.
Look for the start of any commit log by skipping initial lines that look like email headers and "From: " lines.
Stop looking for utf-8 at the first signature line.
Message-id: [email protected]
Conflicts:
QEMU does not have CHK(), use WARN() instead.
QEMU WARN() only takes one argument, drop the 'type' value in the first argument.
--- scripts/checkpatch.pl | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-)
scripts/checkpatch.pl +26 -4
@@ -224,9 +224,8 @@ our $NonptrType; our $Type; our $Declare; -our $UTF8 = qr { - [\x09\x0A\x0D\x20-\x7E] # ASCII - | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte +our $NON_ASCII_UTF8 = qr{ + [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates
@@ -235,6 +234,11 @@ our $UTF8 = qr { | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 }x; +our $UTF8 = qr{ + [\x09\x0A\x0D\x20-\x7E] # ASCII + | $NON_ASCII_UTF8 +}x; + # There are still some false positives, but this catches most # common cases. our $typeTypedefs = qr{(?x:
@@ -1179,6 +1183,9 @@ sub process { my $signoff = 0; my $is_patch = 0; + my $in_header_lines = 1; + my $in_commit_log = 0; #Scanning lines before patch + our @report = (); our $cnt_lines = 0; our $cnt_error = 0;
@@ -1331,7 +1338,6 @@ sub process { if ($line =~ /^diff --git.*?(\S+)$/) { $realfile = $1; $realfile =~ s@^([^/]*)/@@; - } elsif ($line =~ /^\+\+\+\s+(\S+)/) { $realfile = $1; $realfile =~ s@^([^/]*)/@@;
@@ -1370,6 +1376,8 @@ sub process { if ($line =~ /^\s*signed-off-by:/i) { # This is a signoff, if ugly, so do not double report. $signoff++; + $in_commit_log = 0; + if (!($line =~ /^\s*Signed-off-by:/)) { ERROR("The correct form is \"Signed-off-by\"\n" . $herecurr);
@@ -1398,6 +1406,20 @@ sub process { ERROR("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr); } +# Check if it's the start of a commit log +# (not a header line and we haven't seen the patch filename) + if ($in_header_lines && $realfile =~ /^$/ && + $rawline !~ /^(commit\b|from\b|\w+:).+$/i) { + $in_header_lines = 0; + $in_commit_log = 1; + } + +# Still not yet in a patch, check for any UTF-8 + if ($in_commit_log && $realfile =~ /^$/ && + $rawline =~ /$NON_ASCII_UTF8/) { + WARN("8-bit UTF-8 used in possible commit log\n" . $herecurr); + } + # ignore non-hunk lines and lines being removed next if (!$hunk_line || $line =~ /^-/);
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 1/8] blockjob: drop block_job_pause/resume_all()
In reply to Stefan HajnocziCommit 8119334918e86f45877cfc139192d54f2449a239 ("block: Don't block_job_pause_all() in bdrv_drain_all()") removed the only callers of block_job_pause/resume_all().
Pausing and resuming now happens in child_job_drained_begin/end() so it's no longer necessary to globally pause/resume jobs.
Message-id: [email protected]
--- include/block/blockjob_int.h | 14 -------------- blockjob.c | 27 --------------------------- 2 files changed, 41 deletions(-)
include/block/blockjob_int.h +0 -14
@@ -168,20 +168,6 @@ void block_job_sleep_ns(BlockJob *job, int64_t ns);*/ void block_job_yield (BlockJob *job); -/** -* block_job_pause_all: -* -* Asynchronously pause all jobs. -*/ -void block_job_pause_all (void ); - -/** -* block_job_resume_all: -* -* Resume all block jobs. Must be paired with a preceding block_job_pause_all. -*/ -void block_job_resume_all (void ); -/** * block_job_early_fail: * @bs: The block device.
blockjob.c +0 -27
@@ -988,19 +988,6 @@ void *block_job_create(const char *job_id, const BlockJobDriver *driver,return job; } -void block_job_pause_all (void ) -{ -BlockJob *job =NULL ; -while ((job =block_job_next (job))) { -AioContext *aio_context =blk_get_aio_context (job->blk); - -aio_context_acquire (aio_context); -block_job_ref (job); -block_job_pause (job); -aio_context_release (aio_context); - } -} -void block_job_early_fail (BlockJob *job) {assert (job->status ==BLOCK_JOB_STATUS_CREATED );
@@ -1078,20 +1065,6 @@ void coroutine_fn block_job_pause_point(BlockJob *job) } } -void block_job_resume_all (void ) -{ -BlockJob *job, *next; - - QLIST_FOREACH_SAFE(job, &block_jobs, job_list, next) { -AioContext *aio_context =blk_get_aio_context (job->blk); - -aio_context_acquire (aio_context); -block_job_resume (job); -block_job_unref (job); -aio_context_release (aio_context); - } -} -/* * Conditionally enter a block_job pending a call to fn() while * under the block_job_lock critical section.
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 4/8] checkpatch: ignore email headers better
In reply to Stefan HajnocziFrom: Joe Perches <[email protected]>
There are some patches created by git format-patch that when scanned by checkpatch report errors on lines like
To: address.tld
This is a checkpatch false positive.
Improve the logic a bit to ignore folded email headers to avoid emitting these messages.
Message-id: [email protected]
--- scripts/checkpatch.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +3 -2
@@ -1183,7 +1183,7 @@ sub process { my $signoff = 0; my $is_patch = 0; - my $in_header_lines = 1; + my $in_header_lines = $file ? 0 : 1; my $in_commit_log = 0; #Scanning lines before patch my $non_utf8_charset = 0;
@@ -1411,7 +1411,8 @@ sub process { # Check if it's the start of a commit log # (not a header line and we haven't seen the patch filename) if ($in_header_lines && $realfile =~ /^$/ && - $rawline !~ /^(commit\b|from\b|\w+:).+$/i) { + !($rawline =~ /^\s+\S/ || + $rawline =~ /^(commit\b|from\b|[\w-]+:).*$/i)) { $in_header_lines = 0; $in_commit_log = 1; }
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 3/8] checkpatch: check utf-8 content from a commit log when it's missing from charset
In reply to Stefan HajnocziFrom: Pasi Savanainen <[email protected]>
Check that a commit log doesn't contain UTF-8 when a mail header explicitly defines a different charset, like
'Content-Type: text/plain; charset="us-ascii"'
Message-id: [email protected]
--- scripts/checkpatch.pl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
scripts/checkpatch.pl +11 -2
@@ -1186,6 +1186,8 @@ sub process { my $in_header_lines = 1; my $in_commit_log = 0; #Scanning lines before patch + my $non_utf8_charset = 0; + our @report = (); our $cnt_lines = 0; our $cnt_error = 0;
@@ -1414,8 +1416,15 @@ sub process { $in_commit_log = 1; } -# Still not yet in a patch, check for any UTF-8 - if ($in_commit_log && $realfile =~ /^$/ && +# Check if there is UTF-8 in a commit log when a mail header has explicitly +# declined it, i.e defined some charset where it is missing. + if ($in_header_lines && + $rawline =~ /^Content-Type:.+charset="(.+)".*$/ && + $1 !~ /utf-8/i) { + $non_utf8_charset = 1; + } + + if ($in_commit_log && $non_utf8_charset && $realfile =~ /^$/ && $rawline =~ /$NON_ASCII_UTF8/) { WARN("8-bit UTF-8 used in possible commit log\n" . $herecurr); }
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 5/8] checkpatch: emit a warning on file add/move/delete
In reply to Stefan HajnocziFrom: Joe Perches <[email protected]>
Whenever files are added, moved, or deleted, the MAINTAINERS file patterns can be out of sync or outdated.
To try to keep MAINTAINERS more up-to-date, add a one-time warning whenever a patch does any of those.
Message-id: [email protected]
Conflicts:
QEMU WARN() only takes one argument, drop the 'type' value in the first argument.
--- scripts/checkpatch.pl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
scripts/checkpatch.pl +11 -1
@@ -1185,7 +1185,7 @@ sub process { my $in_header_lines = $file ? 0 : 1; my $in_commit_log = 0; #Scanning lines before patch - + my $reported_maintainer_file = 0; my $non_utf8_charset = 0; our @report = ();
@@ -1390,6 +1390,16 @@ sub process { } } +# Check for added, moved or deleted files + if (!$reported_maintainer_file && !$in_commit_log && + ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ || + $line =~ /^rename (?:from|to) [\w\/\.\-]+\s*$/ || + ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ && + (defined($1) || defined($2))))) { + $reported_maintainer_file = 1; + WARN("added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr); + } + # Check for wrappage within a valid hunk of the file if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) { ERROR("patch seems to be corrupt (line wrapped?)\n" .
Signature · 1 line
2.17.0
Re: [Qemu-devel] [PULL 5/8] checkpatch: emit a warning on file add/move/delete
Quoted 8 lines · Stefan Hajnoczi
From: Joe Perches <[email protected]>
Whenever files are added, moved, or deleted, the
MAINTAINERSfile patterns can be out of sync or outdated.To try to keep
MAINTAINERSmore up-to-date, add a one-time warning whenever a patch does any of those.
This seems to generate false positives: it just warned me about "xlnx-zdma: Add a model of the Xilinx ZynqMP generic DMA", but there are already entries in the MAINTAINERS file that cover the new files.
thanks
-- PMM
[Qemu-devel] [PULL 6/8] checkpatch: reduce MAINTAINERS update message frequency
In reply to Stefan HajnocziFrom: Joe Perches <[email protected]>
When files are being added/moved/deleted and a patch contains an update to the MAINTAINERS file, assume it's to update the MAINTAINERS file correctly and do not emit the "does MAINTAINERS need updating?" message.
Reported by many people.
Message-id: [email protected] (cherry picked from e0d975b1b439c4fef58fbc306c542c94f48bb849)
--- scripts/checkpatch.pl | 6 ++++++ 1 file changed, 6 insertions(+)
scripts/checkpatch.pl +6 -0
@@ -1390,6 +1390,12 @@ sub process { } } +# Check if MAINTAINERS is being updated. If so, there's probably no need to +# emit the "does MAINTAINERS need updating?" message on file add/move/delete + if ($line =~ /^\s*MAINTAINERS\s*\|/) { + $reported_maintainer_file = 1; + } + # Check for added, moved or deleted files if (!$reported_maintainer_file && !$in_commit_log && ($line =~ /^(?:new|deleted) file mode\s*\d+\s*$/ ||
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 7/8] block/file-posix: implement bdrv_co_invalidate_cache() on Linux
In reply to Stefan HajnocziOn Linux posix_fadvise(POSIX_FADV_DONTNEED) invalidates pages*. Use this to drop page cache on the destination host during shared storage migration. This way the destination host will read the latest copy of the data and will not use stale data from the page cache.
The flow is as follows:
1. Source host writes out all dirty pages and inactivates drives.
2. QEMU_VM_EOF is sent on migration stream.
3. Destination host invalidates caches before accessing drives.
This patch enables live migration even with -drive cache.direct=off.
* Terms and conditions may apply, please see patch for details.
Message-id: [email protected]
--- block/file-posix.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+)
block/file-posix.c +46 -0
@@ -2236,6 +2236,49 @@ static int coroutine_fn raw_co_block_status(BlockDriverState *bs,return ret |BDRV_BLOCK_OFFSET_VALID ; } +static void coroutine_fn raw_co_invalidate_cache(BlockDriverState *bs, +Error **errp) +{ +BDRVRawState *s = bs->opaque; +int ret; + + ret =fd_open (bs); +if (ret <0 ) { +error_setg_errno (errp, -ret,"The file descriptor is not open" ); +return ; + } + +if (s->open_flags &O_DIRECT ) { +return ;/* No host kernel page cache */ + } + +#if defined(__linux__) +/* This sets the scene for the next syscall... */ + ret =bdrv_co_flush (bs); +if (ret <0 ) { +error_setg_errno (errp, -ret,"flush failed" ); +return ; + } + +/* Linux does not invalidate pages that are dirty, locked, or mmapped by a +* process. These limitations are okay because we just fsynced the file, +* we don't use mmap, and the file should not be in use by other processes. +*/ + ret =posix_fadvise (s->fd,0 ,0 ,POSIX_FADV_DONTNEED ); +if (ret !=0 ) {/* the return value is a positive errno */ +error_setg_errno (errp, ret,"fadvise failed" ); +return ; + } +#else /* __linux__ */ +/* Do nothing. Live migration to a remote host with cache.direct=off is +* unsupported on other host operating systems. Cache consistency issues +* may occur but no error is reported here, partly because that's the +* historical behavior and partly because it's hard to differentiate valid +* configurations that should not cause errors. +*/ +#endif /* !__linux__ */ +} + static coroutine_fn BlockAIOCB *raw_aio_pdiscard(BlockDriverState *bs,int64_t offset,int bytes,BlockCompletionFunc *cb,void *opaque)
@@ -2328,6 +2371,7 @@ BlockDriver bdrv_file = { .bdrv_co_create_opts = raw_co_create_opts, .bdrv_has_zero_init = bdrv_has_zero_init_1, .bdrv_co_block_status = raw_co_block_status, + .bdrv_co_invalidate_cache = raw_co_invalidate_cache, .bdrv_co_pwrite_zeroes = raw_co_pwrite_zeroes, .bdrv_co_preadv = raw_co_preadv,
@@ -2805,6 +2849,7 @@ static BlockDriver bdrv_host_device = { .bdrv_reopen_abort = raw_reopen_abort, .bdrv_co_create_opts = hdev_co_create_opts, .create_opts = &raw_create_opts, + .bdrv_co_invalidate_cache = raw_co_invalidate_cache, .bdrv_co_pwrite_zeroes = hdev_co_pwrite_zeroes, .bdrv_co_preadv = raw_co_preadv,
@@ -2927,6 +2972,7 @@ static BlockDriver bdrv_host_cdrom = { .bdrv_reopen_abort = raw_reopen_abort, .bdrv_co_create_opts = hdev_co_create_opts, .create_opts = &raw_create_opts, + .bdrv_co_invalidate_cache = raw_co_invalidate_cache, .bdrv_co_preadv = raw_co_preadv,
Signature · 1 line
2.17.0
[Qemu-devel] [PULL 8/8] block/file-posix: add x-check-page-cache=on|off option
In reply to Stefan Hajnoczimincore(2) checks whether pages are resident. Use it to verify that page cache has been dropped.
You can trigger a verification failure by mmapping the image file from another process that loads a byte from a page, forcing it to become resident. bdrv_co_invalidate_cache() will fail while that process is alive.
Message-id: [email protected]
--- qapi/block-core.json | 7 ++- block/file-posix.c | 100 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 104 insertions(+), 3 deletions(-)
qapi/block-core.json +6 -1
@@ -2530,6 +2530,10 @@ # @locking: whether to enable file locking. If set to 'auto', only enable # when Open File Descriptor (OFD) locking API is available # (default: auto, since 2.10) +# @x-check-cache-dropped: whether to check that page cache was dropped on live +# migration. May cause noticeable delays if the image +# file is large, do not use in production. +# (default: off) (since: 2.13) # # Since: 2.9 ##
@@ -2537,7 +2541,8 @@ 'data': { 'filename': 'str', '*pr-manager': 'str', '*locking': 'OnOffAuto', - '*aio': 'BlockdevAioOptions' } } + '*aio': 'BlockdevAioOptions', + '*x-check-cache-dropped': 'bool' } } ## # @BlockdevOptionsNull:
block/file-posix.c +98 -2
166 lines not on this page · raw message
Signature · 1 line
2.17.0
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [Qemu-devel] [PULL 0/8] Block patches
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
* [new tag] patchew/[email protected] -> patchew/[email protected]
t [tag update] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'a35067253e block/file-posix: add x-check-page-cache=on|off optionc6c991d81f block/file-posix: implement bdrv_co_invalidate_cache() on Linux 3b9d04939d checkpatch: reduce MAINTAINERS update message frequency 92c27dd7e6 checkpatch: emit a warning on file add/move/delete82e1381f3f checkpatch: ignore email headers better63d8deac11 checkpatch: check utf-8 content from a commit log when it's missing from charset 7ecaae4f83 checkpatch: add a --strict check for utf-8 in commit logs ca525fa2f4 blockjob: drop block_job_pause/resume_all()
=== OUTPUT BEGIN ===
Checking PATCH 1/8: blockjob: drop block_job_pause/resume_all()... Checking PATCH 2/8: checkpatch: add a --strict check for utf-8 in commit logs...
WARNING: line over 80 characters
#109: FILE: scripts/checkpatch.pl:1420:
+ WARN("8-bit UTF-8 used in possible commit log\n" . $herecurr);
total: 0 errors, 1 warnings, 66 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 3/8: checkpatch: check utf-8 content from a commit log when it's missing from charset... Checking PATCH 4/8: checkpatch: ignore email headers better...
Checking PATCH 5/8: checkpatch: emit a warning on file add/move/delete...
WARNING: line over 80 characters
#51: FILE: scripts/checkpatch.pl:1397:
+ ($line =~ /\{\s*([\w\/\.\-]*)\s*\=\>\s*([\w\/\.\-]*)\s*\}/ &&
ERROR: line over 90 characters
#54: FILE: scripts/checkpatch.pl:1400:
+ WARN("added, moved or deleted file(s), does MAINTAINERS need updating?\n" . $herecurr);
total: 1 errors, 1 warnings, 24 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 6/8: checkpatch: reduce MAINTAINERS update message frequency... Checking PATCH 7/8: block/file-posix: implement bdrv_co_invalidate_cache() on Linux...
WARNING: architecture specific defines should be avoided
#52: FILE: block/file-posix.c:2255:
+#if defined(__linux__)
total: 0 errors, 1 warnings, 70 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 8/8: block/file-posix: add x-check-page-cache=on|off option...
WARNING: line over 80 characters
#47: FILE: block/file-posix.c:423:
+ .help = "check that page cache was dropped on live migration (default: off)"
WARNING: architecture specific defines should be avoided #120: FILE: block/file-posix.c:2264:
+#if defined(__linux__)
total: 0 errors, 2 warnings, 185 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Quoted 10 lines · Stefan Hajnoczi
The following changes since commit
e5cd695266c5709308aa95b1baae499e4b5d4544:Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2018-05-08 17:05:58 +0100)
are available in the Git repository at:
git://github.com/stefanha/qemu.gittags/block-pull-requestfor you to fetch changes up to
31be8a2a97ecba7d31a82932286489cac318e9e9:
Quoted 8 lines
block/file-posix: add x-check-page-cache=on|off option (2018-05-11 16:43:05 +0100)----------------------------------------------------------------
Block pull request* Support -drive cache.direct=off live migration for POSIX files
----------------------------------------------------------------
With this I get test failures for x86-64 Linux host (debug enabled):
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} gtester -k --verbose -m=quick tests/test-replication
TEST: tests/test-replication... (pid=15016)
/replication/primary/read: OK /replication/primary/write: OK /replication/primary/start: OK /replication/primary/stop: OK /replication/primary/do_checkpoint: OK /replication/primary/get_error_all: OK /replication/secondary/read: **
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-replication.c:119:test_blk_write:
assertion failed: (async_ret == 0)
FAIL
GTester: last random seed: R02Sf99d81651223b2fcdd0d7d601245eba3 (pid=15131)
/replication/secondary/write: OK
/replication/secondary/start: **
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-replication.c:119:test_blk_write:
assertion failed: (async_ret == 0)
FAIL
GTester: last random seed: R02S3e753c59c58d385aa2ea07c974c2e384 (pid=15309)
/replication/secondary/stop: **
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-replication.c:119:test_blk_write:
assertion failed: (async_ret == 0)
FAIL
GTester: last random seed: R02Sb6a8459edfa78efa369da3920846afa7 (pid=15439)
/replication/secondary/do_checkpoint: **
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-replication.c:119:test_blk_write:
assertion failed: (async_ret == 0)
FAIL
GTester: last random seed: R02S4b2e6aa4e33bba4c5bdea0b9073ee966 (pid=15580)
/replication/secondary/get_error_all: OK
FAIL: tests/test-replication /home/petmay01/linaro/qemu-for-merges/tests/Makefile.include:892:
recipe for target 'check-tests/test-replication' failed
thanks
-- PMM
Quoted 32 lines · Peter Maydell
Quoted 10 lines · Stefan Hajnoczi
The following changes since commit
e5cd695266c5709308aa95b1baae499e4b5d4544:Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2018-05-08 17:05:58 +0100)
are available in the Git repository at:
git://github.com/stefanha/qemu.gittags/block-pull-requestfor you to fetch changes up to
31be8a2a97ecba7d31a82932286489cac318e9e9:Quoted 8 lines
block/file-posix: add x-check-page-cache=on|off option (2018-05-11 16:43:05 +0100)----------------------------------------------------------------
Block pull request* Support -drive cache.direct=off live migration for POSIX files
----------------------------------------------------------------
With this I get test failures for x86-64 Linux host (debug enabled):
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} gtester -k --verbose -m=quick tests/test-replication
TEST: tests/test-replication... (pid=15016)/replication/primary/read: OK /replication/primary/write: OK /replication/primary/start: OK /replication/primary/stop: OK /replication/primary/do_checkpoint: OK /replication/primary/get_error_all: OK /replication/secondary/read: **
Quoted 10 lines
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-replication.c:119:test_blk_write:
assertion failed: (async_ret== 0)
FAIL
GTester: last random seed: R02Sf99d81651223b2fcdd0d7d601245eba3 (pid=15131)
/replication/secondary/write: OK
/replication/secondary/start: **
ERROR:/home/petmay01/linaro/qemu-for-merges/tests/test-replication.c:119:test_blk_write:
assertion failed: (async_ret== 0)
FAIL
Sorry, this is a false alarm -- this test fails in this obscure way if the system has run out of disk space and the write returns ENOSPC.
Ideally we should fix the test to print the errno. In the meantime I've deleted some large log files and will retest the pull :-)
thanks
-- PMM
Peter Maydell
AppliedQuoted 8 lines · Stefan Hajnoczi
The following changes since commit
e5cd695266c5709308aa95b1baae499e4b5d4544:Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2018-05-08 17:05:58 +0100)
are available in the Git repository at:
git://github.com/stefanha/qemu.gittags/block-pull-request
Quoted 9 lines
for you to fetch changes up to
31be8a2a97ecba7d31a82932286489cac318e9e9:
block/file-posix: add x-check-page-cache=on|off option (2018-05-11 16:43:05 +0100)----------------------------------------------------------------
Block pull request* Support -drive cache.direct=off live migration for POSIX files
Applied, thanks.
-- PMM