OSDN Git Service

KVM: arm64: Tolerate re-creating hyp mappings to set software bits
authorQuentin Perret <qperret@google.com>
Mon, 9 Aug 2021 15:24:36 +0000 (16:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 10:39:50 +0000 (11:39 +0100)
commitb53846c5f279cb5329b82f19a7d313f02cb9d21c
treed91783d9b2f5c8514097718f0bf9c12d05d51722
parent8a0282c68121e53ab17413283cfed408a47e1a2a
KVM: arm64: Tolerate re-creating hyp mappings to set software bits

The current hypervisor stage-1 mapping code doesn't allow changing an
existing valid mapping. Relax this condition by allowing changes that
only target software bits, as that will soon be needed to annotate shared
pages.

Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210809152448.1810400-10-qperret@google.com
arch/arm64/kvm/hyp/pgtable.c