]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Generate memory device aliases according to slot number
authorPeter Krempa <pkrempa@redhat.com>
Tue, 1 Nov 2016 05:21:36 +0000 (06:21 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 10 Nov 2016 16:36:55 +0000 (17:36 +0100)
commitb7798a07f93e015cade95297b2bc4eadbb7cce27
tree053d28ce7a41c606402b57fc4a9621a89338ef9d
parentce1ee02a25c046f176c265e7fd920e7c4afb2d06
qemu: Generate memory device aliases according to slot number

The memory device alias needs to be treated as machine ABI as qemu is
using it in the migration stream for section labels. To simplify this
generate the alias from the slot number unless an existing broken
configuration is detected.

With this patch the aliases are predictable and even certain
configurations which would not be migratable previously are fixed.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1359135
src/qemu/qemu_alias.c
src/qemu/qemu_alias.h
src/qemu/qemu_hotplug.c
tests/qemuxml2argvdata/qemuxml2argv-memory-hotplug-dimm-addr.args