[PATCH 0/6] qemu: Fix cdrom as SCSI hostdev via -blockdev
daggs
daggs at gmx.com
Sat Oct 24 06:28:57 UTC 2020
Greetings Peter,
> Sent: Thursday, October 22, 2020 at 8:54 PM
> From: "daggs" <daggs at gmx.com>
> To: "Peter Krempa" <pkrempa at redhat.com>
> Cc: libvir-list at redhat.com
> Subject: Re: [PATCH 0/6] qemu: Fix cdrom as SCSI hostdev via -blockdev
>
> Greetings Peter,
>
> I've built the os with scsi virtio, now I do see the cdrom, see:
> # ls -lia /sys/bus/scsi/devices
> total 0
> 7017 drwxr-xr-x 2 root root 0 Oct 22 2020 .
> 7015 drwxr-xr-x 4 root root 0 Oct 22 2020 ..
> 18874 lrwxrwxrwx 1 root root 0 Oct 22 2020 0:0:0:0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:06:00.0/0000:07:01.0/virtio2/host0/target0:0:0/0:0:0:0
> 17468 lrwxrwxrwx 1 root root 0 Oct 22 2020 host0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:06:00.0/0000:07:01.0/virtio2/host0
> 18051 lrwxrwxrwx 1 root root 0 Oct 22 2020 host1 -> ../../../devices/pci0000:00/0000:00:1f.2/ata1/host1
> 18099 lrwxrwxrwx 1 root root 0 Oct 22 2020 host2 -> ../../../devices/pci0000:00/0000:00:1f.2/ata2/host2
> 18147 lrwxrwxrwx 1 root root 0 Oct 22 2020 host3 -> ../../../devices/pci0000:00/0000:00:1f.2/ata3/host3
> 18195 lrwxrwxrwx 1 root root 0 Oct 22 2020 host4 -> ../../../devices/pci0000:00/0000:00:1f.2/ata4/host4
> 18243 lrwxrwxrwx 1 root root 0 Oct 22 2020 host5 -> ../../../devices/pci0000:00/0000:00:1f.2/ata5/host5
> 18291 lrwxrwxrwx 1 root root 0 Oct 22 2020 host6 -> ../../../devices/pci0000:00/0000:00:1f.2/ata6/host6
> 18835 lrwxrwxrwx 1 root root 0 Oct 22 2020 target0:0:0 -> ../../../devices/pci0000:00/0000:00:1e.0/0000:06:00.0/0000:07:01.0/virtio2/host0/target0:0:0
>
> I've tested with 6.7.0 and 6.8.0 + your patchset, in both the cdrom is visible, in 6.7.0, the guest's dmesg is filled with theses errors:
> [ 57.510366] sr 0:0:0:0: ioctl_internal_command return code = 8000002
> [ 57.510400] sr 0:0:0:0: Sense Key : 0xb [current]
> [ 57.510403] sr 0:0:0:0: ASC=0x0 ASCQ=0x6
>
> every few seconds these lines are added to the log.
> with 6.8.0 + your patchset, I see these outputs only few times in the boot process. here is the dmesg: https://dpaste.com/F32A9B92H
> I've inserted a audio cd and expected the os ui to detected it but it didn't. I assume there is another bug there.
> anything I can do to help hunting this bug?
looks like I was mistaken, I see the same prints in 6.8.0 + your patchset. this means it is not related, so question is, is this a livbirt misconfig or qemu bug?
any insights?
Thanks,
Dagg.
More information about the libvir-list
mailing list