qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Fam Zheng <famz@redhat.com>
Cc: benoit.canet@irqsave.net, Jeff Cody <jcody@redhat.com>,
	qemu-devel@nongnu.org, armbru@redhat.com, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH for 2.1 0/2] Fix commit of oversized layer
Date: Thu, 10 Jul 2014 11:25:03 +0200	[thread overview]
Message-ID: <20140710092503.GB3919@noname.redhat.com> (raw)
In-Reply-To: <20140710084204.GB22070@T430.redhat.com>

Am 10.07.2014 um 10:42 hat Fam Zheng geschrieben:
> On Fri, 06/27 11:44, Kevin Wolf wrote:
> > In general, it feels like it would be the right thing to do, especially
> > considering the goal of operation categories in the final state, but on
> > the other hand it means that RESIZE would have to be excluded from
> > bs->backing_blocker, too, allowing standalone resize commands on backing
> > files. Not sure that this would be a good idea...
> 
> Is it really dangerous if we relax the backing_blocker on resize? In general, I
> expect the only critical category of operation is chain manipulation,
> particularly bdrv_swap.

I'm not completely sure about backing_blockers on resize, but I don't
think there's currently a way to make it safe, except if the image could
be safely removed from the backing chain altogether.

In any case, as long as block jobs don't set blockers on all images
they touch but rather just on the top-level one, allowing to resize
arbitrary nodes is dangerous because the block jobs can't cope with
BDSes changing their size in the middle of the operation.

> And speaking of bdrv_swap, in longer term, if we have the BlockBackend that can
> serve as a level of abstraction between BlockDriverState (the backend
> implementation) and its users (the backend consumers, like device), we can
> probably drop bdrv_swap() by updating the BB->BDS link.
> [...]
> Is this a good direction?

Yes, eventually we'll want to get rid of bdrv_swap() and just update
pointers instead. We're not quite there yet, though.

Kevin

  reply	other threads:[~2014-07-10  9:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-25 20:55 [Qemu-devel] [PATCH for 2.1 0/2] Fix commit of oversized layer Jeff Cody
2014-06-25 20:55 ` [Qemu-devel] [PATCH for 2.1 1/2] block: check for RESIZE blocker in the QMP command, not bdrv_truncate() Jeff Cody
2014-06-25 20:55 ` [Qemu-devel] [PATCH for 2.1 2/2] block: add qemu-iotest for resize base during live commit Jeff Cody
2014-06-25 22:08 ` [Qemu-devel] [PATCH for 2.1 0/2] Fix commit of oversized layer Eric Blake
2014-06-27  9:44 ` Kevin Wolf
2014-07-10  8:42   ` Fam Zheng
2014-07-10  9:25     ` Kevin Wolf [this message]
2014-07-10  9:48       ` Fam Zheng

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=20140710092503.GB3919@noname.redhat.com \
    --to=kwolf@redhat.com \
    --cc=armbru@redhat.com \
    --cc=benoit.canet@irqsave.net \
    --cc=famz@redhat.com \
    --cc=jcody@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).