From: Jason Wang <jasowang@redhat.com>
To: Cindy Lu <lulu@redhat.com>
Cc: mst@redhat.com, qemu-devel@nongnu.org
Subject: Re: [PATCH v15 1/4] vhost: expose function vhost_dev_has_iommu()
Date: Thu, 23 Mar 2023 11:48:27 +0800 [thread overview]
Message-ID: <CACGkMEsaCjmkvb6j_pWa7UM9_RPShEVzT27VOx-7H_MfSE45fQ@mail.gmail.com> (raw)
In-Reply-To: <20230321142327.749980-2-lulu@redhat.com>
On Tue, Mar 21, 2023 at 10:23 PM Cindy Lu <lulu@redhat.com> wrote:
>
> To support vIOMMU in vdpa, need to exposed the function
> vhost_dev_has_iommu, vdpa will use this function to check
> if vIOMMU enable.
>
> Signed-off-by: Cindy Lu <lulu@redhat.com>
It looks like you missed my acks for patches 1 - 3.
Thanks
> ---
> hw/virtio/vhost.c | 2 +-
> include/hw/virtio/vhost.h | 1 +
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
> index a266396576..fd746b085b 100644
> --- a/hw/virtio/vhost.c
> +++ b/hw/virtio/vhost.c
> @@ -107,7 +107,7 @@ static void vhost_dev_sync_region(struct vhost_dev *dev,
> }
> }
>
> -static bool vhost_dev_has_iommu(struct vhost_dev *dev)
> +bool vhost_dev_has_iommu(struct vhost_dev *dev)
> {
> VirtIODevice *vdev = dev->vdev;
>
> diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h
> index a52f273347..f7f10c8fb7 100644
> --- a/include/hw/virtio/vhost.h
> +++ b/include/hw/virtio/vhost.h
> @@ -336,4 +336,5 @@ int vhost_dev_set_inflight(struct vhost_dev *dev,
> struct vhost_inflight *inflight);
> int vhost_dev_get_inflight(struct vhost_dev *dev, uint16_t queue_size,
> struct vhost_inflight *inflight);
> +bool vhost_dev_has_iommu(struct vhost_dev *dev);
> #endif
> --
> 2.34.3
>
next prev parent reply other threads:[~2023-03-23 3:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 14:23 [PATCH v15 0/4] vhost-vdpa: add support for vIOMMU Cindy Lu
2023-03-21 14:23 ` [PATCH v15 1/4] vhost: expose function vhost_dev_has_iommu() Cindy Lu
2023-03-23 3:48 ` Jason Wang [this message]
2023-03-21 14:23 ` [PATCH v15 2/4] vhost_vdpa: fix the input in trace_vhost_vdpa_listener_region_del() Cindy Lu
2023-03-21 14:23 ` [PATCH v15 3/4] vhost-vdpa: Add check for full 64-bit in region delete Cindy Lu
2023-03-21 14:23 ` [PATCH v15 4/4] vhost-vdpa: Add support for vIOMMU Cindy Lu
2023-03-23 3:47 ` Jason Wang
2023-03-23 8:40 ` Cindy Lu
2023-03-24 2:49 ` Jason Wang
2023-03-24 2:59 ` Cindy Lu
2023-03-24 3:45 ` Jason Wang
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=CACGkMEsaCjmkvb6j_pWa7UM9_RPShEVzT27VOx-7H_MfSE45fQ@mail.gmail.com \
--to=jasowang@redhat.com \
--cc=lulu@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).