Will Deacon e41d46fe09 KVM: arm64: Propagate errors from __pkvm_prot_finalize hypercall
[ Upstream commit 2f2e1a5069679491d18cf9021da19b40c56a17f3 ]

If the __pkvm_prot_finalize hypercall returns an error, we WARN but fail
to propagate the failure code back to kvm_arch_init().

Pass a pointer to a zero-initialised return variable so that failure
to finalise the pKVM protections on a host CPU can be reported back to
KVM.

Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211008135839.1193-5-will@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:15 +01:00
..
2021-10-15 18:06:32 -07:00
2021-10-26 15:24:33 -07:00
2021-09-24 13:35:07 +02:00
2021-10-30 09:28:24 -07:00
2021-10-31 11:19:02 -07:00
2021-11-18 19:16:10 +01:00