On Thu, 31 Mar 2022 at 04:10, Andrew Scull <[email protected]> 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 <[email protected]>
> ---
>  drivers/virtio/virtio_ring.c | 49 ++++++++++++++++++++++++------------
>  include/virtio_ring.h        | 10 ++++++++
>  2 files changed, 43 insertions(+), 16 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to