]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Normalize MAC address in device conf when hotplugging a netdev
authorJim Fehlig <jfehlig@suse.com>
Wed, 27 May 2020 23:29:33 +0000 (17:29 -0600)
committerJim Fehlig <jfehlig@suse.com>
Wed, 3 Jun 2020 15:07:51 +0000 (09:07 -0600)
commitec07aad8f8a6ead8e9363c8deec4845edb5bf112
treeb8e8ebc09a1f91769520e65629ca50131eb1f411
parent8915c9cb1fee0089ae98ebecd8673e0d551b551e
libxl: Normalize MAC address in device conf when hotplugging a netdev

Similar to commits 55ce6564634 and 6c17606b7cc in the qemu driver, make
separate copies of persistent and live device config and normalize the MAC
address between the two. This avoids having different MAC address for the
persistent and live config, ensuring the device has the same address when
the persistent config takes affect after a VM restart.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/libxl/libxl_driver.c