]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc5f9b18075a6932ce84f83647bfe3bc02b1aa028
treed91783d9b2f5c8514097718f0bf9c12d05d51722
parent7a93d32ba499aceec4e81779b35e82c95532af9b
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