]> git.proxmox.com Git - qemu-server.git/commit - PVE/API2/Qemu.pm
Include "-cpu" parameter with live-migration
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 7 Apr 2020 13:56:15 +0000 (15:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 7 Apr 2020 15:27:58 +0000 (17:27 +0200)
commit58c64ad5d9fe758c01aba885dc850f98a2a7c850
treef61813ba554de20fba0521b432425461023f29eb
parentb6d9b54b5b382bd4639f0f18a3d68bf41ecf1ea6
Include "-cpu" parameter with live-migration

This is required to support custom CPU models, since the
"cpu-models.conf" file is not versioned, and can be changed while a VM
using a custom model is running. Changing the file in such a state can
lead to a different "-cpu" argument on the receiving side.

This patch fixes this by passing the entire "-cpu" option (extracted
from /proc/.../cmdline) as a "qm start" parameter. Note that this is
only done if the VM to migrate is using a custom model (which we can
check just fine, since the <vmid>.conf *is* versioned with pending
changes), thus not breaking any live-migration directionality.

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