All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] arm/mem_access: Walk guest page tables in SW if mem_access is active
@ 2017-04-30 19:48 Sergej Proskurin
  2017-04-30 19:48 ` [RFC PATCH 1/4] arm/mem_access: Move TTBCR_SZ_MASK to processor.h Sergej Proskurin
                   ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: Sergej Proskurin @ 2017-04-30 19:48 UTC (permalink / raw)
  To: xen-devel; +Cc: Sergej Proskurin

Hi all,

The function p2m_mem_access_check_and_get_page is called from the function
get_page_from_gva if mem_access is active and the hardware-aided translation of
the given guest virtual address (gva) into machine address fails. That is, if
the stage-2 translation tables constrain access to the guests's page tables,
hardware-assisted translation will fail. The idea of the function
p2m_mem_access_check_and_get_page is thus to translate the given gva and check
the requested access rights in software. However, as the current implementation
of p2m_mem_access_check_and_get_page makes use of the hardware-aided gva to ipa
translation, the translation might also fail because of reasons stated above
and will become equally relevant for the altp2m implementation on ARM.  As
such, we provide a software guest translation table walk to address the above
mentioned issue. We submit this patch series as an RFC to discuss the
appropriate location for the code and further functionality required to fix the
above concerns. 

Please note: The current implementation supports 64-bit and 32-bit guest
domains which use the long-descriptor translation table format. A software page
table walk for the 32-bit guests with a short-descriptor translation table
format is not yet supported.

The following patch series can be found on Github[0].

Cheers,
~Sergej

[0] https://github.com/sergej-proskurin/xen (branch arm-gpt-walk-v1)

Sergej Proskurin (4):
  arm/mem_access: Move TTBCR_SZ_MASK to processor.h
  arm/mem_access: Change value of TTBCR_SZ_MASK
  arm/mem_access: Add further TCR_EL1/TTBCR defines
  arm/mem_access: Add software guest-page-table walk

 xen/arch/arm/mem_access.c          | 140 ++++++++++++++++++++++++++++++++++++-
 xen/drivers/passthrough/arm/smmu.c |   1 -
 xen/include/asm-arm/processor.h    |   6 ++
 3 files changed, 145 insertions(+), 2 deletions(-)

-- 
2.12.2


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2017-05-09 18:56 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-30 19:48 [RFC PATCH 0/4] arm/mem_access: Walk guest page tables in SW if mem_access is active Sergej Proskurin
2017-04-30 19:48 ` [RFC PATCH 1/4] arm/mem_access: Move TTBCR_SZ_MASK to processor.h Sergej Proskurin
2017-05-02 11:47   ` Julien Grall
2017-04-30 19:48 ` [RFC PATCH 2/4] arm/mem_access: Change value of TTBCR_SZ_MASK Sergej Proskurin
2017-05-02 11:56   ` Julien Grall
2017-05-02 12:01     ` Julien Grall
2017-05-08  6:40       ` Sergej Proskurin
2017-05-08 11:31         ` Julien Grall
2017-05-08  6:25     ` Sergej Proskurin
2017-04-30 19:48 ` [RFC PATCH 3/4] arm/mem_access: Add further TCR_EL1/TTBCR defines Sergej Proskurin
2017-05-02 12:01   ` Julien Grall
2017-04-30 19:48 ` [RFC PATCH 4/4] arm/mem_access: Add software guest-page-table walk Sergej Proskurin
2017-05-01 14:38   ` Razvan Cojocaru
2017-05-01 15:39     ` Sergej Proskurin
2017-05-02 15:17   ` Julien Grall
2017-05-08  9:22     ` Sergej Proskurin
2017-05-08 11:44       ` Julien Grall
2017-05-08 19:42         ` Tamas K Lengyel
2017-05-08 20:53           ` Julien Grall
2017-05-08 21:22             ` Tamas K Lengyel
2017-05-09  7:17           ` Sergej Proskurin
2017-05-09  8:09             ` Julien Grall
2017-05-09 16:04               ` Tamas K Lengyel
2017-05-09 16:22                 ` Julien Grall
2017-05-09 16:45                   ` Tamas K Lengyel
2017-05-09 18:55                     ` Julien Grall
2017-05-09 18:56                       ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.