From: Anthony PERARD <anthony.perard@citrix.com>
To: Bruce Rogers <brogers@suse.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
sstabellini@kernel.org, kwolf@redhat.com, mreitz@redhat.com,
armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/2] xen: add xen disk naming for use in monitor
Date: Wed, 13 Jun 2018 12:46:02 +0100 [thread overview]
Message-ID: <20180613114602.GC2165@perard.uk.xensource.com> (raw)
In-Reply-To: <20180612235103.12633-2-brogers@suse.com>
On Tue, Jun 12, 2018 at 05:51:02PM -0600, Bruce Rogers wrote:
> Provide monitor naming of xen disks, including associating an
> attached dev_id for a BlockBackend which has legacy_dev set.
> Currently, only xen disks have legacy_dev set to true.
>
> Signed-off-by: Bruce Rogers <brogers@suse.com>
> ---
> block/block-backend.c | 5 ++++-
> hw/block/xen_disk.c | 15 +++++++++++++++
> include/hw/xen/xen.h | 2 ++
> stubs/xen-common.c | 5 +++++
> 4 files changed, 26 insertions(+), 1 deletion(-)
>
> diff --git a/block/block-backend.c b/block/block-backend.c
> index d55c328736..db39dfe867 100644
> --- a/block/block-backend.c
> +++ b/block/block-backend.c
> @@ -23,6 +23,7 @@
> #include "qemu/option.h"
> #include "trace.h"
> #include "migration/misc.h"
> +#include "hw/xen/xen.h"
>
> /* Number of coroutines to reserve per attached device model */
> #define COROUTINE_POOL_RESERVATION 64
> @@ -895,7 +896,9 @@ char *blk_get_attached_dev_id(BlockBackend *blk)
> {
> DeviceState *dev;
>
> - assert(!blk->legacy_dev);
> + if (blk->legacy_dev) {
> + return xen_blk_get_attached_dev_id(blk->dev);
> + }
> dev = blk->dev;
>
> if (!dev) {
Hi Bruce,
Thanks for your patches!
But I don't think that the right way to go. We probably needs to
qdevifie xen_disk instead. This is point out by the numerous TODO about
"qdevified", and this very old mail:
https://lists.nongnu.org/archive/html/qemu-devel/2016-09/msg07902.html
Thanks,
--
Anthony PERARD
next prev parent reply other threads:[~2018-06-13 11:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-12 23:51 [Qemu-devel] [PATCH 0/2] xen: add block resize infrastructure Bruce Rogers
2018-06-12 23:51 ` [Qemu-devel] [PATCH 1/2] xen: add xen disk naming for use in monitor Bruce Rogers
2018-06-13 11:46 ` Anthony PERARD [this message]
2018-06-13 12:13 ` Bruce Rogers
2018-06-12 23:51 ` [Qemu-devel] [PATCH 2/2] xen: add block resize support for xen disks Bruce Rogers
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=20180613114602.GC2165@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=armbru@redhat.com \
--cc=brogers@suse.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=sstabellini@kernel.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).