[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Qemu-devel] [RFC QEMU PATCH v2 10/10] qapi: extend 'query-memory-devices' to list devices of specified type
Haozhong Zhang <haozhong.zhang@xxxxxxxxx> writes: > Add an optional argument 'devtype' to 'query-memory-devices', which > is either 'dimm' or 'nvdimm'. If 'devtype' is missed or 'dimm', all > memory devices will be listed. If 'devtype' is 'nvdimm', only nvdimm > devices will be listed. Basically, the argument provides limited server-side filtering of the output of query-memory-devices. > Signed-off-by: Haozhong Zhang <haozhong.zhang@xxxxxxxxx> > --- > Cc: "Dr. David Alan Gilbert" <dgilbert@xxxxxxxxxx> > Cc: Xiao Guangrong <guangrong.xiao@xxxxxxxxxxxxxxx> > Cc: "Michael S. Tsirkin" <mst@xxxxxxxxxx> > Cc: Igor Mammedov <imammedo@xxxxxxxxxx> > Cc: Eric Blake <eblake@xxxxxxxxxx> > Cc: Markus Armbruster <armbru@xxxxxxxxxx> > --- > hmp.c | 3 +- > hw/mem/nvdimm.c | 38 ++++++++++++++++++++++++++ > hw/mem/pc-dimm.c | 71 > ++++++++++++++++++++++++++++-------------------- > include/hw/mem/nvdimm.h | 2 ++ > include/hw/mem/pc-dimm.h | 1 + > qapi-schema.json | 48 +++++++++++++++++++++++++++++--- > qmp.c | 13 +++++++-- > 7 files changed, 140 insertions(+), 36 deletions(-) Why is this server-side filtering worth the additional code and complexity? Why not simply filter in the client? What's your use case? [...] _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |