
11 Apr
2022
11 Apr
'22
8:35 p.m.
On Thu, 31 Mar 2022 at 04:10, Andrew Scull ascull@google.com wrote:
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
drivers/virtio/virtio_ring.c | 49 ++++++++++++++++++++++++------------ include/virtio_ring.h | 10 ++++++++ 2 files changed, 43 insertions(+), 16 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org