All of lore.kernel.org
 help / color / mirror / Atom feed
* VM madvise semantics
@ 2025-06-04 12:57 Thomas Hellström
  2025-06-04 14:26 ` Matthew Brost
  2025-06-04 14:32 ` Simona Vetter
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Hellström @ 2025-06-04 12:57 UTC (permalink / raw)
  To: Himal Prasad Ghimiray, Matthew Brost; +Cc: intel-xe

Hi!

I'm starting an email thread to move forward the questions Himal had on
the madvise semantics:

1) Whether to support an array of ops? 

IMO the VM_BIND implementation got very complicated due to this and the
needed rollback support. Perhaps due to single op splitting turning to
multiple ops it would've been hard to avoid that. Can we avoid
supporting an array of ops for madvise? If so I'd vote for single op.

2) Purgeability. If it's not implemented yet we shouldn't merge an uapi
for it, but ensure that it would at least be possible moving forward. 

3) Multi-device. In the spirit of the above I guess it makes sense if
UMD wants to select between VRAM and SRAM now to merge an interface
that supports *only* that. When we add multi-device support we could
perhaps add another op, or an extension to support agreed multi-device
semantics. Even if this means rolling back to Himal's original
suggestion of a preferred placement UAPI.

Thoughts?

Thomas


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

end of thread, other threads:[~2025-06-04 15:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-04 12:57 VM madvise semantics Thomas Hellström
2025-06-04 14:26 ` Matthew Brost
2025-06-04 14:32 ` Simona Vetter
2025-06-04 15:30   ` Thomas Hellström
2025-06-04 15:39     ` Simona Vetter

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.