summary refs log tree commit diff stats
path: root/hw/intc/apic.c
diff options
context:
space:
mode:
authorAnton Nefedov <anton.nefedov@virtuozzo.com>2017-02-02 17:25:15 +0300
committerJeff Cody <jcody@redhat.com>2017-02-21 10:38:00 -0500
commit90ab48eb07d5d98b2fb81ced3c27bba828472569 (patch)
tree90537addc72baa02aae02135d6f298b4a6a72bf5 /hw/intc/apic.c
parentb1660997125099db2c0cd7f54f6664fbd93bad00 (diff)
downloadfocaccia-qemu-90ab48eb07d5d98b2fb81ced3c27bba828472569.tar.gz
focaccia-qemu-90ab48eb07d5d98b2fb81ced3c27bba828472569.zip
mirror: do not increase offset during initial zero_or_discard phase
If explicit zeroing out before mirroring is required for the target image,
it moves the block job offset counter to EOF, then offset and len counters
count the image size twice. There is no harm but stats are confusing,
specifically the progress of the operation is always reported as 99% by
management tools.

The patch skips offset increase for the first "technical" pass over the
image. This should not cause any further harm.

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1486045515-8009-1-git-send-email-den@openvz.org
CC: Jeff Cody <jcody@redhat.com>
CC: Kevin Wolf <kwolf@redhat.com>
CC: Max Reitz <mreitz@redhat.com>
CC: Eric Blake <eblake@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'hw/intc/apic.c')
0 files changed, 0 insertions, 0 deletions