Re: [RFC v2 5/7] vhost: Add x-vhost-enable-shadow-vq qmp

2021-02-18 Thread Eugenio Perez Martin
On Wed, Feb 17, 2021 at 7:47 PM Eugenio Perez Martin wrote: > > On Wed, Feb 17, 2021 at 4:26 PM Stefan Hajnoczi wrote: > > > > On Tue, Feb 09, 2021 at 04:37:55PM +0100, Eugenio Pérez wrote: > > > diff --git a/qapi/net.json b/qapi/net.json > > > index c31748c87f..a1cdffb0f9 100644 > > > --- a/qapi

Re: [RFC v2 5/7] vhost: Add x-vhost-enable-shadow-vq qmp

2021-02-17 Thread Eugenio Perez Martin
On Wed, Feb 17, 2021 at 4:26 PM Stefan Hajnoczi wrote: > > On Tue, Feb 09, 2021 at 04:37:55PM +0100, Eugenio Pérez wrote: > > diff --git a/qapi/net.json b/qapi/net.json > > index c31748c87f..a1cdffb0f9 100644 > > --- a/qapi/net.json > > +++ b/qapi/net.json > > @@ -77,6 +77,28 @@ > > ## > > { 'co

Re: [RFC v2 5/7] vhost: Add x-vhost-enable-shadow-vq qmp

2021-02-17 Thread Stefan Hajnoczi
On Tue, Feb 09, 2021 at 04:37:55PM +0100, Eugenio Pérez wrote: > diff --git a/qapi/net.json b/qapi/net.json > index c31748c87f..a1cdffb0f9 100644 > --- a/qapi/net.json > +++ b/qapi/net.json > @@ -77,6 +77,28 @@ > ## > { 'command': 'netdev_del', 'data': {'id': 'str'} } > > +## > +# @x-vhost-enab

[RFC v2 5/7] vhost: Add x-vhost-enable-shadow-vq qmp

2021-02-09 Thread Eugenio Pérez
Command to enable shadow virtqueue looks like: { "execute": "x-vhost-enable-shadow-vq", "arguments": { "name": "dev0", "enable": true } } Signed-off-by: Eugenio Pérez --- qapi/net.json | 22 ++ hw/virtio/vhost.c | 6 ++ 2 files changed, 28 insertions(+) diff --git