Re: [PATCH V2] memory: flat section iterator

2023-02-08 Thread Steven Sistare
On 2/7/2023 4:47 PM, Peter Xu wrote: > On Tue, Feb 07, 2023 at 04:28:49PM -0500, Steven Sistare wrote: >> On 2/7/2023 3:10 PM, Peter Xu wrote: >>> On Tue, Feb 07, 2023 at 11:03:29AM -0800, Steve Sistare wrote: Add an iterator over the sections of a flattened address space. This will be ne

Re: [PATCH V2] memory: flat section iterator

2023-02-08 Thread David Hildenbrand
On 07.02.23 22:28, Steven Sistare wrote: On 2/7/2023 3:10 PM, Peter Xu wrote: On Tue, Feb 07, 2023 at 11:03:29AM -0800, Steve Sistare wrote: Add an iterator over the sections of a flattened address space. This will be needed by cpr to issue vfio ioctl's on the same memory ranges that are alread

Re: [PATCH V2] memory: flat section iterator

2023-02-07 Thread Peter Xu
On Tue, Feb 07, 2023 at 04:28:49PM -0500, Steven Sistare wrote: > On 2/7/2023 3:10 PM, Peter Xu wrote: > > On Tue, Feb 07, 2023 at 11:03:29AM -0800, Steve Sistare wrote: > >> Add an iterator over the sections of a flattened address space. > >> This will be needed by cpr to issue vfio ioctl's on the

Re: [PATCH V2] memory: flat section iterator

2023-02-07 Thread Steven Sistare
On 2/7/2023 3:10 PM, Peter Xu wrote: > On Tue, Feb 07, 2023 at 11:03:29AM -0800, Steve Sistare wrote: >> Add an iterator over the sections of a flattened address space. >> This will be needed by cpr to issue vfio ioctl's on the same memory >> ranges that are already programmed. > > Should this bet

Re: [PATCH V2] memory: flat section iterator

2023-02-07 Thread Peter Xu
On Tue, Feb 07, 2023 at 11:03:29AM -0800, Steve Sistare wrote: > Add an iterator over the sections of a flattened address space. > This will be needed by cpr to issue vfio ioctl's on the same memory > ranges that are already programmed. Should this better be proposed with the context of using it?

[PATCH V2] memory: flat section iterator

2023-02-07 Thread Steve Sistare
Add an iterator over the sections of a flattened address space. This will be needed by cpr to issue vfio ioctl's on the same memory ranges that are already programmed. Signed-off-by: Steve Sistare Reviewed-by: Marc-André Lureau --- include/exec/memory.h | 31 +++ sof