All of lore.kernel.org
 help / color / mirror / Atom feed
* mapping files for iommufd
@ 2024-08-12 18:09 Steven Sistare
  2024-08-12 18:40 ` Jason Gunthorpe
  0 siblings, 1 reply; 7+ messages in thread
From: Steven Sistare @ 2024-08-12 18:09 UTC (permalink / raw)
  To: Alex Williamson, Jason Gunthorpe; +Cc: iommu

I have been using QEMU to test legacy vfio vs iommufd compatibility vfio.
I find that backing guest memory with an ext4 file /root/guest.ram
succeeds for legacy but fails for iommufd, with EFAULT in
IOMMU_IOAS_MAP -> ... __get_user_pages -> check_vma_flags.  Ditto for a
hugetlbfs file.  This is with unmodified kernels, no live update changes.

Is this expected?

(a tmpfs file works fine, as does memory-backend-memfd).

- Steve

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

end of thread, other threads:[~2024-08-13 15:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 18:09 mapping files for iommufd Steven Sistare
2024-08-12 18:40 ` Jason Gunthorpe
2024-08-12 18:56   ` Steven Sistare
2024-08-12 21:05     ` Alex Williamson
2024-08-13 14:23       ` Steven Sistare
2024-08-13 14:36         ` Jason Gunthorpe
2024-08-13 15:13           ` Steven Sistare

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.