]> xenbits.xensource.com Git - libvirt.git/commit
qemu: process: detect if dimm aliases are broken on reconnect
authorPeter Krempa <pkrempa@redhat.com>
Mon, 31 Oct 2016 15:49:49 +0000 (16:49 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 10 Nov 2016 16:36:55 +0000 (17:36 +0100)
commit93d9ff3da0eab9676c52ea1bc0302162cdf440c0
tree2529ec82d3bdf6c6b8849ebe27ae6bd85cd2fe90
parent810e9a80618f73a22b13af3d8be8d1136b977ca7
qemu: process: detect if dimm aliases are broken on reconnect

Detect on reconnect to a running qemu VM whether the alias of a
hotpluggable memory device (dimm) does not match the dimm slot number
where it's connected to. This is necessary as qemu is actually
considering the alias as machine ABI used to connect the backend object
to the dimm device.

This will require us to keep them consistent so that we can reliably
restore them on migration. In some situations it was currently possible
to create a mismatched configuration and qemu would refuse to restore
the migration stream.

To avoid breaking existing VMs we'll need to keep the old algorithm
though.
src/qemu/qemu_domain.h
src/qemu/qemu_process.c