[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v2 04/13] vhost: Add x-vhost-enable-shadow-vq qmp
From: |
Eric Blake |
Subject: |
Re: [RFC v2 04/13] vhost: Add x-vhost-enable-shadow-vq qmp |
Date: |
Tue, 16 Mar 2021 08:37:27 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
On 3/15/21 2:48 PM, Eugenio Pérez wrote:
> Command to enable shadow virtqueue looks like:
>
> { "execute": "x-vhost-enable-shadow-vq", "arguments": { "name": "dev0",
> "enable": true } }
>
> Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
> ---
> qapi/net.json | 22 ++++++++++++++++++++++
> hw/virtio/vhost.c | 6 ++++++
> 2 files changed, 28 insertions(+)
>
> diff --git a/qapi/net.json b/qapi/net.json
> index c31748c87f..4c5f65d021 100644
> --- a/qapi/net.json
> +++ b/qapi/net.json
> @@ -77,6 +77,28 @@
> ##
> { 'command': 'netdev_del', 'data': {'id': 'str'} }
>
> +##
> +# @x-vhost-enable-shadow-vq:
> +#
> +# Use vhost shadow virtqueue.
> +#
> +# @name: the device name of the VirtIO device
> +#
> +# @enable: true to use he alternate shadow VQ notification path
> +#
> +# Returns: Error if failure, or 'no error' for success. Not found if vhost
> is not enabled.
> +#
> +# Since: 6.0
> +#
> +# Example:
> +#
> +# -> { "execute": "x-vhost-enable-shadow-vq", "arguments": { "name":
> "virtio-net", "enable": false } }
Long lines; please wrap to keep under 80 columns.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- [RFC v2 00/13] vDPA software assisted live migration, Eugenio Pérez, 2021/03/15
- [RFC v2 01/13] virtio: Add virtio_queue_is_host_notifier_enabled, Eugenio Pérez, 2021/03/15
- [RFC v2 02/13] vhost: Save masked_notifier state, Eugenio Pérez, 2021/03/15
- [RFC v2 03/13] vhost: Add VhostShadowVirtqueue, Eugenio Pérez, 2021/03/15
- [RFC v2 04/13] vhost: Add x-vhost-enable-shadow-vq qmp, Eugenio Pérez, 2021/03/15
- Re: [RFC v2 04/13] vhost: Add x-vhost-enable-shadow-vq qmp,
Eric Blake <=
- [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Eugenio Pérez, 2021/03/15
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Jason Wang, 2021/03/16
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Eugenio Perez Martin, 2021/03/16
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Jason Wang, 2021/03/16
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Eugenio Perez Martin, 2021/03/17
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Jason Wang, 2021/03/17
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Eugenio Perez Martin, 2021/03/18
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Jason Wang, 2021/03/18
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Eugenio Perez Martin, 2021/03/18
- Re: [RFC v2 05/13] vhost: Route guest->host notification through shadow virtqueue, Eugenio Perez Martin, 2021/03/18