Re: [External] Re: [PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-27 Thread hongmainquan
在 2023/7/27 10:36 下午, Peter Xu 写道: On Thu, Jul 27, 2023 at 09:23:34PM +0800, hongmainquan wrote: 在 2023/7/27 8:53 下午, Peter Xu 写道: On Thu, Jul 27, 2023 at 11:59:43AM +0800, hongmainquan wrote: 在 2023/7/27 1:45 上午, Peter Xu 写道: On Tue, Jul 25, 2023 at 07:20:37PM +0800, hongmianquan wrot

Re: [External] Re: [PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-27 Thread Peter Xu
On Thu, Jul 27, 2023 at 09:23:34PM +0800, hongmainquan wrote: > > > 在 2023/7/27 8:53 下午, Peter Xu 写道: > > On Thu, Jul 27, 2023 at 11:59:43AM +0800, hongmainquan wrote: > > > > > > > > > 在 2023/7/27 1:45 上午, Peter Xu 写道: > > > > On Tue, Jul 25, 2023 at 07:20:37PM +0800, hongmianquan wrote: > > >

Re: [External] Re: [PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-27 Thread hongmainquan
在 2023/7/27 8:53 下午, Peter Xu 写道: On Thu, Jul 27, 2023 at 11:59:43AM +0800, hongmainquan wrote: 在 2023/7/27 1:45 上午, Peter Xu 写道: On Tue, Jul 25, 2023 at 07:20:37PM +0800, hongmianquan wrote: When updating ioeventfds, we need to iterate all address spaces, but some address spaces do not r

Re: [External] Re: [PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-27 Thread Peter Xu
On Thu, Jul 27, 2023 at 11:59:43AM +0800, hongmainquan wrote: > > > 在 2023/7/27 1:45 上午, Peter Xu 写道: > > On Tue, Jul 25, 2023 at 07:20:37PM +0800, hongmianquan wrote: > > > When updating ioeventfds, we need to iterate all address spaces, > > > but some address spaces do not register eventfd_add|

Re: [External] Re: [PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-26 Thread hongmainquan
在 2023/7/27 1:45 上午, Peter Xu 写道: On Tue, Jul 25, 2023 at 07:20:37PM +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 ioeve

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

2023-07-26 Thread Peter Xu
On Tue, Jul 25, 2023 at 07:20:37PM +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 skip these AS i

[PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-25 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

[PATCH] memory: avoid updating ioeventfds for some address_space

2023-07-25 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