Re: [Xen-devel] [RFC PATCH] p2m-pt: avoid get the pte falgs repeatedly.

2016-11-17 Thread Li, Liang Z
> >>> On 17.11.16 at 09:24, wrote: > > There are a lot of code try to get the pte flags repeatedly, why not > > save the result and reuse it in the following code? It can help to > > save some CPU cycles and make the code cleaner, no? > > > > I am not sure if this is the right direction, just chan

Re: [Xen-devel] [RFC PATCH] p2m-pt: avoid get the pte falgs repeatedly.

2016-11-17 Thread Jan Beulich
>>> On 17.11.16 at 09:24, wrote: > There are a lot of code try to get the pte flags repeatedly, why > not save the result and reuse it in the following code? It can help > to save some CPU cycles and make the code cleaner, no? > > I am not sure if this is the right direction, just change one plac

[Xen-devel] [RFC PATCH] p2m-pt: avoid get the pte falgs repeatedly.

2016-11-17 Thread Liang Li
There are a lot of code try to get the pte flags repeatedly, why not save the result and reuse it in the following code? It can help to save some CPU cycles and make the code cleaner, no? I am not sure if this is the right direction, just change one place. Signed-off-by: Liang Li --- xen/arch/x