]> 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)
commit9b383127cd68a6cc65b526d84944eb5c90a7715f
treefb97e6a0b05223181cdc19eca80bb2a49a268e2b
parent2f80c934ca9c2244171728c5087be204cde42da0
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