#1005150 In qemu -m q35, udisks says Error probing device: Error sending ATA command IDENTIFY PACKET DEVICE to '/dev/sr0': Unexpected sense data returned

Package:
qemu-system-x86
Source:
qemu
Description:
QEMU full system emulation binaries (x86)
Submitter:
"Trent W. Buck"
Date:
2022-02-08 00:18:04 UTC
Severity:
minor
#1005150#5
Date:
2022-02-08 00:15:04 UTC
From:
To:
When testing udisks2 in qemu, there is a problem scanning the (virtual) optical drive.
A minimal test script & output is attached.
The error looks like this:

    udisksd[316]: Error probing device: Error sending ATA command IDENTIFY PACKET DEVICE to '/dev/sr0': Unexpected sense data returned:
                  0000: 70 00 05 00  00 00 00 0a  00 58 00 01  21 04 00 00    p........X..!...
                  0010: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
                   (g-io-error-quark, 0)

I do not know if the problem here is qemu, or udisks2.
I am testing from Debian 11, thus using qemu 1:5.2+dfsg-11+deb11u1.
I am testing with Debian 11, thus using udisks2 2.9.2-2+deb11u1
Since this issue happens with -M q35 but not -M pc, I am initially assigning this to qemu.

Boring background:

    I have a script that, on disc insert, asks a server "is this disc allowed?", and
    depending on the reply, either allows or ejects the disc.
    That is behaving a bit at the udev layer on qemu (but not physical hardware).
    I'm not sure if this udisks error is related, but
    it seems like a good idea to eliminate it as the first step.