On Mon, Jul 09, 2018 at 22:56:47 -0500, Chris Venteicher wrote: > Renamed variable in CPUModelInfo such that > props_migratable_valid is true when properties in CPUModelInfo > have been updated to accurately indicate if property is / isn't > migratable. > > Property migratability is not returned directly in QMP messages but > rather is sometimes calculated within Libvirt by other means and then > stored in CPUModelInfo properties by Libvirt. props_migratable_valid is > set to true when this calculation has been done by Libvirt. > --- > src/qemu/qemu_capabilities.c | 10 +++++----- > src/qemu/qemu_monitor.c | 2 +- > src/qemu/qemu_monitor.h | 2 +- > 3 files changed, 7 insertions(+), 7 deletions(-) > ... > diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h > index 18b59be985..208a7f5d21 100644 > --- a/src/qemu/qemu_monitor.h > +++ b/src/qemu/qemu_monitor.h > @@ -1005,7 +1005,7 @@ struct _qemuMonitorCPUModelInfo { > char *name; > size_t nprops; > qemuMonitorCPUPropertyPtr props; > - bool migratability; > + bool props_migratable_valid; > }; I don't see a reason for renaming the variable. The new name is uglier and may be confusing in exactly the same way you found migratability to be confusing. Just add a comment which would explain that the migratability tells whether we can use the prop->migratable value to check if a particular feature is migratable. Jirka -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list