Re: [Qemu-block] [PATCH v5] crypto: Implement TLS Pre-Shared Keys (PSK).

2018-07-03 Thread Richard W.M. Jones
Hi Dan, I was on holiday yesterday so I guess we've missed the deadline. In any case I will post v6 with the requested change in a few minutes. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordp

[Qemu-block] [PATCH v6] crypto: Implement TLS Pre-Shared Keys (PSK).

2018-07-03 Thread Richard W.M. Jones
v5 was here: https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg08491.html https://lists.gnu.org/archive/html/qemu-devel/2018-07/msg00077.html v6: - Make ECDHE-PSK dependent on GnuTLS >= 3. - Retested against nbdkit. - Retested with internal unit tests. Rich.

[Qemu-block] [PATCH v6] crypto: Implement TLS Pre-Shared Keys (PSK).

2018-07-03 Thread Richard W.M. Jones
Pre-Shared Keys (PSK) is a simpler mechanism for enabling TLS connections than using certificates. It requires only a simple secret key: $ mkdir -m 0700 /tmp/keys $ psktool -u rjones -p /tmp/keys/keys.psk $ cat /tmp/keys/keys.psk rjones:d543770c15ad93d76443fb56f501a31969235f47e999720ae8d2

Re: [Qemu-block] [Qemu-devel] [PATCH v4 2/2] iotests: add 222 to test basic fleecing

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
02.07.2018 22:46, John Snow wrote: Signed-off-by: John Snow Reviewed-by: Vladimir Sementsov-Ogievskiy -- Best regards, Vladimir

Re: [Qemu-block] [PATCH v2 1/2] nbd/client: Add x-dirty-bitmap to query bitmap from server

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
02.07.2018 22:14, Eric Blake wrote: In order to test that the NBD server is properly advertising dirty bitmaps, we need a bare minimum client that can request and read the context. Since feature freeze for 3.0 is imminent, this is the smallest workable patch, which replaces the qemu block status

[Qemu-block] [PATCH] pr-helper: Rework socket path handling

2018-07-03 Thread Michal Privoznik
When reviewing Paolo's pr-helper patches I've noticed couple of problems: 1) socket_path needs to be calculated at two different places (one for printing out help, the other if socket activation is NOT used), 2) even though the default socket_path is allocated in compute_default_paths() it is the

Re: [Qemu-block] [PATCH] pr-helper: Rework socket path handling

2018-07-03 Thread Paolo Bonzini
On 03/07/2018 11:51, Michal Privoznik wrote: > When reviewing Paolo's pr-helper patches I've noticed couple of > problems: > > 1) socket_path needs to be calculated at two different places > (one for printing out help, the other if socket activation is NOT > used), > > 2) even though the default

Re: [Qemu-block] [PATCH v2 2/2] iotests: New test 223 for exporting dirty bitmap over NBD

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
02.07.2018 22:14, Eric Blake wrote: Although this test is NOT a full test of image fleecing (as it intentionally uses just a single block device directly exported over NBD, rather than trying to set up a blockdev-backup job with multiple BDS involved), it DOES prove that qemu as a server is able

Re: [Qemu-block] [Qemu-devel] [PATCH v2 2/2] iotests: New test 223 for exporting dirty bitmap over NBD

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
03.07.2018 00:27, John Snow wrote: On 07/02/2018 03:14 PM, Eric Blake wrote: Although this test is NOT a full test of image fleecing (as it intentionally uses just a single block device directly exported over NBD, rather than trying to set up a blockdev-backup job with multiple BDS involved), i

[Qemu-block] [PATCH 0/2] transaction support for bitmap merge

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
This is a last brick, necessary to play with nbd bitmap export in conjunction with image fleecing. Vladimir Sementsov-Ogievskiy (2): drity-bitmap: refactor merge: separte can_merge qapi: add transaction support for x-block-dirty-bitmap-merge qapi/transaction.json| 2 ++ include/bloc

[Qemu-block] [PATCH 2/2] qapi: add transaction support for x-block-dirty-bitmap-merge

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/transaction.json | 2 ++ blockdev.c| 53 ++- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/qapi/transaction.json b/qapi/transaction.json index d7e4274550..f9da6ad47f

