Re: [RESEND] memory: avoid updating ioeventfds for some address_space

2023-08-29 Thread Peter Xu
Hongmianquan, On Tue, Aug 29, 2023 at 10:23:54AM +0800, hongmianquan wrote: > When updating ioeventfds, we need to iterate all address spaces, > but some address spaces do not register eventfd_add|del call when > memory_listener_register() and they do nothing when updating ioeventfds. > So we can

[RESEND] memory: avoid updating ioeventfds for some address_space

2023-08-28 Thread hongmianquan
When updating ioeventfds, we need to iterate all address spaces, but some address spaces do not register eventfd_add|del call when memory_listener_register() and they do nothing when updating ioeventfds. So we can skip these AS in address_space_update_ioeventfds(). The overhead of memory_region_tr