Re: [PATCH v4 04/11] vfio: Support for RamDiscardMgr in the !vIOMMU case

2021-01-15 Thread David Hildenbrand
On 14.01.21 16:57, David Hildenbrand wrote: > On 14.01.21 16:54, David Hildenbrand wrote: >> On 14.01.21 00:27, Alex Williamson wrote: >>> On Thu, 7 Jan 2021 14:34:16 +0100 >>> David Hildenbrand wrote: >>> Implement support for RamDiscardMgr, to prepare for virtio-mem support. Instead

Re: [PATCH v4 04/11] vfio: Support for RamDiscardMgr in the !vIOMMU case

2021-01-14 Thread David Hildenbrand
On 14.01.21 16:54, David Hildenbrand wrote: > On 14.01.21 00:27, Alex Williamson wrote: >> On Thu, 7 Jan 2021 14:34:16 +0100 >> David Hildenbrand wrote: >> >>> Implement support for RamDiscardMgr, to prepare for virtio-mem >>> support. Instead of mapping the whole memory section, we only map >>>

Re: [PATCH v4 04/11] vfio: Support for RamDiscardMgr in the !vIOMMU case

2021-01-14 Thread David Hildenbrand
On 14.01.21 00:27, Alex Williamson wrote: > On Thu, 7 Jan 2021 14:34:16 +0100 > David Hildenbrand wrote: > >> Implement support for RamDiscardMgr, to prepare for virtio-mem >> support. Instead of mapping the whole memory section, we only map >> "populated" parts and update the mapping when

Re: [PATCH v4 04/11] vfio: Support for RamDiscardMgr in the !vIOMMU case

2021-01-13 Thread Alex Williamson
On Thu, 7 Jan 2021 14:34:16 +0100 David Hildenbrand wrote: > Implement support for RamDiscardMgr, to prepare for virtio-mem > support. Instead of mapping the whole memory section, we only map > "populated" parts and update the mapping when notified about > discarding/population of memory via

[PATCH v4 04/11] vfio: Support for RamDiscardMgr in the !vIOMMU case

2021-01-07 Thread David Hildenbrand
Implement support for RamDiscardMgr, to prepare for virtio-mem support. Instead of mapping the whole memory section, we only map "populated" parts and update the mapping when notified about discarding/population of memory via the RamDiscardListener. Similarly, when syncing the dirty bitmaps, sync