commit | 594d2a6fa18883dfd3bc26a6a600da53a09c3e86 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Mon May 16 10:41:31 2022 +0000 |
committer | Tom Rini <trini@konsulko.com> | Wed Jun 08 09:24:03 2022 -0400 |
tree | 1ea7fac183ce3f796db30a3bca8267a5500c2e57 | |
parent | 83d15d3b959a9823f9a6a4c8ec26c1d76fe19d58 [diff] |
virtio_ring: Maintain a shadow copy of descriptors The shared descriptors should only be written by the guest driver, however, the device is still able to overwrite and corrupt them. Maintain a private shadow copy of the descriptors for the driver to use for state tracking, removing the need to read from the shared descriptors. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>