Discussion of the implementations of VIRTIO specification
 help / color / mirror / Atom feed
* [virtio-dev] Packed ring only devices clarification
@ 2021-01-29  8:38 Maxime Coquelin
  2021-01-29  9:04 ` Jason Wang
  2021-01-29 15:58 ` [virtio-dev] " Michael S. Tsirkin
  0 siblings, 2 replies; 6+ messages in thread
From: Maxime Coquelin @ 2021-01-29  8:38 UTC (permalink / raw)
  To: virtio-dev, Michael S. Tsirkin, Jason Wang

Hello,

In the Virtqueues section of the Virtio specification [0], it is
mentioned that:

"
Every driver and device supports either the Packed or the Split
Virtqueue format, or both.
"

However, it seems there is no way to differentiate whether the device
supports both split and packed ring, or only packed ring by reading
its features bits.

In the case of live-migration, it means we would need to trigger a
features negotiation before the migration is initiated, and see if
FEATURES_OK device status bit is set. Still, we could not be sure a
failure would be due to the device supporting only packed ring.

Is my understanding correct?

If so, maybe we would need to introduce a new feature bit for split
ring, and also a feature bit indicating compliance with the new spec
version for backward compatibility:

VIRTIO_F_VERSION_1_2(39):
    This indicates compliance with Virtio version 1.2 specification.

VIRTIO_F_RING_SPLIT(40):
    This feature indicates support for the split virtqueue layout as
    described in 2.6 Split Virtqueues.


Best regards,
Maxime

[0]:
https://docs.oasis-open.org/virtio/virtio/v1.1/csprd01/virtio-v1.1-csprd01.html#x1-230005


---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-01  7:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-29  8:38 [virtio-dev] Packed ring only devices clarification Maxime Coquelin
2021-01-29  9:04 ` Jason Wang
2021-01-29  9:14   ` Maxime Coquelin
2021-02-01  7:02     ` Jason Wang
2021-01-29 15:58 ` [virtio-dev] " Michael S. Tsirkin
2021-02-01  7:04   ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox