[libvirt] [PATCH] qemu: Fix potential crash when attaching/detaching cdrom or floppy