]> 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)
commit965524a49ae1d3eb20bae8f00250c460c249f994
treed91783d9b2f5c8514097718f0bf9c12d05d51722
parent6aa83658c210b37e7cb618e293998bd9968fb1c9
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