From: Paolo Bonzini <pbonzini@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Fam Zheng <famz@redhat.com>,
qemu-devel@nongnu.org, dietmar@proxmox.com, imain@redhat.com,
Stefan Hajnoczi <stefanha@redhat.com>,
xiawenc@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH v4 2/8] block: add basic backup support to block driver
Date: Wed, 22 May 2013 11:54:55 +0200 [thread overview]
Message-ID: <519C95EF.8080303@redhat.com> (raw)
In-Reply-To: <20130522093802.GA2541@dhcp-200-207.str.redhat.com>
Il 22/05/2013 11:38, Kevin Wolf ha scritto:
>> +
>> + DPRINTF("brdv_co_backup_cow done C%" PRId64 "\n", start);
>> + }
>> +
>> +out:
>> + if (bounce_buffer) {
>> + qemu_vfree(bounce_buffer);
>> + }
>> +
>> + cow_request_end(&cow_request);
>> +
>> + qemu_co_rwlock_unlock(&job->flush_rwlock);
>> +
>> + return ret;
>> +}
>> +
>> +static void coroutine_fn backup_before_write_notify(Notifier *notifier,
>> + void *opaque)
>> +{
>> + BdrvTrackedRequest *req = opaque;
>> + backup_do_cow(req->bs, req->sector_num, req->nb_sectors);
>> +}
>
> I don't think you can ignore errors here. Not sure if we can stop the VM
> and resume later or something like that, but if we can't, the backup
> will be invalid and we must fail the job.
Yes, there is rerror/werror machinery for jobs that this patch is not using.
Paolo
next prev parent reply other threads:[~2013-05-22 9:55 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-16 8:36 [Qemu-devel] [PATCH v4 0/8] block: drive-backup live backup command Stefan Hajnoczi
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 1/8] block: add bdrv_add_before_write_notifier() Stefan Hajnoczi
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 2/8] block: add basic backup support to block driver Stefan Hajnoczi
2013-05-22 9:38 ` Kevin Wolf
2013-05-22 9:54 ` Paolo Bonzini [this message]
2013-05-22 9:56 ` Kevin Wolf
2013-05-22 13:58 ` Stefan Hajnoczi
2013-05-22 14:08 ` Kevin Wolf
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 3/8] block: add drive-backup QMP command Stefan Hajnoczi
2013-05-16 19:11 ` Eric Blake
2013-05-22 9:53 ` Kevin Wolf
2013-05-22 14:33 ` Stefan Hajnoczi
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 4/8] qemu-iotests: add 055 drive-backup test case Stefan Hajnoczi
2013-05-22 11:19 ` Kevin Wolf
2013-05-22 14:34 ` Stefan Hajnoczi
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 5/8] blockdev: rename BlkTransactionStates to singular Stefan Hajnoczi
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 6/8] blockdev: add DriveBackup transaction Stefan Hajnoczi
2013-05-16 19:21 ` Eric Blake
2013-05-17 7:02 ` Stefan Hajnoczi
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 7/8] blockdev: add Abort transaction Stefan Hajnoczi
2013-05-16 19:23 ` Eric Blake
2013-05-16 8:36 ` [Qemu-devel] [PATCH v4 8/8] qemu-iotests: test 'drive-backup' transaction in 055 Stefan Hajnoczi
2013-05-19 16:47 ` [Qemu-devel] [PATCH v4 0/8] block: drive-backup live backup command Richard W.M. Jones
2013-05-19 19:30 ` Paolo Bonzini
2013-05-19 19:41 ` Richard W.M. Jones
2013-05-22 11:23 ` Kevin Wolf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=519C95EF.8080303@redhat.com \
--to=pbonzini@redhat.com \
--cc=dietmar@proxmox.com \
--cc=famz@redhat.com \
--cc=imain@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=xiawenc@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.