Skip to contentSkip to conversation

virtio-blk: What's up with VIRTIO_BLK_T_GET_ID (8)?

virtio-dev Jan Kiszka 2 participants 2 messages Nov 30, 2019 – Dec 2, 2019 2 messages not in the archive

lore
Share & tools
lore

Jan Kiszka

author
#2 lore raw
In reply to a message not in the archive
Quoted 14 lines · Stefan Hajnoczi
Quoted 6 lines · Cornelia Huck

I see the request type in $SUBJECT implemented in both Linux and QEMU, but I can't find it in the standard.

If we believe that getting a s/n is useful, we should spec it; otherwise, if we consider it just a legacy request type, it wouldn't hurt to mention it in the legacy section.

It's not a legacy request type.

Alexey Zaytev documented it in 2012:

https://lists.linuxfoundation.org/pipermail/virtualization/2012-December/022313.html

Quoted 8 lines

It was in the VIRTIO <1.0 spec:

https://github.com/rustyrussell/virtio-spec/blob/master/virtio-spec.lyx

I don't understand why it wasn't part of VIRTIO 1.0... :/

It's worth sending a patch to add the request type to the spec again.

What happened with this? I was already searching for weired queue corruptions in my implementation when I suddenly got this unspecified request type.

How should this be added? With a feature bit? Or just document the given reality (mandatory)?

Jan

Signature · 6 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
#3 lore raw
Quoted 24 lines · Jan Kiszka
Quoted 14 lines · Stefan Hajnoczi
Quoted 6 lines · Cornelia Huck

I see the request type in $SUBJECT implemented in both Linux and QEMU, but I can't find it in the standard.

If we believe that getting a s/n is useful, we should spec it; otherwise, if we consider it just a legacy request type, it wouldn't hurt to mention it in the legacy section.

It's not a legacy request type.

Alexey Zaytev documented it in 2012:

https://lists.linuxfoundation.org/pipermail/virtualization/2012-December/022313.html

Quoted 8 lines

It was in the VIRTIO <1.0 spec:

https://github.com/rustyrussell/virtio-spec/blob/master/virtio-spec.lyx

I don't understand why it wasn't part of VIRTIO 1.0... :/

It's worth sending a patch to add the request type to the spec again.

Quoted 6 lines

What happened with this? I was already searching for weired queue corruptions in my implementation when I suddenly got this unspecified request type.

How should this be added? With a feature bit? Or just document the given reality (mandatory)?

I have sent a patch to add it. Let's document it as-is since it has been widely supported for years.

A new feature bit wouldn't help in this case since existing drivers already use the command. Devices that don't support the command respond with BLK_S_UNSUPP.

Stefan