Re: [PATCH 03/11] virtio_ring: Maintain a shadow copy of descriptors

2022-04-11 Thread Simon Glass
On Thu, 31 Mar 2022 at 04:10, Andrew Scull 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 n

[PATCH 03/11] virtio_ring: Maintain a shadow copy of descriptors

2022-03-31 Thread Andrew Scull
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: Andr