]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Store all iothread's 'poll*' attributes as unsigned long long
authorPeter Krempa <pkrempa@redhat.com>
Wed, 19 Apr 2023 10:38:45 +0000 (12:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 May 2023 12:32:47 +0000 (14:32 +0200)
commit6f9d66c828141562fc11ef490db89ac8d1625789
tree58755b33d1cdc9e083273c61a17e298124fdef73
parent6d8dcc644c15b70c1ded8cccdc8645a3883c2053
qemu: Store all iothread's 'poll*' attributes as unsigned long long

Convert the internal types to unsigned long long. Luckily we can also
covert the external types too:

 - 'qemuDomainSetIOThreadParams' can accept both _UINT and _ULLONG by
   converting to 'virTypedParamsGetUnsigned'

 - querying is handled via the bulk stats API which is flexible:
    - we use virTypedParamListAddUnsigned to use the bigger type only if
      necessary
    - most users don't even notice because the bindings abstract the
      data types

Apart from the code modifications we also improve the documentation
which was missing for the setters.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-domain.h
src/libvirt-domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c