Re: [Qemu-devel] [PATCH] fix: unrealize virtio device if we fail to hotplug it

2017-11-03 Thread Stefan Hajnoczi
On Tue, Oct 31, 2017 at 04:03:03PM +0800, linzhecheng wrote: > If we fail to hotplug virtio-blk device and then suspend > or shutdown VM, qemu is likely to crash. > > Re-production steps: > 1. Run VM named vm001 > 2. Create a virtio-blk.xml which contains wrong configurations: > > > > >

[Qemu-devel] [PATCH] fix: unrealize virtio device if we fail to hotplug it

2017-10-31 Thread linzhecheng
If we fail to hotplug virtio-blk device and then suspend or shutdown VM, qemu is likely to crash. Re-production steps: 1. Run VM named vm001 2. Create a virtio-blk.xml which contains wrong configurations: 3. Run command : virsh attach-device vm001 virtio-blk.xml error: Failed to attach