[Qemu-block] [PATCH 1/2] drity-bitmap: refactor merge: separte can_merge

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
Separate can_merge, to reuse it for transaction support for merge command. Also, switch some asserts to errors. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/dirty-bitmap.h | 3 +++ include/qemu/hbitmap.h | 8 block/dirty-bitmap.c | 32 ++

Re: [Qemu-block] [libvirt] [Qemu-devel] [PULL 25/26] block: Remove deprecated -drive option serial

2018-07-03 Thread Christian Borntraeger
On 07/02/2018 10:04 AM, Kevin Wolf wrote: > Am 25.06.2018 um 13:45 hat Peter Krempa geschrieben: >> On Mon, Jun 25, 2018 at 13:41:06 +0200, Kevin Wolf wrote: >>> Am 25.06.2018 um 11:53 hat Daniel P. Berrangé geschrieben: On Fri, Jun 22, 2018 at 03:31:46PM +0100, Daniel P. Berrangé wrote: >>

Re: [Qemu-block] [PATCH v2 2/3] block/fleecing-filter: new filter driver for fleecing

2018-07-03 Thread Kevin Wolf
Am 02.07.2018 um 14:09 hat Vladimir Sementsov-Ogievskiy geschrieben: > 29.06.2018 20:40, Eric Blake wrote: > > On 06/29/2018 12:30 PM, John Snow wrote: > > > > > > > > > On 06/29/2018 11:15 AM, Vladimir Sementsov-Ogievskiy wrote: > > > > We need to synchronize backup job with reading from fleecin

Re: [Qemu-block] [PATCH v6] crypto: Implement TLS Pre-Shared Keys (PSK).

2018-07-03 Thread Daniel P . Berrangé
On Tue, Jul 03, 2018 at 09:03:03AM +0100, Richard W.M. Jones wrote: > Pre-Shared Keys (PSK) is a simpler mechanism for enabling TLS > connections than using certificates. It requires only a simple secret > key: > > $ mkdir -m 0700 /tmp/keys > $ psktool -u rjones -p /tmp/keys/keys.psk > $ ca

Re: [Qemu-block] [PATCH v2 2/3] block/fleecing-filter: new filter driver for fleecing

2018-07-03 Thread Kevin Wolf
Am 02.07.2018 um 13:57 hat Vladimir Sementsov-Ogievskiy geschrieben: > 29.06.2018 20:30, John Snow wrote: > > > > On 06/29/2018 11:15 AM, Vladimir Sementsov-Ogievskiy wrote: > > > We need to synchronize backup job with reading from fleecing image > > > like it was done in block/replication.c. > >

Re: [Qemu-block] [libvirt] [Qemu-devel] [PULL 25/26] block: Remove deprecated -drive option serial

2018-07-03 Thread Daniel P . Berrangé
On Tue, Jul 03, 2018 at 12:53:44PM +0200, Christian Borntraeger wrote: > > > On 07/02/2018 10:04 AM, Kevin Wolf wrote: > > Am 25.06.2018 um 13:45 hat Peter Krempa geschrieben: > >> On Mon, Jun 25, 2018 at 13:41:06 +0200, Kevin Wolf wrote: > >>> Am 25.06.2018 um 11:53 hat Daniel P. Berrangé geschr

Re: [Qemu-block] [libvirt] [Qemu-devel] [PULL 25/26] block: Remove deprecated -drive option serial

2018-07-03 Thread Kevin Wolf
Am 03.07.2018 um 13:22 hat Daniel P. Berrangé geschrieben: > On Tue, Jul 03, 2018 at 12:53:44PM +0200, Christian Borntraeger wrote: > > > > > > On 07/02/2018 10:04 AM, Kevin Wolf wrote: > > > Am 25.06.2018 um 13:45 hat Peter Krempa geschrieben: > > >> On Mon, Jun 25, 2018 at 13:41:06 +0200, Kevin

Re: [Qemu-block] [libvirt] [Qemu-devel] [PULL 25/26] block: Remove deprecated -drive option serial

