Re: [PATCH 0/6] qemu: Fix cdrom as SCSI hostdev via -blockdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings Peter,

> Sent: Tuesday, October 20, 2020 at 2:54 PM
> From: "daggs" <daggs@xxxxxxx>
> To: "daggs" <daggs@xxxxxxx>
> Cc: "Peter Krempa" <pkrempa@xxxxxxxxxx>, libvir-list@xxxxxxxxxx
> Subject: Re: [PATCH 0/6] qemu: Fix cdrom as SCSI hostdev via -blockdev
>
> Greetings Peter,
>
> so apparently, the os I'm using in the vm comes with scsi virtio disabled in the kernel...
> will rebuild the os and report.
>
> thanks for all your work.
>
> Dagg.
>

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?

Thanks.

Dagg.





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux