]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Return -EPERM from __pkvm_host_share_hyp()
authorQuentin Perret <qperret@google.com>
Wed, 11 Aug 2021 17:36:25 +0000 (18:36 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 18:40:53 +0000 (19:40 +0100)
commit4146d12195a22ed6a20f0bcead455ffeb3fc9fba
treefb97e6a0b05223181cdc19eca80bb2a49a268e2b
parent331f6ae513df8c9659610733de0714f55c3db317
KVM: arm64: Return -EPERM from __pkvm_host_share_hyp()

Fix the error code returned by __pkvm_host_share_hyp() when the
host attempts to share with EL2 a page that has already been shared with
another entity.

Reported-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210811173630.2536721-1-qperret@google.com
arch/arm64/kvm/hyp/nvhe/mem_protect.c