]> xenbits.xensource.com Git - libvirt.git/commit
libxlDomainAttachNetDevice: release actual deivce and remove hostdev when fail
authorChunyan Liu <cyliu@suse.com>
Mon, 21 Mar 2016 08:11:36 +0000 (16:11 +0800)
committerJim Fehlig <jfehlig@suse.com>
Fri, 25 Mar 2016 22:57:33 +0000 (16:57 -0600)
commite633644229c7735363ee290a5f831a5a5b7999e3
tree8841000a951feaa32240b469699a600f82509b0d
parentb41261f0108fa098bc11920a0a8e0d3e10c44967
libxlDomainAttachNetDevice: release actual deivce and remove hostdev when fail

When AttachNetDevice failed, should call networkReleaseActualDevice
to release actual device, and if actual device is hostdev, should
remove the hostdev from vm->def->hostdevs.

Signed-off-by: Chunyan Liu <cyliu@suse.com>
src/libxl/libxl_driver.c