Re: [PATCH] memory: avoid unnecessary iteration when updating ioeventfds

2023-03-05 Thread Jason Wang
On Mon, Mar 6, 2023 at 5:27 AM Peter Xu wrote: > > On Wed, Mar 01, 2023 at 04:36:20PM +0800, Jason Wang wrote: > > On Tue, Feb 28, 2023 at 10:25 PM Longpeng(Mike) > > wrote: > > > > > > From: Longpeng > > > > > > When updating ioeventfds, we need to iterate all address spaces and > > > iterate

Re: [PATCH] memory: avoid unnecessary iteration when updating ioeventfds

2023-03-05 Thread Peter Xu
On Wed, Mar 01, 2023 at 04:36:20PM +0800, Jason Wang wrote: > On Tue, Feb 28, 2023 at 10:25 PM Longpeng(Mike) wrote: > > > > From: Longpeng > > > > When updating ioeventfds, we need to iterate all address spaces and > > iterate all flat ranges of each address space. There is so much > > redundant

Re: [PATCH] memory: avoid unnecessary iteration when updating ioeventfds

2023-03-01 Thread Jason Wang
On Tue, Feb 28, 2023 at 10:25 PM Longpeng(Mike) wrote: > > From: Longpeng > > When updating ioeventfds, we need to iterate all address spaces and > iterate all flat ranges of each address space. There is so much > redundant process that a FlatView would be iterated for so many times > during one

Re: [PATCH] memory: avoid unnecessary iteration when updating ioeventfds

2023-02-28 Thread David Hildenbrand
On 28.02.23 15:25, Longpeng(Mike) via wrote: From: Longpeng When updating ioeventfds, we need to iterate all address spaces and iterate all flat ranges of each address space. There is so much redundant process that a FlatView would be iterated for so many times during one commit (memory_region_

[PATCH] memory: avoid unnecessary iteration when updating ioeventfds

2023-02-28 Thread Longpeng(Mike)
From: Longpeng When updating ioeventfds, we need to iterate all address spaces and iterate all flat ranges of each address space. There is so much redundant process that a FlatView would be iterated for so many times during one commit (memory_region_transaction_commit). We can mark a FlatView as