Re: [Qemu-devel] [PATCH v3] exec.c: refactor function flatview_add_to_dispatch()

2019-03-11 Thread Wei Yang
On Mon, Mar 11, 2019 at 02:42:58PM +0100, Paolo Bonzini wrote: >On 11/03/19 06:42, Wei Yang wrote: >> flatview_add_to_dispatch() registers page based on the condition of >> *section*, which may looks like this: >> >> |s|PPP|s| >> >> where s stands for subpage and P for page. >> >> The pr

Re: [Qemu-devel] [PATCH v3] exec.c: refactor function flatview_add_to_dispatch()

2019-03-11 Thread Paolo Bonzini
On 11/03/19 06:42, Wei Yang wrote: > flatview_add_to_dispatch() registers page based on the condition of > *section*, which may looks like this: > > |s|PPP|s| > > where s stands for subpage and P for page. > > The procedure of this function could be described as: > > - register firs

[Qemu-devel] [PATCH v3] exec.c: refactor function flatview_add_to_dispatch()

2019-03-10 Thread Wei Yang
flatview_add_to_dispatch() registers page based on the condition of *section*, which may looks like this: |s|PPP|s| where s stands for subpage and P for page. The procedure of this function could be described as: - register first subpage - register page - register last subpa