[PATCH 03/11] virtio_ring: Maintain a shadow copy of descriptors
Simon Glass
sjg at chromium.org
Mon Apr 11 20:35:17 CEST 2022
On Thu, 31 Mar 2022 at 04:10, Andrew Scull <ascull at 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 at 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 at chromium.org>
More information about the U-Boot
mailing list