]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
Include "-cpu" parameter with snapshots/suspend
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 7 Apr 2020 13:56:16 +0000 (15:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Apr 2020 15:27:58 +0000 (17:27 +0200)
commitea1c21108f774c3440704780bda335535f9a95a4
treeed4bf6c272cece9604f3660b13e609da6079eb63
parent58c64ad5d9fe758c01aba885dc850f98a2a7c850
Include "-cpu" parameter with snapshots/suspend

Just like with live-migration, custom CPU models might change after a
snapshot has been taken (or a VM suspended), which would lead to a
different QEMU invocation on rollback/resume.

Save the "-cpu" argument as a new "runningcpu" option into the VM conf
akin to "runningmachine" and use as override during rollback/resume.

No functional change with non-custom CPU types intended.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuConfig.pm
PVE/QemuServer.pm