[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 16/18] xen: automatically create XenBlockDevi
From: |
Anthony PERARD |
Subject: |
Re: [Qemu-devel] [PATCH v6 16/18] xen: automatically create XenBlockDevice-s |
Date: |
Wed, 19 Dec 2018 14:01:18 +0000 |
User-agent: |
Mutt/1.11.1 (2018-12-01) |
On Wed, Dec 19, 2018 at 12:43:24PM +0000, Paul Durrant wrote:
> > Kevin seems to say that this could be done without the _flat_confused
> > version. The flat_confused version seems to be useful just because
> > the key "cache.direct" is used earlier, and because everything in qdict
> > is a string.
>
> It could be, but there's a good reason for wanting everything as a string,
> and that is so that I can do a qdict_iter to generate my trace message. Also
> I really don't want to get too elaborate here... this is supposed to be
> mimicking what would normally come via a json blob, and that would start out
> as strings.
Mimic JSON ? Not really. JSON has types. If the toolstack wanted
cache.direct or read-only option on a blockdev, it will need to use the
bool type as string type will be rejected. The expected types when
issuing a QMP request can be found in "qapi/block-core.json", for the
command "blockdev-add".
Also, there is a comment on the qobject_input_visitor_new_flat_confused
function, it reads:
The block subsystem uses this function to visit its flat QDict with
possibly confused scalar types. It should not be used for anything
else, and it should go away once the block subsystem has been
cleaned up.
We might as well avoid using it right now, as it's easy to do so.
--
Anthony PERARD
- [Qemu-devel] [PATCH v6 09/18] xen: remove unnecessary code from dataplane/xen-block.c, (continued)
- [Qemu-devel] [PATCH v6 09/18] xen: remove unnecessary code from dataplane/xen-block.c, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 03/18] xen: introduce 'xen-block', 'xen-disk' and 'xen-cdrom', Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 01/18] xen: re-name XenDevice to XenLegacyDevice..., Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 08/18] xen: duplicate xen_disk.c as basis of dataplane/xen-block.c, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 04/18] xen: create xenstore areas for XenDevice-s, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 05/18] xen: add xenstore watcher infrastructure, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 17/18] MAINTAINERS: add myself as a Xen maintainer, Paul Durrant, 2018/12/17
- [Qemu-devel] [PATCH v6 16/18] xen: automatically create XenBlockDevice-s, Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 14/18] xen: add implementations of xen-block connect and disconnect functions..., Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 15/18] xen: add a mechanism to automatically create XenDevice-s..., Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 11/18] xen: remove 'XenBlkDev' and 'blkdev' names from dataplane/xen-block, Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 12/18] xen: remove 'ioreq' struct/varable/field names from dataplane/xen-block.c, Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 13/18] xen: purge 'blk' and 'ioreq' from function names in dataplane/xen-block.c, Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 18/18] xen: remove the legacy 'xen_disk' backend, Paul Durrant, 2018/12/17
[Qemu-devel] [PATCH v6 10/18] xen: add header and build dataplane/xen-block.c, Paul Durrant, 2018/12/17