aboutsummaryrefslogtreecommitdiff
path: root/qemu-keymap.c
diff options
context:
space:
mode:
authorFiona Ebner <f.ebner@proxmox.com>2024-04-29 16:19:34 +0200
committerKevin Wolf <kwolf@redhat.com>2024-06-10 11:05:43 +0200
commit10b1e09ed3c40baf9fe074e0c70a7a3b783839ff (patch)
treec51df7fc615b15555ea904ae33890c7c241f937f /qemu-keymap.c
parent365911b182017f05122b88a574477ff945ae91ab (diff)
downloadqemu-10b1e09ed3c40baf9fe074e0c70a7a3b783839ff.zip
qemu-10b1e09ed3c40baf9fe074e0c70a7a3b783839ff.tar.gz
qemu-10b1e09ed3c40baf9fe074e0c70a7a3b783839ff.tar.bz2
block/copy-before-write: use uint64_t for timeout in nanoseconds
rather than the uint32_t for which the maximum is slightly more than 4 seconds and larger values would overflow. The QAPI interface allows specifying the number of seconds, so only values 0 to 4 are safe right now, other values lead to a much lower timeout than a user expects. The block_copy() call where this is used already takes a uint64_t for the timeout, so no change required there. Fixes: 6db7fd1ca9 ("block/copy-before-write: implement cbw-timeout option") Reported-by: Friedrich Weber <f.weber@proxmox.com> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Message-ID: <20240429141934.442154-1-f.ebner@proxmox.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-keymap.c')
0 files changed, 0 insertions, 0 deletions