From: Tom Rini <trini@konsulko.com>
Date: Wed, 8 Jun 2022 15:15:28 +0000 (-0400)
Subject: Merge branch '2022-06-08-virtio-harden-and-test-vring' into next
X-Git-Tag: v2025.01-rc5-pxa1908~1353^2~24
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=c0e63bf46848d573b3ef86d5796f8f993c316ed6;p=u-boot.git

Merge branch '2022-06-08-virtio-harden-and-test-vring' into next

To quote the author:
Make the virtio ring code resilient against corruption of the buffers
shared with the device.

It follows the example of Linux by keeping a private copy of the
descriptors and metadata for state tracking and only ever writing to the
descriptors that are shared with the device. I was able to test these
hardening steps in the sandbox by simulating device writes to the
queues.
---

c0e63bf46848d573b3ef86d5796f8f993c316ed6