From: Jason Wang <jasowang@redhat.com>
To: Viktor Prutyanov <viktor@daynix.com>
Cc: mst@redhat.com, qemu-devel@nongnu.org, yan@daynix.com,
yuri.benditovich@daynix.com
Subject: Re: [PATCH v4 2/2] virtio-net: pass Device-TLB enable/disable events to vhost
Date: Fri, 26 May 2023 12:07:53 +0800 [thread overview]
Message-ID: <CACGkMEubdZ2=jp8wWJbd1_evqNjH7HWy1EskVgvpPkEeACJF4w@mail.gmail.com> (raw)
In-Reply-To: <20230525125742.4190-3-viktor@daynix.com>
On Thu, May 25, 2023 at 8:58 PM Viktor Prutyanov <viktor@daynix.com> wrote:
>
> If vhost is enabled for virtio-net, Device-TLB enable/disable events
> must be passed to vhost for proper IOMMU unmap flag selection.
>
> Signed-off-by: Viktor Prutyanov <viktor@daynix.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Thanks
> ---
> hw/net/virtio-net.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
> index 6df6b7329d..30497c00b5 100644
> --- a/hw/net/virtio-net.c
> +++ b/hw/net/virtio-net.c
> @@ -3951,6 +3951,7 @@ static void virtio_net_class_init(ObjectClass *klass, void *data)
> vdc->vmsd = &vmstate_virtio_net_device;
> vdc->primary_unplug_pending = primary_unplug_pending;
> vdc->get_vhost = virtio_net_get_vhost;
> + vdc->toggle_device_iotlb = vhost_toggle_device_iotlb;
> }
>
> static const TypeInfo virtio_net_info = {
> --
> 2.21.0
>
next prev parent reply other threads:[~2023-05-26 4:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-25 12:57 [PATCH v4 0/2] vhost: register and change IOMMU flag depending on ATS state Viktor Prutyanov
2023-05-25 12:57 ` [PATCH v4 1/2] vhost: register and change IOMMU flag depending on Device-TLB state Viktor Prutyanov
2023-05-26 4:07 ` Jason Wang
2023-05-25 12:57 ` [PATCH v4 2/2] virtio-net: pass Device-TLB enable/disable events to vhost Viktor Prutyanov
2023-05-26 4:07 ` Jason Wang [this message]
2023-06-22 22:54 ` [PATCH v4 0/2] vhost: register and change IOMMU flag depending on ATS state Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CACGkMEubdZ2=jp8wWJbd1_evqNjH7HWy1EskVgvpPkEeACJF4w@mail.gmail.com' \
--to=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=viktor@daynix.com \
--cc=yan@daynix.com \
--cc=yuri.benditovich@daynix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).