From: Peter Xu <peterx@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: qemu-devel@nongnu.org,
Alex Williamson <alex.williamson@redhat.com>,
Eric Auger <eric.auger@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
Yi Liu <yi.l.liu@intel.com>
Subject: Re: [PATCH v3] intel-iommu: Document iova_tree
Date: Mon, 9 Jan 2023 14:34:17 -0500 [thread overview]
Message-ID: <Y7xsOWxcGqW4difr@x1n> (raw)
In-Reply-To: <CACGkMEvZh0EdwL5+3o-BNDPez12eAO8YUNq8vWyv0ZruBfw_GA@mail.gmail.com>
On Mon, Jan 09, 2023 at 05:08:59PM +0800, Jason Wang wrote:
> Either:
>
> 1) cropping in the memory core and remove the iommu cropping like
> smmu_unmap_notifier_range()
>
> or
>
> 2) don't corp in the memory core but move smmu_unmap_notifier_range to
> the core (still, a kind of implicit crop, since the function was
> called without a range)
>
> 2) seems safer but I can go with 1 if you insist.
No strong opinion here, thanks for checking! I'm not exactly sure how
it'll look like at last with 2), but so far either way sounds good.
[...]
> > It depends on how to define the "real invalidations". There're two places
> > that can enlarge an invalidation, here I wanted to reference the case where
> > e.g. a PSI is enlarged to a DSI. Even if that's the driver behavior, I
> > wanted to make sure the qemu iommu notifiees are aware of the facts that
> > unmap can be bigger than what it used to have mapped.
>
> Ok, I think the confusion came from "real invalidations". I think
> there's no way for the device to know about the real invalidation
> since the driver can enlarge it at will? If this is true, is this
> better to say the UNAMP messages can cover the range that is not
> mapped?
I can reword, will repost soon.
Thanks,
--
Peter Xu
prev parent reply other threads:[~2023-01-09 19:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-06 22:13 [PATCH v3] intel-iommu: Document iova_tree Peter Xu
2022-12-07 9:51 ` Eric Auger
2022-12-23 7:48 ` Jason Wang
2022-12-23 16:26 ` Peter Xu
2022-12-26 4:09 ` Jason Wang
2023-01-03 17:30 ` Peter Xu
2023-01-04 4:15 ` Jason Wang
2023-01-04 15:14 ` Peter Xu
2023-01-09 9:08 ` Jason Wang
2023-01-09 19:34 ` Peter Xu [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=Y7xsOWxcGqW4difr@x1n \
--to=peterx@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=eric.auger@redhat.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yi.l.liu@intel.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 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.