-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-9.5
-
qemu-kvm-9.0.0-7.el9
-
Yes
-
None
-
Regression, CustomerScenariosInitiative
-
1
-
rhel-sst-virtualization-hwe
-
ssg_virtualization
-
20
-
22
-
200
-
False
-
-
None
-
Red Hat Enterprise Linux
-
zKVM CY24Q3
-
Pass
-
RegressionOnly
-
python3 ConfigTest.py --guestname=RHEL.9.5.0 --platform=s390x --testcase=virtio_fs_hotplug.plug.one_fs_source.with_repetition --clone=no
-
Proposed
-
-
s390x
-
None
What were you trying to do that didn't work?
Hot-unplug and hot-plug vhost-user-fs-ccw and mount it to see if the I/O is as expected
Please provide the package NVR for which bug is seen:
kernel version: kernel-5.14.0-447.el9.s390x
qemu version: qemu-kvm-9.0.0-2.el9.s390x
libvirt version: libvirt-10.0.0-7.el9.s390x
How reproducible:
100%
Steps to reproduce
- boot up guest without virtiofs device
- Running virtiofs daemon command
- /usr/libexec/virtiofsd --socket-path=/tmp/vhostqemu -o source=/home/virtiofs_test -o cache=auto
- hotplug the vhost-user-fs-ccw device
- {"execute": "chardev-add", "arguments": {"id": "char_virtiofs_fs", "backend": {"type": "socket", "data": {"addr": {"type": "unix", "data": {"path": "/tmp/vhostqemu"}}, "server": false}}}, "id": "hNeu2XwD"}
- {"execute": "device_add", "arguments": \{"id": "vufs_virtiofs_fs", "chardev": "char_virtiofs_fs", "tag": "myfs", "queue-size": 1024, "driver": "vhost-user-fs-ccw", "bus": "virtual-css"}
, "id": "g81TVOH9"}
- mount the divice and do simple I/O test
- mount -t virtiofs myfs /mnt/myfs
- dd if=/dev/urandom of=/mnt/myfs/test_file bs=1M count=200 oflag=direct
- md5sum /mnt/myfs/test_file
- unplug the vhost-user-fs-ccw device
- fuser -km /mnt/myfs
- umount /mnt/myfs
- rm -rf /mnt/myfs
- {"execute": "device_del", "arguments": \{"id": "vufs_virtiofs_fs"}
, "id": "fQhD033H"}
- {"execute": "chardev-remove", "arguments": \{"id": "char_virtiofs_fs"}
, "id": "3TqUdSKY"}
- Running virtiofs daemon command again
- /usr/libexec/virtiofsd --socket-path=/tmp/vhostqemu -o source=/home/virtiofs_test -o cache=auto
- hot plug the vhost-user-fs-ccw device again
- {"execute": "chardev-add", "arguments": {"id": "char_virtiofs_fs", "backend": {"type": "socket", "data": {"addr": {"type": "unix", "data": {"path": "/tmp/vhostqemu"}}, "server": false}}}, "id": "hNeu2XwD"}
- {"execute": "device_add", "arguments": \{"id": "vufs_virtiofs_fs", "chardev": "char_virtiofs_fs", "tag": "myfs", "queue-size": 1024, "driver": "vhost-user-fs-ccw", "bus": "virtual-css"}
, "id": "1TtPmAcA"}
Expected results
virtio-fs device could hostplug successfully
Actual results
QEMU 9.0.0 monitor - type 'help' for more information
(qemu) qemu-kvm: virtio_bus_set_host_notifier: unable to assign ioeventfd: -17
qemu-kvm: vhost VQ 0 notifier binding failed: 17
qemu-kvm: Error enabling host notifiers: 17
qemu-kvm: virtio_bus_set_host_notifier: unable to assign ioeventfd: -17
qemu-kvm: virtio_bus_start_ioeventfd: failed. Fallback to userspace (slower).
and the device is not able to mount
Additional info
[root@localhost ~]# [ 391.494776] SELinux: (dev virtiofs, type virtiofs) getxattr errno 4
- links to
-
RHSA-2024:131023 qemu-kvm bug fix and enhancement update