diff options
author | Catalin Marinas <[email protected]> | 2022-11-03 18:10:36 -0700 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2022-11-29 09:26:07 +0000 |
commit | 2dbf12ae132cc78048615cfa19c9be64baaf0ced (patch) | |
tree | c7c9d14c12d3cefa8c891518e5d06465bce004c2 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |
parent | e059853d14ca4ed0f6a190d7109487918a22a976 (diff) |
KVM: arm64: Simplify the sanitise_mte_tags() logic
Currently sanitise_mte_tags() checks if it's an online page before
attempting to sanitise the tags. Such detection should be done in the
caller via the VM_MTE_ALLOWED vma flag. Since kvm_set_spte_gfn() does
not have the vma, leave the page unmapped if not already tagged. Tag
initialisation will be done on a subsequent access fault in
user_mem_abort().
Signed-off-by: Catalin Marinas <[email protected]>
[[email protected]: fix the page initializer]
Signed-off-by: Peter Collingbourne <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: Peter Collingbourne <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions