[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 28/29] qmp: add query-memdev
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v4 28/29] qmp: add query-memdev |
Date: |
Mon, 9 Jun 2014 15:32:57 +0200 |
On Mon, 09 Jun 2014 14:58:39 +0200
Paolo Bonzini <address@hidden> wrote:
> Il 09/06/2014 14:36, Igor Mammedov ha scritto:
> >> > +{ 'type': 'Memdev',
> >> > + 'data': {
> >> > + 'size': 'size',
> >> > + 'merge': 'bool',
> >> > + 'dump': 'bool',
> >> > + 'prealloc': 'bool',
> >> > + 'host-nodes': ['uint16'],
> >> > + 'policy': 'HostMemPolicy' }}
> >> > +
> >> > +##
> >> > +# @query-memdev:
> >> > +#
> >> > +# Returns information for all memory devices.
> >> > +#
> >> > +# Returns: a list of @Memdev.
> >> > +#
> >> > +# Since: 2.1
> >> > +##
> >> > +{ 'command': 'query-memdev', 'returns': ['Memdev'] }
> > Could we make it union, that returns MemdevRam + MemdevFile
> >
> > MemdevFile will have additional file-only specific properties.
> >
>
> Which are the file-only properties (in the current definition of Memdev)?
in current none, but for file backend exposing 'path' property might be useful
alternatively instead of union we could add 'type' and optional 'path' fields
to Memdev
>
> Paolo
>
--
Regards,
Igor
- [Qemu-devel] [PATCH v4 25/29] qapi: make string input visitor parse int list, (continued)
- [Qemu-devel] [PATCH v4 25/29] qapi: make string input visitor parse int list, Hu Tao, 2014/06/09
- [Qemu-devel] [PATCH v4 26/29] qapi: make string output visitor parse int list, Hu Tao, 2014/06/09
- [Qemu-devel] [PATCH v4 27/29] qom: introduce object_property_get_enum and object_property_get_uint16List, Hu Tao, 2014/06/09
- Re: [Qemu-devel] [PATCH v4 00/29] NUMA series and hostmem improvements, Michael S. Tsirkin, 2014/06/09
- [Qemu-devel] [PATCH v4 29/29] hmp: add info memdev, Hu Tao, 2014/06/09
- [Qemu-devel] [PATCH v4 28/29] qmp: add query-memdev, Hu Tao, 2014/06/09
Re: [Qemu-devel] [PATCH v4 28/29] qmp: add query-memdev, Eric Blake, 2014/06/09