Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-04-11 Thread Kevin Wolf
Am 11.04.2017 um 15:14 hat Eric Blake geschrieben: > On 04/11/2017 07:05 AM, Kevin Wolf wrote: > > Note that job completion/cancellation aren't synchronous QMP commands. > > The job works something like this, where '...' means that the VM can run > > and submit new writes etc.: > > > > 1. Start

Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-04-11 Thread Eric Blake
On 04/11/2017 07:05 AM, Kevin Wolf wrote: > > Note that job completion/cancellation aren't synchronous QMP commands. > The job works something like this, where '...' means that the VM can run > and submit new writes etc.: > > 1. Start job: mirror_start > ... > 2. Bulk has completed:

Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-04-11 Thread Kevin Wolf
Am 03.04.2017 um 22:29 hat John Snow geschrieben: > On 03/24/2017 08:34 AM, Kashyap Chamarthy wrote: > > While debugging some other issue, I happened to stumble across an old > > libvirt commit[*] that adds support for pivot (whether QEMU should > > switch to a target copy or not) operation as a

Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-04-03 Thread John Snow
On 03/24/2017 08:34 AM, Kashyap Chamarthy wrote: > While debugging some other issue, I happened to stumble across an old > libvirt commit[*] that adds support for pivot (whether QEMU should > switch to a target copy or not) operation as a result of issuing QMP > 'block-job-cancel' to a

Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-04-03 Thread Stefan Hajnoczi
On Tue, Mar 28, 2017 at 05:29:34PM +0200, Kashyap Chamarthy wrote: > On Tue, Mar 28, 2017 at 09:49:40AM -0500, Eric Blake wrote: > > On 03/24/2017 07:34 AM, Kashyap Chamarthy wrote: > > > While debugging some other issue, I happened to stumble across an old > > > libvirt commit[*] that adds

Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-03-28 Thread Kashyap Chamarthy
On Tue, Mar 28, 2017 at 09:49:40AM -0500, Eric Blake wrote: > On 03/24/2017 07:34 AM, Kashyap Chamarthy wrote: > > While debugging some other issue, I happened to stumble across an old > > libvirt commit[*] that adds support for pivot (whether QEMU should > > switch to a target copy or not)

Re: [Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-03-28 Thread Eric Blake
On 03/24/2017 07:34 AM, Kashyap Chamarthy wrote: > While debugging some other issue, I happened to stumble across an old > libvirt commit[*] that adds support for pivot (whether QEMU should > switch to a target copy or not) operation as a result of issuing QMP > 'block-job-cancel' to a

[Qemu-block] Making QMP 'block-job-cancel' transactionable

2017-03-24 Thread Kashyap Chamarthy
While debugging some other issue, I happened to stumble across an old libvirt commit[*] that adds support for pivot (whether QEMU should switch to a target copy or not) operation as a result of issuing QMP 'block-job-cancel' to a 'drive-mirror' (in libvirt parlance, "block copy"). In the libvirt