]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Convert 'priv->dbusVMStateIds' to a GSList
authorPeter Krempa <pkrempa@redhat.com>
Fri, 5 Feb 2021 09:48:51 +0000 (10:48 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Feb 2021 16:05:32 +0000 (17:05 +0100)
commit4ebc27865737e8bcda007a2e93c99f892c2b268b
tree27a1ce9ae82cc234aaad2c143fb54b6c49707650
parentb297714793f702cd7e42b46dc05e2cf66921ef5f
qemu: Convert 'priv->dbusVMStateIds' to a GSList

The conversion removes the use of virStringListAdd/virStringListRemove
which try to add dynamic properties to a string list which is really
inefficient.

Storing the dbus VMState ids in a GSList is pretty straightforward and
the slightly increased complexity of the code will be paid back by
removing the string list helpers later.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_dbus.c
src/qemu/qemu_dbus.h
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
src/qemu/qemu_slirp.c