[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 4/9] {hmp, hw/pvrdma}: Expose device internal
From: |
Yuval Shaia |
Subject: |
Re: [Qemu-devel] [PATCH v4 4/9] {hmp, hw/pvrdma}: Expose device internals via monitor interface |
Date: |
Sun, 10 Mar 2019 10:06:36 +0200 |
User-agent: |
Mutt/1.11.3 (2019-02-01) |
>
> [...]
> > diff --git a/hw/rdma/rdma_hmp.c b/hw/rdma/rdma_hmp.c
> > new file mode 100644
> > index 0000000000..c5814473c5
> > --- /dev/null
> > +++ b/hw/rdma/rdma_hmp.c
> > @@ -0,0 +1,30 @@
> > +/*
> > + * RDMA device: Human Monitor interface
>
> The file name and this comment are a bit akward. Yes, you create
> TYPE_RDMA_STATS_PROVIDER for use in HMP info rdma, but there's
> absolutely nothing HMP-related in this file. Same for rdma_hmp.h below.
>
> Call them rdma_stats.c and rdma_stats.h?
Renamed to rdma.h and rdma.c, wo knows what other things might be added in
the future.
>
> > + *
> > + * Copyright (C) 2018 Oracle
> > + * Copyright (C) 2018 Red Hat Inc
> > + *
> > + * Authors:
> > + * Yuval Shaia <address@hidden>
> > + *
> > + * This work is licensed under the terms of the GNU GPL, version 2 or
> > later.
> > + * See the COPYING file in the top-level directory.
> > + *
> > + */
> > +
> > +#include "qemu/osdep.h"
> > +#include "hw/rdma/rdma_hmp.h"
> > +#include "qemu/module.h"
> > +
> > +static const TypeInfo rdma_hmp_info = {
> > + .name = TYPE_RDMA_STATS_PROVIDER,
> > + .parent = TYPE_INTERFACE,
> > + .class_size = sizeof(RdmaStatsProviderClass),
> > +};
> > +
> > +static void rdma_hmp_register_types(void)
> > +{
> > + type_register_static(&rdma_hmp_info);
> > +}
> > +
> > +type_init(rdma_hmp_register_types)
>
> Also rename _hmp_ to _stats_.
Ditto.
>
- [Qemu-devel] [PATCH v4 0/9] Misc fixes to pvrdma device, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 2/9] hw/rdma: Introduce protected qlist, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 3/9] hw/rdma: Protect against concurrent execution of poll_cq, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 4/9] {hmp, hw/pvrdma}: Expose device internals via monitor interface, Yuval Shaia, 2019/03/03
- Re: [Qemu-devel] [PATCH v4 4/9] {hmp, hw/pvrdma}: Expose device internals via monitor interface, Marcel Apfelbaum, 2019/03/07
- Re: [Qemu-devel] [PATCH v4 4/9] {hmp, hw/pvrdma}: Expose device internals via monitor interface, Markus Armbruster, 2019/03/08
- [Qemu-devel] [PATCH v4 7/9] hw/pvrdma: Delete unneeded function argument, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 5/9] hw/rdma: Free all MAD receive buffers when device is closed, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 8/9] hw/pvrdma: Delete pvrdma_exit function, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 9/9] hw/pvrdma: Unregister from shutdown notifier when device goes down, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 1/9] hw/rdma: Switch to generic error reporting way, Yuval Shaia, 2019/03/03
- [Qemu-devel] [PATCH v4 6/9] hw/rdma: Free all receive buffers when QP is destroyed, Yuval Shaia, 2019/03/03