Public bug reported:

The example starts with a basic call to run an image (it doesn't matter
which image)

$ sudo qemu-system-s390x -enable-kvm -cpu host -nographic -m 512 -hda 
ubuntu-18.04-server-cloudimg-s390x.img
LOADPARM=[........]
Using virtio-blk.
Using SCSI scheme.
....
[    0.451611] Linux version 4.15.0-42-generic (buildd@bos02-s390x-018) (gcc 
version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #45-Ubuntu SMP Thu Nov 15 19:29:11 UTC 
2018 (Ubuntu 4.15.0-42.45-generic 4.15.18)
[    0.451617] setup.289988: Linux is running under KVM in 64-bit mode

Adding an empty virtio-scsi-ccw breaks it (different than x86)

$ sudo qemu-system-s390x -enable-kvm -cpu host -nographic -m 512 -hda 
ubuntu-18.04-server-cloudimg-s390x.img -device 
virtio-scsi-ccw,id=virtio-scsi-test
LOADPARM=[........]
Using virtio-scsi.
! Cannot locate virtio-scsi device !

It seems to be the bootloader code insisting on a device to scan, since
skipping bootloader makes it work

$ sudo qemu-system-s390x -enable-kvm -cpu host -nographic -m 512 -hda 
ubuntu-18.04-server-cloudimg-s390x.img -device 
virtio-scsi-ccw,id=virtio-scsi-test -kernel /boot/vmlinuz-4.15.0-42-generic 
-initrd /boot/initrd.img-4.15.0-42-generic
[    0.475643] Linux version 4.15.0-42-generic (buildd@bos02-s390x-018) (gcc 
version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #45-Ubuntu SMP Thu Nov 15 19:29:11 UTC 
2018 (Ubuntu 4.15.0-42.45-generic 4.15.18)
[    0.475649] setup.289988: Linux is running under KVM in 64-bit mode

Those are just examples, but it seems you can add a disk-less virtio-scsi-ccw 
to any to make it break.
We wondered about two things:
- the behavior is different than with virtio-scsi-pci
- one use case could want add a virtio-scsi-ccw with some explicit config to 
later hot-add devices right?

All of this could as well be intentional, but I wanted to report it in
case it is a bug for you as well.

Thanks @Rharper for finding and mentioning it

** Affects: qemu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1806823

Title:
  diskless virtio-scsi-ccw controller triggers an error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1806823/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to