qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] virtio: cosmetic tweaks
@ 2016-10-11  9:22 Ladi Prosek
  2016-10-11  9:22 ` [Qemu-devel] [PATCH 1/2] virtio: rename virtqueue_discard to virtqueue_unpop Ladi Prosek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ladi Prosek @ 2016-10-11  9:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: stefanha, mst

Just a trivial couple of patches addressing minor style issues.

Enforcing the correct order of operations (pop, unpop, push, rewind) with an assert,
which was another potential change discussed previously, would add a non-trivial
amount of code and is not worth the effort in my opinion. A simple linked-list of
VirtQueueElement would not be enough because these are not in the ownership of the
common virtio code. The effect of an out-of-order, yet valid, virtqueue_push would
need to be encoded in the linked list even though the element has been deallocated.
It's almost like maintaining a shadow available ring - doable but not justified at
the moment.

Ladi Prosek (2):
  virtio: rename virtqueue_discard to virtqueue_unpop
  virtio: make virtqueue_alloc_element static

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

end of thread, other threads:[~2016-10-14 15:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-11  9:22 [Qemu-devel] [PATCH 0/2] virtio: cosmetic tweaks Ladi Prosek
2016-10-11  9:22 ` [Qemu-devel] [PATCH 1/2] virtio: rename virtqueue_discard to virtqueue_unpop Ladi Prosek
2016-10-11  9:22 ` [Qemu-devel] [PATCH 2/2] virtio: make virtqueue_alloc_element static Ladi Prosek
2016-10-14 15:53 ` [Qemu-devel] [PATCH 0/2] virtio: cosmetic tweaks Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).