2018-07-03 Thread Peter Maydell
On 3 July 2018 at 12:32, Kevin Wolf wrote: > Am 03.07.2018 um 13:22 hat Daniel P. Berrangé geschrieben: >> Just posted latest version here: >> >> https://www.redhat.com/archives/libvir-list/2018-July/msg00130.html >> >> It will be in the next release on ~ Aug 1st > > It would have been a lot nic

Re: [Qemu-block] [libvirt] [Qemu-devel] [PULL 25/26] block: Remove deprecated -drive option serial

2018-07-03 Thread Daniel P . Berrangé
On Tue, Jul 03, 2018 at 01:32:29PM +0200, Kevin Wolf wrote: > Am 03.07.2018 um 13:22 hat Daniel P. Berrangé geschrieben: > > On Tue, Jul 03, 2018 at 12:53:44PM +0200, Christian Borntraeger wrote: > > > > > > > > > On 07/02/2018 10:04 AM, Kevin Wolf wrote: > > > > Am 25.06.2018 um 13:45 hat Peter

Re: [Qemu-block] [PATCH v2 2/3] block/fleecing-filter: new filter driver for fleecing

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
03.07.2018 14:15, Kevin Wolf wrote: Am 02.07.2018 um 14:09 hat Vladimir Sementsov-Ogievskiy geschrieben: 29.06.2018 20:40, Eric Blake wrote: On 06/29/2018 12:30 PM, John Snow wrote: On 06/29/2018 11:15 AM, Vladimir Sementsov-Ogievskiy wrote: We need to synchronize backup job with reading fro

Re: [Qemu-block] [libvirt] [Qemu-devel] [PULL 25/26] block: Remove deprecated -drive option serial

2018-07-03 Thread Christian Borntraeger
On 07/03/2018 01:35 PM, Peter Maydell wrote: > On 3 July 2018 at 12:32, Kevin Wolf wrote: >> Am 03.07.2018 um 13:22 hat Daniel P. Berrangé geschrieben: >>> Just posted latest version here: >>> >>> https://www.redhat.com/archives/libvir-list/2018-July/msg00130.html >>> >>> It will be in the ne

Re: [Qemu-block] [PULL 0/3] Block patches

2018-07-03 Thread Peter Maydell
On 3 July 2018 at 04:46, Jeff Cody wrote: > The following changes since commit ab08440a4ee09032d1a9cb22fdcab23bc7e1c656: > > Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20180702' into > staging (2018-07-02 17:57:46 +0100) > > are available in the Git repository at: > > git://githu

[Qemu-block] [PATCH V2] qemu-img: align result of is_allocated_sectors

2018-07-03 Thread Peter Lieven
We currently don't enforce that the sparse segments we detect during convert are aligned. This leads to unnecessary and costly read-modify-write cycles either internally in Qemu or in the background on the storage device as nearly all modern filesystems or hardware have a 4k alignment internally.

Re: [Qemu-block] [PATCH v6 2/2] block: Add blklogwrites

2018-07-03 Thread Kevin Wolf
Am 29.06.2018 um 22:47 hat Ari Sundholm geschrieben: > From: Aapo Vienamo > > Implements a block device write logging system, similar to Linux kernel > device mapper dm-log-writes. The write operations that are performed > on a block device are logged to a file or another block device. The > writ

Re: [Qemu-block] [PATCH v3 00/11] NBD reconnect

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
Hi all. before v4 realization, I'd like to discuss some questions. Our proposal for v4 is the following: 1. don't reconnect on nbd_open. So, on open we do only one connect attempt, and if it fails, open fails. 2. don't configure timeout between attempts. instead do the following:     1s timeo

Re: [Qemu-block] [PATCH v6 2/2] block: Add blklogwrites

2018-07-03 Thread Ari Sundholm
On 07/03/2018 04:06 PM, Kevin Wolf wrote: Am 29.06.2018 um 22:47 hat Ari Sundholm geschrieben: From: Aapo Vienamo Implements a block device write logging system, similar to Linux kernel device mapper dm-log-writes. The write operations that are performed on a block device are logged to a file

