[libvirt] [PATCH v4 2/5] qemu monitor: add multithread compress parameters accessors

Peter Krempa pkrempa at redhat.com
Wed Mar 23 13:00:01 UTC 2016


On Fri, Mar 18, 2016 at 15:45:39 +0100, Jiri Denemark wrote:
> On Fri, Mar 04, 2016 at 14:20:55 +0300, Nikolay Shirokovskiy wrote:
> > From: ShaoHe Feng <shaohe.feng at intel.com>
> > 
> > Signed-off-by: ShaoHe Feng <shaohe.feng at intel.com>
> > Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
> > ---
> >  src/qemu/qemu_monitor.c      |  22 +++++++++
> >  src/qemu/qemu_monitor.h      |  17 +++++++
> >  src/qemu/qemu_monitor_json.c | 110 +++++++++++++++++++++++++++++++++++++++++++
> >  src/qemu/qemu_monitor_json.h |   5 ++
> >  4 files changed, 154 insertions(+)
> > 
> > diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c
> > index 5e4461a..21c1df6 100644
> > --- a/src/qemu/qemu_monitor.c
> > +++ b/src/qemu/qemu_monitor.c

[...]

> > diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
> > index 28620b5..b28b431 100644
> > --- a/src/qemu/qemu_monitor.h
> > +++ b/src/qemu/qemu_monitor.h
> > @@ -469,6 +469,23 @@ int qemuMonitorGetMigrationCacheSize(qemuMonitorPtr mon,
> >  int qemuMonitorSetMigrationCacheSize(qemuMonitorPtr mon,
> >                                       unsigned long long cacheSize);
> >  
> > +typedef struct _qemuMonitorMigrationParameters qemuMonitorMigrationParameters;
> > +typedef qemuMonitorMigrationParameters *qemuMonitorMigrationParametersPtr;
> > +struct _qemuMonitorMigrationParameters {
> > +    unsigned int level_set : 1;
> > +    unsigned int threads_set : 1;
> > +    unsigned int dthreads_set : 1;

Also booleans are preferred in comparison to this approach.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160323/f68e6862/attachment-0001.sig>


More information about the libvir-list mailing list