Re: [Xen-devel] [RFC PATCH v2 5/8] arm/mem_access: Add software guest-page-table walk

2017-06-09 Thread Julien Grall
On 08/06/2017 13:43, Sergej Proskurin wrote: Hi Julien, Hi Sergej, [...] I know I suggested to move in p2m.c. Looking at the diff stat, this will increase quite a lot p2m.c which is already big. How about introducing a file guest_walk.c which contain the new functions? No problem at

Re: [Xen-devel] [RFC PATCH v2 5/8] arm/mem_access: Add software guest-page-table walk

2017-06-08 Thread Sergej Proskurin
Hi Julien, [...] > I know I suggested to move in p2m.c. Looking at the diff stat, this > will increase quite a lot p2m.c which is already big. > > How about introducing a file guest_walk.c which contain the new > functions? > No problem at all. I will gladly move the functionality into a

Re: [Xen-devel] [RFC PATCH v2 5/8] arm/mem_access: Add software guest-page-table walk

2017-06-02 Thread Julien Grall
Hi Sergej, On 06/01/2017 04:18 PM, Sergej Proskurin wrote: The function p2m_mem_access_check_and_get_page in mem_access.c translates a gva to an ipa by means of the hardware functionality of the ARM architecture. This is implemented in the function gva_to_ipa. If mem_access is active,

[Xen-devel] [RFC PATCH v2 5/8] arm/mem_access: Add software guest-page-table walk

2017-06-01 Thread Sergej Proskurin
The function p2m_mem_access_check_and_get_page in mem_access.c translates a gva to an ipa by means of the hardware functionality of the ARM architecture. This is implemented in the function gva_to_ipa. If mem_access is active, hardware-based gva to ipa translation might fail, as gva_to_ipa uses