RE: [PULL 36/53] memory: Optimize replay of guest mapping

2023-04-05 Thread Duan, Zhenzhong
; David Hildenbrand ; Philippe >Mathieu-Daudé >Subject: Re: [PULL 36/53] memory: Optimize replay of guest mapping > >On Tue, Apr 04, 2023 at 07:00:04PM +0100, Peter Maydell wrote: >> On Thu, 2 Mar 2023 at 08:26, Michael S. Tsirkin wrote: >> > >> > From: Zhenzhong

Re: [PULL 36/53] memory: Optimize replay of guest mapping

2023-04-04 Thread Michael S. Tsirkin
On Tue, Apr 04, 2023 at 09:23:21PM +0100, Peter Maydell wrote: > On Tue, 4 Apr 2023 at 20:13, Michael S. Tsirkin wrote: > > > > On Tue, Apr 04, 2023 at 07:00:04PM +0100, Peter Maydell wrote: > > > On Thu, 2 Mar 2023 at 08:26, Michael S. Tsirkin wrote: > > > > > > > > From: Zhenzhong Duan > > > >

Re: [PULL 36/53] memory: Optimize replay of guest mapping

2023-04-04 Thread Peter Xu
On Tue, Apr 04, 2023 at 09:23:21PM +0100, Peter Maydell wrote: > On Tue, 4 Apr 2023 at 20:13, Michael S. Tsirkin wrote: > > > > On Tue, Apr 04, 2023 at 07:00:04PM +0100, Peter Maydell wrote: > > > On Thu, 2 Mar 2023 at 08:26, Michael S. Tsirkin wrote: > > > > > > > > From: Zhenzhong Duan > > > >

Re: [PULL 36/53] memory: Optimize replay of guest mapping

2023-04-04 Thread Peter Maydell
On Tue, 4 Apr 2023 at 20:13, Michael S. Tsirkin wrote: > > On Tue, Apr 04, 2023 at 07:00:04PM +0100, Peter Maydell wrote: > > On Thu, 2 Mar 2023 at 08:26, Michael S. Tsirkin wrote: > > > > > > From: Zhenzhong Duan > > > > > > On x86, there are two notifiers registered due to vtd-ir memory region

Re: [PULL 36/53] memory: Optimize replay of guest mapping

2023-04-04 Thread Michael S. Tsirkin
On Tue, Apr 04, 2023 at 07:00:04PM +0100, Peter Maydell wrote: > On Thu, 2 Mar 2023 at 08:26, Michael S. Tsirkin wrote: > > > > From: Zhenzhong Duan > > > > On x86, there are two notifiers registered due to vtd-ir memory region > > splitting the whole address space. During replay of the address s

Re: [PULL 36/53] memory: Optimize replay of guest mapping

2023-04-04 Thread Peter Maydell
On Thu, 2 Mar 2023 at 08:26, Michael S. Tsirkin wrote: > > From: Zhenzhong Duan > > On x86, there are two notifiers registered due to vtd-ir memory region > splitting the whole address space. During replay of the address space > for each notifier, the whole address space is scanned which is > unn

[PULL 36/53] memory: Optimize replay of guest mapping

2023-03-02 Thread Michael S. Tsirkin
From: Zhenzhong Duan On x86, there are two notifiers registered due to vtd-ir memory region splitting the whole address space. During replay of the address space for each notifier, the whole address space is scanned which is unnecessory. We only need to scan the space belong to notifier montiore