From: Marcelo Tosatti <mtosatti@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Jeff Cody <jcody@redhat.com>,
qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>,
Anthony Liguori <anthony@codemonkey.ws>,
Paolo Bonzini <pbonzini@redhat.com>,
Jason Baron <jbaron@redhat.com>
Subject: Re: [Qemu-devel] KVM Forum 2012 Block BoF minutes
Date: Sun, 18 Nov 2012 03:04:05 -0200 [thread overview]
Message-ID: <20121118050405.GA13172@amt.cnet> (raw)
In-Reply-To: <87pq3fat6e.fsf@blackfin.pond.sub.org>
On Thu, Nov 15, 2012 at 02:31:53PM +0100, Markus Armbruster wrote:
> Attendees:
>
> Kevin Wolf <kwolf@redhat.com>
> Stefan Hajnoczi <stefanha@redhat.com>
> Jeff Cody <jcody@redhat.com>
> Markus Armbruster <armbru@redhat.com>
>
> and a few people dropping in and out.
>
> Minutes are basically a TODO list. Could be a bit terse in places; if
> anything's unclear, please ask.
>
>
> Block layer data structure cleanup:
>
> - Split block backend off BlockDriverState
>
> - Turn block backend into a proper ADT (besides other good things, this
> makes it possible to replace its implementation by a test harness for
> unit testing of its customers)
>
> - Get rid of BlockDriverState opaque (driver private state), inherit the
> common part into driver state
>
> Convert open to QemuOpts (or perhaps QDict?)
>
> Avoid double open for probing (update: patches posted)
>
> Block jobs:
>
> - Rate limiting is broken in general (it works for the single
> BlockDriverState case)
>
> - Block jobs should be jobs: generally available instead of tied to a
> (single) BlockDriverState; get rid of the block job pointer in
> BlockDriverState
>
> - Migration should probably be a job
>
> Block migration needs to die after its replacement is ready
>
> BlockDriverState member in_use and DriveInfo member refcount are a mess:
>
> - in_use is used to avoid running certain things concurrently, but the
> rules are unclear, except they're clearly incomplete; possible rules
> could be about need for consistent views of image contents
block: enable in_use flag
Set block device in use during block migration, disallow drive_del and
bdrv_truncate for in use devices.
1) drive_del is not allowed because memory object used by block
streaming/migration can disappear.
2) bdrv_truncate changes device size, which the block migration code was
unable to handle at the time.
These are the rules (accordingly to the changeset). IIRC new rules have
been added (new uses for bdrv_in_use).
"Consistent views of image contents" is not defined.
Question: why are the rules "clearly incomplete" ?
> - refcount is only used together with in_use, and appears to be for
> avoiding premature deletion
Refcount is used to stop block auto deletion when device is unplugged
by the guest. If you can reach BlockDriverState and use its in_use
flag, then you can kill refcount.
next prev parent reply other threads:[~2012-11-18 5:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 13:31 [Qemu-devel] KVM Forum 2012 Block BoF minutes Markus Armbruster
2012-11-18 5:04 ` Marcelo Tosatti [this message]
2012-11-19 17:03 ` [Qemu-devel] BlockDriverState member in_use (was: KVM Forum 2012 Block BoF minutes) Markus Armbruster
2012-11-19 20:13 ` Marcelo Tosatti
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=20121118050405.GA13172@amt.cnet \
--to=mtosatti@redhat.com \
--cc=agraf@suse.de \
--cc=anthony@codemonkey.ws \
--cc=armbru@redhat.com \
--cc=jbaron@redhat.com \
--cc=jcody@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@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 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.