[Qemu-block] [PATCH v7 0/2] New block driver: blklogwrites

2018-07-03 Thread Ari Sundholm
This patch series adds a new block driver, blklogwrites, to QEMU. The driver is given two block devices: a raw device backed by an image or a host block device, and a log device, typically backed by a file, on which writes to the raw device are logged. The logging format used is the same as in the

[Qemu-block] [PATCH v7 2/2] block: Add blklogwrites

2018-07-03 Thread Ari Sundholm
From: Aapo Vienamo Implements a block device write logging system, similar to Linux kernel device mapper dm-log-writes. The write operations that are performed on a block device are logged to a file or another block device. The write log format is identical to the dm-log-writes format. Currently,

[Qemu-block] [PATCH v7 1/2] block: Move two block permission constants to the relevant enum

2018-07-03 Thread Ari Sundholm
This allows using the two constants outside of block.c, which will happen in a subsequent patch. Signed-off-by: Ari Sundholm --- block.c | 6 -- include/block/block.h | 7 +++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/block.c b/block.c index 70a46fd..96

[Qemu-block] [PULL 1/5] qemu-img: allow compressed not-in-order writes

2018-07-03 Thread Kevin Wolf
From: Vladimir Sementsov-Ogievskiy No reason to forbid them, and they are needed to improve performance with compress-threads in further patches. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Kevin Wolf --- qemu-img.c | 5 - 1 file changed, 5 deletions(-) diff --git a/qemu-i

[Qemu-block] [PULL 3/5] qcow2: add compress threads

2018-07-03 Thread Kevin Wolf
From: Vladimir Sementsov-Ogievskiy Do data compression in separate threads. This significantly improve performance for qemu-img convert with -W (allow async writes) and -c (compressed) options. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: Kevin Wolf --- block/qcow2.h | 3 +++ b

[Qemu-block] [PULL 4/5] block: Move two block permission constants to the relevant enum

2018-07-03 Thread Kevin Wolf
From: Ari Sundholm This allows using the two constants outside of block.c, which will happen in a subsequent patch. Signed-off-by: Ari Sundholm Signed-off-by: Kevin Wolf --- include/block/block.h | 7 +++ block.c | 6 -- 2 files changed, 7 insertions(+), 6 deletions(-)

[Qemu-block] [PULL 0/5] Block layer patches

2018-07-03 Thread Kevin Wolf
The following changes since commit a395717cbd26e7593d3c3fe81faca121ec6d13e8: Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (2018-07-03 11:49:51 +0100) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for you to fet

[Qemu-block] [PULL 5/5] block: Add blklogwrites

2018-07-03 Thread Kevin Wolf
From: Aapo Vienamo Implements a block device write logging system, similar to Linux kernel device mapper dm-log-writes. The write operations that are performed on a block device are logged to a file or another block device. The write log format is identical to the dm-log-writes format. Currently,

[Qemu-block] [PULL 2/5] qcow2: refactor data compression

2018-07-03 Thread Kevin Wolf
From: Vladimir Sementsov-Ogievskiy Make a separate function for compression to be parallelized later. - use .avail_out field instead of .next_out to calculate size of compressed data. It looks more natural and it allows to keep dest to be void pointer - set avail_out to be at least one by

Re: [Qemu-block] [PATCH v7 0/2] New block driver: blklogwrites

2018-07-03 Thread Kevin Wolf
Am 03.07.2018 um 16:48 hat Ari Sundholm geschrieben: > This patch series adds a new block driver, blklogwrites, to QEMU. The > driver is given two block devices: a raw device backed by an image or a > host block device, and a log device, typically backed by a file, on > which writes to the raw devi

Re: [Qemu-block] [PULL 5/5] block: Add blklogwrites

2018-07-03 Thread Kevin Wolf
Am 03.07.2018 um 16:59 hat Kevin Wolf geschrieben: > From: Aapo Vienamo > > Implements a block device write logging system, similar to Linux kernel > device mapper dm-log-writes. The write operations that are performed > on a block device are logged to a file or another block device. The > write

