]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: fix AttachDeviceConfig on hostdev type
authorChunyan Liu <cyliu@suse.com>
Thu, 17 Sep 2015 05:15:22 +0000 (01:15 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 22 Sep 2015 00:18:06 +0000 (20:18 -0400)
commite60d286b8e78383955a9c95e36ac0274e56ad305
treebb9a0f6e5c5a5b28b59819e146171d5ad4e41253
parenta45823210d44d1f27452a32e03d0e00f699c6d4e
libxl: fix AttachDeviceConfig on hostdev type

After attach-device a <hostdev> with --config, new device doesn't
show up in dumpxml and in guest.

To fix that, set dev->data.hostdev = NULL after work so that the
pointer is not freed, since vmdef has the pointer and still need it.

Signed-off-by: Chunyan Liu <cyliu@suse.com>
(cherry picked from commit 56945e1374bd254148643d76a98fba9be67fba15)
src/libxl/libxl_driver.c