]> git.proxmox.com Git - qemu-server.git/commit
fix: qemu: uninitialized value in multiplication
authorAlwin Antreich <a.antreich@proxmox.com>
Wed, 24 Jul 2019 13:56:43 +0000 (15:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 24 Jul 2019 16:41:03 +0000 (18:41 +0200)
commit22ea69ca65b14bf0caf64dd0daf5c6bff675edf8
tree4d3aea20a18d59ac542e31d6803968a5152d78a7
parent6af313f6e48a64d63a83151efba313bb8e5ebc50
fix: qemu: uninitialized value in multiplication

A generated VM with default values does not set the memory key in the
configuration. Hence the size of the state file for a suspend had only
the default size of the state itself and not in addition twice the
configured memory.

The patch uses the static defaults from the JSON schema if the memory
key is not set.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/QemuConfig.pm