]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Change fields in qemuBlockStats to 'unsigned'
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Aug 2019 09:32:28 +0000 (11:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Sep 2019 11:02:48 +0000 (13:02 +0200)
commitf385dd3a47894bceb47f15ac07092985ada68f1e
tree759fc13bc7001d014a6587fb70f9af163b3c33c3
parentf832801a5a76a84f4988780329a2c058cbbe968f
qemu: monitor: Change fields in qemuBlockStats to 'unsigned'

None of the fields actually return negative values. The internal
implementation of BlockAcctStats struct in qemu uses uint64_t and the
last place using -1 in libvirt was in the HMP monitor code which was
deleted.

Change the internal type to unsigned long long and ensure that all
public conversions don't overflow.

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