From: "Michael S. Tsirkin" <mst@redhat.com>
To: Halil Pasic <pasic@linux.ibm.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-devel@nongnu.org, qemu-stable@nongnu.org,
Jakob Naucke <Jakob.Naucke@ibm.com>
Subject: Re: [PATCH 1/1] virtio: fix the condition for iommu_platform not supported
Date: Fri, 14 Jan 2022 13:07:58 -0500 [thread overview]
Message-ID: <20220114130741-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20220114170556.3859488d.pasic@linux.ibm.com>
On Fri, Jan 14, 2022 at 05:05:56PM +0100, Halil Pasic wrote:
> On Thu, 13 Jan 2022 20:54:52 +0100
> Halil Pasic <pasic@linux.ibm.com> wrote:
>
> > > > This is the very reason for which commit 7ef7e6e3b ("vhost: correctly
> > > > turn on VIRTIO_F_IOMMU_PLATFORM") for, which fences _F_ACCESS_PLATFORM
> > > > form the vhost device that does not need it, because on the vhost
> > > > interface it only means "I/O address translation is needed".
> > > >
> > > > This patch takes inspiration from 7ef7e6e3b ("vhost: correctly turn on
> > > > VIRTIO_F_IOMMU_PLATFORM"),
> > >
> > > Strange, I could not find this commit. Did you mean f7ef7e6e3b?
> > >
> >
> > Right! Copy-paste error.
> >
> >
>
> Should I spin a v2 to correct this?
>
>
> Sorry for the hunk below. I wanted to post the whole patch in question,
> then deleted it, but left some leftovers. Another copy-paste error. Grrr
Yes pls.
> >
> > static void *vhost_memory_map(struct vhost_dev *dev, hwaddr addr,
> > @@ -765,6 +772,9 @@ static int vhost_dev_set_features(struct vhost_dev *dev,
> > if (enable_log) {
> > features |= 0x1ULL << VHOST_F_LOG_ALL;
> > }
> > + if (!vhost_dev_has_iommu(dev)) {
> > + features &= ~(0x1ULL << VIRTIO_F_IOMMU_PLATFORM);
> > + }
> > r = dev->vhost_ops->vhost_set_features(dev, features);
> > if (r < 0) {
> > VHOST_OPS_DEBUG("vhost_set_features failed");
> >
> > > > and uses the same condition for detecting the
prev parent reply other threads:[~2022-01-14 18:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 16:51 [PATCH 1/1] virtio: fix the condition for iommu_platform not supported Halil Pasic
2022-01-13 17:11 ` Michael S. Tsirkin
2022-01-13 19:54 ` Halil Pasic
2022-01-14 16:05 ` Halil Pasic
2022-01-14 18:07 ` Michael S. Tsirkin [this message]
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=20220114130741-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=Jakob.Naucke@ibm.com \
--cc=kwolf@redhat.com \
--cc=pasic@linux.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.