All of lore.kernel.org
 help / color / mirror / Atom feed
* [virtio-dev] queue_enable vs QueueReady
@ 2020-05-28 13:06 Jason Wang
  2020-05-28 14:00 ` Stefan Hajnoczi
  2020-06-01  6:01 ` [virtio-dev] " Michael S. Tsirkin
  0 siblings, 2 replies; 7+ messages in thread
From: Jason Wang @ 2020-05-28 13:06 UTC (permalink / raw)
  To: Michael S. Tsirkin, Virtio-Dev

Hi:

I found ambiguity in the virtio specification:

In PCI part, it describes the queue_enable as:

The driver uses this to selectively prevent the device from executing 
requests from this virtqueue. 1 - enabled; 0 - disabled.

In MMIO part, it describes the QueueReady as:

Writing one (0x1) to this register notifies the device that it can 
execute requests from this virtual queue. Reading from this register 
returns the last value written to it. Both read and write accesses apply 
to the queue selected by writing to QueueSel.

If I understand this correctly, they have the same meaning, but the 
driver requirements section looks conflict:

PCI said: The driver MUST NOT write a 0 to queue_enable.

MMIO said:

To stop using the queue the driver MUST write zero (0x0) to this 
QueueReady and MUST read the value back to ensure synchronization.

So we can't disable a queue via queue_enable but QueueReady. Any reason 
for such inconsistency?

Thanks


---------------------------------------------------------------------
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] 7+ messages in thread

end of thread, other threads:[~2020-06-02  6:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 13:06 [virtio-dev] queue_enable vs QueueReady Jason Wang
2020-05-28 14:00 ` Stefan Hajnoczi
2020-05-29  2:57   ` Jason Wang
2020-06-01  6:01 ` [virtio-dev] " Michael S. Tsirkin
2020-06-02  2:57   ` Jason Wang
2020-06-02  4:20     ` Michael S. Tsirkin
2020-06-02  6:46       ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.