Re: [PATCH v1] virtio-pci: store virtqueue size directly to a device

2019-12-23 Thread Denis Plotnikov
On 23.12.2019 17:31, Michael S. Tsirkin wrote: > On Mon, Dec 23, 2019 at 02:37:58PM +0300, Denis Plotnikov wrote: >> Currenly, the virtqueue size is saved to the proxy on pci writing and >> is read from the device pci reading. >> The virtqueue size is propagated later on form the proxy to the dev

Re: [PATCH v1] virtio-pci: store virtqueue size directly to a device

2019-12-23 Thread Michael S. Tsirkin
On Mon, Dec 23, 2019 at 02:37:58PM +0300, Denis Plotnikov wrote: > Currenly, the virtqueue size is saved to the proxy on pci writing and > is read from the device pci reading. > The virtqueue size is propagated later on form the proxy to the device > on virqueue enabling stage. > > This could be a

[PATCH v1] virtio-pci: store virtqueue size directly to a device

2019-12-23 Thread Denis Plotnikov
Currenly, the virtqueue size is saved to the proxy on pci writing and is read from the device pci reading. The virtqueue size is propagated later on form the proxy to the device on virqueue enabling stage. This could be a problem, if a guest, on the virtqueue configuration, sets the size and then