diff options
| author | Marc Zyngier <[email protected]> | 2017-10-23 16:11:21 +0000 |
|---|---|---|
| committer | Christoffer Dall <[email protected]> | 2018-01-08 14:20:46 +0000 |
| commit | 7a3796d2ef5bb948f709467eef1bf96edbfc67a0 (patch) | |
| tree | 8b33f893ac17f71126f7960a7909d18be397353d /lib/timerqueue.c | |
| parent | KVM: arm/arm64: Only clean the dcache on translation fault (diff) | |
| download | kernel-7a3796d2ef5bb948f709467eef1bf96edbfc67a0.tar.gz kernel-7a3796d2ef5bb948f709467eef1bf96edbfc67a0.zip | |
KVM: arm/arm64: Preserve Exec permission across R/W permission faults
So far, we loose the Exec property whenever we take permission
faults, as we always reconstruct the PTE/PMD from scratch. This
can be counter productive as we can end-up with the following
fault sequence:
X -> RO -> ROX -> RW -> RWX
Instead, we can lookup the existing PTE/PMD and clear the XN bit in the
new entry if it was already cleared in the old one, leadig to a much
nicer fault sequence:
X -> ROX -> RWX
Reviewed-by: Christoffer Dall <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
