From: Kevin Wolf <kwolf@redhat.com>
To: Max Reitz <mreitz@redhat.com>
Cc: qemu-block@nongnu.org, eblake@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 5/6] qemu-iotests: Test setting WCE with qdev
Date: Mon, 4 Jul 2016 12:50:30 +0200 [thread overview]
Message-ID: <20160704105030.GD5399@noname.redhat.com> (raw)
In-Reply-To: <7b9f7996-dd79-f393-fcb7-97751cfa6dd0@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]
Am 02.07.2016 um 18:15 hat Max Reitz geschrieben:
> On 30.06.2016 16:13, Kevin Wolf wrote:
> > + echo "info block" \
> > + | run_qemu -drive "$drive,cache=$cache" \
> > + -device "ide-hd,drive=none0$wce" \
> > + | grep -e "Testing" -e "Cache mode"
>
> Something interesting: If you'd specify the drive through a node name,
> then the BDS tree has two BBs, one implicitly created with -drive (this
> one is named (automatically) and owned by the monitor) and an anonymous
> one for the device. If the device then overrides the cache mode, this
> will not be reflected in the monitor-owned BB. "info block" (and
> query-block) use the monitor BBs, however, so they'll report the BB on
> top of the BDS tree in question to be in whatever mode has been
> specified in -drive, whereas the mode the device uses for accessing that
> BDS tree actually has nothing to do with that.
>
> So the user has no way of inquiring the cache mode used by the device,
> and they actually get presented misleading information.
Yes, I know. Originally I wanted to add test cases that use node-name,
but then it occurred to me that this would be pretty pointless.
I'm not sure yet what the conclusion is. Change query-block to include
anonymous BBs that are owned by devices? A new query command? Add the
information to info qtree and whatever the QMP version of it is (if it
even exists)?
Kevin
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2016-07-04 10:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-30 14:13 [Qemu-devel] [PATCH v2 0/6] block: Move BB options from blockdev-add to qdev Kevin Wolf
2016-06-30 14:13 ` [Qemu-devel] [PATCH v2 1/6] block/qdev: Allow node name for drive properties Kevin Wolf
2016-07-02 15:00 ` Max Reitz
2016-07-02 15:33 ` Max Reitz
2016-07-04 10:43 ` Kevin Wolf
2016-07-05 14:41 ` Max Reitz
2016-06-30 14:13 ` [Qemu-devel] [PATCH v2 2/6] block/qdev: Allow configuring WCE with qdev properties Kevin Wolf
2016-07-02 15:36 ` Max Reitz
2016-06-30 14:13 ` [Qemu-devel] [PATCH v2 3/6] commit: Fix use of error handling policy Kevin Wolf
2016-07-02 15:39 ` Max Reitz
2016-06-30 14:13 ` [Qemu-devel] [PATCH v2 4/6] block/qdev: Allow configuring rerror/werror with qdev properties Kevin Wolf
2016-07-02 15:57 ` Max Reitz
2016-06-30 14:13 ` [Qemu-devel] [PATCH v2 5/6] qemu-iotests: Test setting WCE with qdev Kevin Wolf
2016-07-02 16:15 ` Max Reitz
2016-07-04 10:50 ` Kevin Wolf [this message]
2016-07-05 14:57 ` Max Reitz
2016-07-05 22:49 ` Eric Blake
2016-07-06 14:25 ` Kevin Wolf
2016-06-30 14:13 ` [Qemu-devel] [PATCH v2 6/6] block: Remove BB options from blockdev-add Kevin Wolf
2016-07-02 16:28 ` Max Reitz
2016-07-04 10:58 ` Kevin Wolf
2016-07-05 14:58 ` Max Reitz
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=20160704105030.GD5399@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=eblake@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).