Dear Conny, Good day!
Just now, our Libvirt folks pointed out a "usability mess" for the design of differentiating address based on devices classes (real | virtual). The complaints are mainly about the "s390-squash-mcss" property and restrictions to define virtual device in the special 0xFE css, and define real devices in non-0xFE. We have some discussions internally, but failed to get it cleared. As we think this is about the architecture, so hereby, I as a representative, forward our arguments and questions here to ask you for help: 1. What benifit do we get to put virtual devices in css 0xFE? 2. Since we could accept squashing virtual devices into css 0, can we accept to not trading 0xFE as a special css? So that we can remove the restrictions for the cssid validation for each type of device. Even we could drop the s390-squash-mcss, and just allow the user to define any device in any css. 3. If we have to keep the squash property, then when squashing, it's somewhat like "I don't care for the cssid", so is it possible for us to not check the cssid in the device devno? Libvirt would be benifited with this when automatically generating the addresses. 4. Error message for devno conflict is not helpful. For the following case: -M s390-ccw-virtio,s390-squash-mcss=on \ -drive file=/dev/disk/by-path/ccw-0.0.3f3e,if=none,id=drive-virtio-disk1,format=raw \ -device virtio-blk-ccw,devno=fe.0.2222,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1,bootindex=0 \ -device vfio-ccw,devno=0.0.2222,sysfsdev=/sys/devices/css0/0.0.013f/6dfd3ec5-e8b3-4e18-a6fe-57bc9eceb920 \ We get this error message: qemu-system-s390x: -device vfio-ccw,devno=0.0.2222,sysfsdev=/sys/devices/css0/0.0.013f/6dfd3ec5-e8b3-4e18-a6fe-57bc9eceb920: Device 0.0.2222 already exists By checking 0.0.2222 from the cmd line, users can not find out the root cause - squashing, easily. So, if we have to keep the squash property, we could improve this message by adding a hint. To sum up, we got the feeling that, this mess is not only for Libvirt but also for QEMU cmd line users. And we are wondering if there is some way to improve it. Thanks, -- Dong Jia Shi