Re: [PATCH v5 07/11] vfio: Support for RamDiscardMgr in the vIOMMU case

2021-02-16 Thread Alex Williamson
On Thu, 21 Jan 2021 12:05:36 +0100 David Hildenbrand wrote: > vIOMMU support works already with RamDiscardMgr as long as guests only > map populated memory. Both, populated and discarded memory is mapped > into &address_space_memory, where vfio_get_xlat_addr() will find that > memory, to create t

[PATCH v5 07/11] vfio: Support for RamDiscardMgr in the vIOMMU case

2021-01-21 Thread David Hildenbrand
vIOMMU support works already with RamDiscardMgr as long as guests only map populated memory. Both, populated and discarded memory is mapped into &address_space_memory, where vfio_get_xlat_addr() will find that memory, to create the vfio mapping. Sane guests will never map discarded memory (e.g., u