]> 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)
committerJim Fehlig <jfehlig@suse.com>
Thu, 17 Sep 2015 14:59:13 +0000 (08:59 -0600)
commit56945e1374bd254148643d76a98fba9be67fba15
treed1e42d7a97ce480e01405f52b651377c139d9f9d
parent636a99058758a0447482f3baad94de8de3ab1151
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>
src/libxl/libxl_driver.c