]> git.baikalelectronics.ru Git - uboot.git/commit
Merge branch '2022-06-08-virtio-harden-and-test-vring' into next
authorTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 15:15:28 +0000 (11:15 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 15:15:28 +0000 (11:15 -0400)
commita26b0bab2e0c26b0afac99638eba0099c22b04be
tree7967ae792497f0618b8ec3e2c22a0721cbcdae29
parent27de7eac987627a29e64dcdb4e927ddbafe162c3
parent0987308be0ee4b266f18243f6efe6888db14d8eb
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.