Thread (12 messages) 12 messages, 2 authors, 2018-07-16

[PATCH v6 2/8] KVM: arm/arm64: Re-factor setting the Stage 2 entry to exec on fault

From: Suzuki.Poulose@arm.com (Suzuki K Poulose)
Date: 2018-07-16 12:46:50
Also in: kvmarm, lkml

On 16/07/18 12:08, Punit Agrawal wrote:
Stage 2 fault handler marks a page as executable if it is handling an
execution fault or if it was a permission fault in which case the
executable bit needs to be preserved.

The logic to decide if the page should be marked executable is
duplicated for PMD and PTE entries. To avoid creating another copy
when support for PUD hugepages is introduced refactor the code to
share the checks needed to mark a page table entry as executable.

Signed-off-by: Punit Agrawal <redacted>
Cc: Christoffer Dall <redacted>
Cc: Marc Zyngier <redacted>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help