All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wang <jasowang@redhat.com>
To: Peter Xu <peterx@redhat.com>, "Tian, Kevin" <kevin.tian@intel.com>
Cc: Jean-Philippe Brucker <Jean-Philippe.Brucker@arm.com>,
	Auger Eric <eric.auger@redhat.com>,
	"Michael S . Tsirkin" <mst@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	Eugenio Perez Martin <eperezma@redhat.com>
Subject: Re: [PATCH] vhost: Unbreak SMMU and virtio-iommu on dev-iotlb support
Date: Wed, 10 Feb 2021 12:05:33 +0800	[thread overview]
Message-ID: <5cfe00bd-7cc3-c1f7-8dfd-3781a289357a@redhat.com> (raw)
In-Reply-To: <20210208182607.GA68242@xz-x1>


On 2021/2/9 上午2:26, Peter Xu wrote:
> Kevin,
>
> On Mon, Feb 08, 2021 at 07:03:08AM +0000, Tian, Kevin wrote:
>> It really depends on the definition of dev-iotlb in this context. To me the
>> fact that virtio-iommu needs to notify the kernel for updating split cache
>> is already sort of dev-iotlb semantics, regardless of whether it's delivered
>> through a iotlb message or dev-iotlb message in a specific implementation. 😊
> Yeah maybe it turns out that we'll just need to implement dev-iotlb for
> virtio-iommu.


Note that on top of device-IOTLB, device may choose to implement an 
IOMMU which support #PF. In this case, dev-iotlb semantic is not a must. 
(Or it can co-operate with things like ATS if driver wants)

Virtio will probably provide this feature in the future.

Thanks


>
> I am completely fine with that and I'm never against it. :) I was throwing out
> a pure question only, because I don't know the answer.
>
> My question was majorly based on the fact that dev-iotlb and iotlb messages
> really look the same; it's not obvious then whether it would always matter a
> lot when in a full emulation environment.
>
> One example is current vhost - vhost previously would work without dev-iotlb
> (ats=on) because trapping UNMAP would work too for vhost to work.  It's also
> simply because at least for VT-d the driver needs to send both one dev-iotlb
> and one (probably same) iotlb message for a single page invalidation.  The
> dev-iotlb won't help a lot in full emulation here but instead it slows thing
> down a little bit (QEMU has full knowledge as long as it receives either of the
> message).
>
> Thanks,
>



  reply	other threads:[~2021-02-10  4:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 19:12 [PATCH] vhost: Unbreak SMMU and virtio-iommu on dev-iotlb support Peter Xu
2021-02-05  3:16 ` Jason Wang
2021-02-05  8:33   ` Auger Eric
2021-02-05 15:31     ` Peter Xu
2021-02-07  9:04       ` Tian, Kevin
2021-02-07 14:47         ` Peter Xu
2021-02-08  7:03           ` Tian, Kevin
2021-02-08 18:26             ` Peter Xu
2021-02-10  4:05               ` Jason Wang [this message]
2021-02-08 20:23           ` Auger Eric
2021-02-08  3:21       ` Jason Wang
2021-02-08 18:37         ` Peter Xu
2021-02-08 20:30           ` Auger Eric
2021-02-09  3:12           ` Jason Wang
2021-02-09 17:15             ` Auger Eric
2021-02-09 19:46               ` Peter Xu

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=5cfe00bd-7cc3-c1f7-8dfd-3781a289357a@redhat.com \
    --to=jasowang@redhat.com \
    --cc=Jean-Philippe.Brucker@arm.com \
    --cc=eperezma@redhat.com \
    --cc=eric.auger@redhat.com \
    --cc=kevin.tian@intel.com \
    --cc=mst@redhat.com \
    --cc=peterx@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 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.