iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* userspace emulated smmu/vfio integration: how to trap updates to the table structures?
@ 2017-05-02  7:30 Auger Eric
  2017-05-02  7:53 ` Christoffer Dall
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Auger Eric @ 2017-05-02  7:30 UTC (permalink / raw)
  To: Will Deacon, Robin Murphy, Jean-Philippe Brucker
  Cc: iommu@lists.linux-foundation.org, kvm@vger.kernel.org,
	Christoffer Dall, Marc Zyngier, Alex Williamson, Peter Xu,
	Michael S. Tsirkin, Andrew Jones

Hi Will, Robin, Jean-Philippe,

I have been working on the integration between user-space emulated
SMMU-v3 and VFIO in QEMU. At the moment I fail identifying a proper easy
way to trap page table updates. This is requested to keep the host
translation structures consistent to guest translation structures.

On Intel VTD there is a so-called "caching mode" (CM, see VTD spec
paragraph 6.1) that forces the OS to explicitly invalidate caches
whenever it updates any remapping structure (updates to not-present or
present entries). Those invalidation commands are used to trap and
update host structures. This mode was devised for virtualization. I was
not able to find such "caching mode" on ARM SMMU. Is there any?

If not, do you have any other suggestion, I mean, besides the
virtio-based solution.

Thanks

Eric

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-05-09 13:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-02  7:30 userspace emulated smmu/vfio integration: how to trap updates to the table structures? Auger Eric
2017-05-02  7:53 ` Christoffer Dall
2017-05-02  8:13   ` Auger Eric
2017-05-02  8:17     ` Christoffer Dall
2017-05-02 15:22       ` Michael S. Tsirkin
2017-05-02 15:42         ` Robin Murphy
     [not found]           ` <0d310113-af68-2154-8dd3-a00b0c9a76ed-5wv7dgnIgG8@public.gmane.org>
2017-05-02 16:20             ` Michael S. Tsirkin
2017-05-02 17:01             ` Auger Eric
2017-05-02 15:26 ` Michael S. Tsirkin
2017-05-02 17:36 ` Michael S. Tsirkin
2017-05-09 13:48   ` Auger Eric

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).