Re: [Qemu-block] [Qemu-devel] [PATCH v4 2/2] iotests: add 222 to test basic fleecing

2018-07-03 Thread John Snow
On 07/03/2018 05:15 AM, Vladimir Sementsov-Ogievskiy wrote: > 02.07.2018 22:46, John Snow wrote: >> Signed-off-by: John Snow > > > Reviewed-by: Vladimir Sementsov-Ogievskiy > Thanks, and sorry for the 3.0 freeze rush.

Re: [Qemu-block] [PATCH v2 2/2] iotests: New test 223 for exporting dirty bitmap over NBD

2018-07-03 Thread Eric Blake
On 07/03/2018 05:09 AM, Vladimir Sementsov-Ogievskiy wrote: 02.07.2018 22:14, Eric Blake wrote: Although this test is NOT a full test of image fleecing (as it intentionally uses just a single block device directly exported over NBD, rather than trying to set up a blockdev-backup job with multipl

Re: [Qemu-block] [PATCH 2/2] qapi: add transaction support for x-block-dirty-bitmap-merge

2018-07-03 Thread Eric Blake
On 07/03/2018 05:53 AM, Vladimir Sementsov-Ogievskiy wrote: Signed-off-by: Vladimir Sementsov-Ogievskiy --- qapi/transaction.json | 2 ++ blockdev.c| 53 ++- 2 files changed, 54 insertions(+), 1 deletion(-) I'll let John handle t

Re: [Qemu-block] [PATCH v2 1/2] nbd/client: Add x-dirty-bitmap to query bitmap from server

2018-07-03 Thread Eric Blake
On 07/03/2018 04:46 AM, Vladimir Sementsov-Ogievskiy wrote:   # +# @x-dirty-bitmap: A "qemu:dirty-bitmap:NAME" string to query in place of +#  traditional "base:allocation" block status (see +#  NBD_OPT_LIST_META_CONTEXT in the NBD protocol) (since 3.0) +# "

Re: [Qemu-block] [PATCH v2 2/3] block/fleecing-filter: new filter driver for fleecing

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
03.07.2018 14:15, Kevin Wolf wrote: Am 02.07.2018 um 14:09 hat Vladimir Sementsov-Ogievskiy geschrieben: 29.06.2018 20:40, Eric Blake wrote: On 06/29/2018 12:30 PM, John Snow wrote: On 06/29/2018 11:15 AM, Vladimir Sementsov-Ogievskiy wrote: We need to synchronize backup job with reading fro

Re: [Qemu-block] [PATCH 1/2] drity-bitmap: refactor merge: separte can_merge

2018-07-03 Thread Eric Blake
On 07/03/2018 05:53 AM, Vladimir Sementsov-Ogievskiy wrote: In the subject: s/drity/dirty/, s/separte/separate/ Separate can_merge, to reuse it for transaction support for merge command. Also, switch some asserts to errors. Signed-off-by: Vladimir Sementsov-Ogievskiy --- Reviewed-by: Eric

Re: [Qemu-block] [PATCH v3 00/11] NBD reconnect

2018-07-03 Thread Eric Blake
On 07/03/2018 08:46 AM, Vladimir Sementsov-Ogievskiy wrote: Hi all. before v4 realization, I'd like to discuss some questions. Our proposal for v4 is the following: 1. don't reconnect on nbd_open. So, on open we do only one connect attempt, and if it fails, open fails. 2. don't configure tim

Re: [Qemu-block] [PULL 3/3] backup: Use copy offloading

2018-07-03 Thread John Snow
On 07/02/2018 11:46 PM, Jeff Cody wrote: > From: Fam Zheng > > The implementation is similar to the 'qemu-img convert'. In the > beginning of the job, offloaded copy is attempted. If it fails, further > I/O will go through the existing bounce buffer code path. > > Then, as Kevin pointed out,

[Qemu-block] [PATCH 1/2] block: Poll after drain on attaching a node

2018-07-03 Thread Kevin Wolf
Commit dcf94a23b1 ('block: Don't poll in parent drain callbacks') removed polling in bdrv_child_cb_drained_begin() on the grounds that the original bdrv_drain() already will poll and BdrvChildRole.drained_begin calls must not cause graph changes (and therefore must not call aio_poll() or the recurs

[Qemu-block] [PATCH 0/2] block: Fix attaching drained child node

2018-07-03 Thread Kevin Wolf
This fixes the following case that was reported by Max and was caused by not correctly waiting for activity to cease on the parent node before attaching a drained child node: $ ./qemu-img create -f qed foo.qed 64M Formatting 'foo.qed', fmt=qed size=67108864 cluster_size=65536 $ echo "{'execute':'q

[Qemu-block] [PATCH 2/2] test-bdrv-drain: Test bdrv_append() to drained node

2018-07-03 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index 291a050f86..17bb8508ae 100644 --- a/tests/test-bdrv-drain.c +++ b/tests/test-bdrv-drain.c

Re: [Qemu-block] [PATCH v2 2/3] block/fleecing-filter: new filter driver for fleecing

2018-07-03 Thread Kevin Wolf
Am 03.07.2018 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben: > 03.07.2018 14:15, Kevin Wolf wrote: > > We'll have to figure out where to fix this problem (or what it really > > is, once you look more than just at fleecing), but I think requiring the > > user to add a filter driver to work a

[Qemu-block] [PATCH 0/2] fix image fleecing

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
Hi all. It's a continuation of discussion under "[PATCH v2 2/3] block/fleecing-filter: new filter driver for fleecing" [1]. Here is my try to implement Kevin's idea, that all backup writes (for fleecing case) should be serialized. (However, I've skipped for now fixing related permissions). Looks

[Qemu-block] [PATCH 1/2] block: add BDRV_REQ_SERIALISING flag

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
Serialized writes should be used in copy-on-write of backup(sync=none) for image fleecing scheme. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/block.h | 5 - block/io.c| 4 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/block/block.h b

[Qemu-block] [PATCH 2/2] block/backup: fix fleecing scheme: use serialized writes

2018-07-03 Thread Vladimir Sementsov-Ogievskiy
Fleecing scheme works as follows: we want a kind of temporary snapshot of active drive A. We create temporary image B, with B->backing = A. Then we start backup(sync=none) from A to B. From this point, B reads as point-in-time snapshot of A (A continues to be active drive, accepting guest IO). Thi

Re: [Qemu-block] [PULL 3/3] backup: Use copy offloading

2018-07-03 Thread John Snow
On 07/03/2018 12:53 PM, John Snow wrote: > > > On 07/02/2018 11:46 PM, Jeff Cody wrote: >> From: Fam Zheng >> >> The implementation is similar to the 'qemu-img convert'. In the >> beginning of the job, offloaded copy is attempted. If it fails, further >> I/O will go through the existing bounc

[Qemu-block] [PATCH 0/2] block: Fix dst reading after tail copy offloading

2018-07-03 Thread Fam Zheng
Qcow2 allocates new clusters after the end of the file. If it is the destinaton of copy offloading, we must adjust dst->bs->total_sectors. Otherwise, further reads will drop to the "beyond EOF" code path and return zeroes, which problem is caught by iotests 222. Follow the logic in the normal writ

[Qemu-block] [PATCH 1/2] block: Fix dst total_sectors after copy offloading

2018-07-03 Thread Fam Zheng
This was noticed by the new image fleecing tests case 222. The issue is apparent and we should just do the same right things as in bdrv_aligned_pwritev. Reported-by: John Snow Signed-off-by: Fam Zheng --- block/io.c | 4 1 file changed, 4 insertions(+) diff --git a/block/io.c b/block/io.c

[Qemu-block] [PATCH 2/2] block: Add copy offloading trace points

2018-07-03 Thread Fam Zheng
A few trace points that can help reveal what is happening in a copy offloading I/O path. Signed-off-by: Fam Zheng --- block/file-posix.c | 2 ++ block/io.c | 2 ++ block/iscsi.c | 3 +++ block/trace-events | 6 ++ 4 files changed, 13 insertions(+) diff --git a/block/file-posix.