block: add block-job-complete
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 18 Oct 2012 14:49:21 +0000 (16:49 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 24 Oct 2012 08:26:19 +0000 (10:26 +0200)
commitaeae883baf2377b714a41529f94905046fa058f3
treec62538f24a70deb5abebbcca2589cdd30d375738
parent65f4632243f526958aa1f6b3911add98329c3796
block: add block-job-complete

While streaming can be dropped as soon as it progressed through the whole
image, mirroring needs to be completed manually for two reasons: 1) so that
management knows exactly when the VM switches to the target; 2) because
for other use cases such as replication, we may leave the operation running
for the whole life of the virtual machine.

Add a new block job command that manually completes background operations.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
blockjob.c
blockjob.h
hmp-commands.hx
hmp.c
hmp.h
qapi-schema.json
qerror.h
qmp-commands.hx
trace-events