]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Use unsigned long long for timer frequency
authorJiri Denemark <jdenemar@redhat.com>
Wed, 11 Nov 2020 15:50:16 +0000 (16:50 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 11 Nov 2020 22:06:23 +0000 (23:06 +0100)
commit3c7c7cd4d82c2f9a5a59bbd06673b8cd1eb23ce3
treeda9a9fc6b98d3f79975a7def6016081d8360fc0a
parent0c841f9b70211966feb66742d6d7fcb377bf6e91
conf: Use unsigned long long for timer frequency

Although the code in qemuProcessStartValidateTSC works as if the
timer frequency was already unsigned long long (by using an appropriate
temporary variable), the virDomainTimerDef structure actually defines
frequency as unsigned long, which is not guaranteed to be 64b.

Fixes support for frequencies higher than 2^32 - 1 on 32b systems.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c