]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: notify hypervisor of all eventfds during listener (de)registration
authorAni Sinha <anisinha@redhat.com>
Wed, 18 Sep 2024 06:48:53 +0000 (12:18 +0530)
committerPeter Xu <peterx@redhat.com>
Tue, 8 Oct 2024 19:28:55 +0000 (15:28 -0400)
commit8d3031fa1bfcdc623934ec7b15889a3f49248552
tree420fc725323d2b0744c931c20a14e83324ec64f0
parent2af37e791906cfda42cb9604a16d218e56994bb1
memory: notify hypervisor of all eventfds during listener (de)registration

When a new listener for an address space is registered, the hypervisor must be
informed of all existing eventfds for that address space by calling
eventfd_add() for that listener. Similarly, when a listener is de-registered
from an address space, the hypervisor must be informed of all existing eventfds
for that address space with a call to eventfd_del().

Same is also true for coalesced io. Send coalesced io add/del listener
notifications if any flatrage for the address space registered with the
listener intersects with any coalesced io range.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ani Sinha <anisinha@redhat.com>
Link: https://lore.kernel.org/r/20240918064853.30678-1-anisinha@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
system/memory.c