Hide Forgot
Hot-plugging a PCI serial device like this: (qemu) device_add id=ff,driver=pci-serial will print "Can't create serial device, empty char device" and exit. Not sure how easy to fix it is, though some of the infrastructure is there (realize methods can return an Error object, but PCI still uses the old init method).
pci init switched to realize in 2.3, so we can look into fixing that one now.
Looked at the code, seems the conversion to realize already fixed that one.
Hi, Gerd I tested this bug on old version qemu-kvm-rhev-2.1.2-23.el7_1.3.x86_64, got the following prompts: (qemu) device_add id=ff,driver=pci-serial Can't create serial device, empty char device Device initialization failed. Device 'pci-serial' could not be initialized And also tested on latest qemu-kvm-rhev-2.3.0-4.el7: (qemu) device_add id=ff,driver=pci-serial Can't create serial device, empty char device Device 'pci-serial' could not be initialized Gerd, is this the expected behaviour after fix? The qemu does not exit any more. But seems I did not reproduce it on old qemu-2.1.
Original report was for qemu-kvm, so you need 1.5.3 to reproduce I think.
Yes, tested on the qemu-kvm-1.5.3-86.el7_1.1.x86_64, hot-plug a serial device with no chardev option, the qemu exits. (qemu) device_add id=ff,driver=pci-serial Can't create serial device, empty char device /etc/qemu-ifdown: could not launch network script [root@localhost home]# So, according to comment 6 and comment 7, this bug is fixed in the latest qemu-kvm version.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2546.html