Commit f7df1abe authored by Quentin Perret's avatar Quentin Perret
Browse files

ANDROID: KVM: arm64: Handle permission faults for non-protected guests



pKVM proactively maps non-protected guest pages with RWX permissions for
simplicity reason. But now that we have available the right helpers to
relax permissions of np-guest stage-2 PTEs, we can align the behaviour
with non-protected KVM by initially mapping pages with restricted
permissions and relaxing in response to permission faults.

This means we can tolerate using page-cache pages to back non-protected
guests as we can correctly track whenever they get dirtied.

Bug: 227300338
Bug: 278749606
Change-Id: I742f1ca0b982a290ca3de400f99b4ee1ebd8f2cc
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
parent 0a117cf5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment