qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH V2] memory: flat section iterator


From: David Hildenbrand
Subject: Re: [PATCH V2] memory: flat section iterator
Date: Wed, 8 Feb 2023 14:48:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

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 already programmed.

Should this better be proposed with the context of using it?  Or I don't
know how to justify this new interface is needed.

For example, any explanations on why memory region listeners cannot work?

For context, the new interfaces is used in the patch
   "vfio-pci: recover from unmap-all-vaddr failure"
in the original live update series:
   
https://lore.kernel.org/qemu-devel/1658851843-236870-1-git-send-email-steven.sistare@oracle.com/

More succinctly, the memory region listeners already ran, and the vfio
callbacks created vfio memory regions.  Now we want to perform live update,
and are in steady state, so no listeners are being called.  We need the
flat section iterator to reproduce the same addresses and extents that were
produced by the listeners, to make a state change on each distinct vfio
memory region.

Would a "replay" functionality on a registered memory notifier eventually be cleaner?

--
Thanks,

David / dhildenb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]