[PATCH 2/5] KVM: arm64: Reject stub hypercalls after pKVM has been initialised
Quentin Perret
qperret at google.com
Wed Sep 29 06:37:40 PDT 2021
On Thursday 23 Sep 2021 at 12:22:53 (+0100), Will Deacon wrote:
> The stub hypercalls provide mechanisms to reset and replace the EL2 code,
> so uninstall them once pKVM has been initialised in order to ensure the
> integrity of the hypervisor code.
>
> To ensure pKVM initialisation remains functional, split cpu_hyp_reinit()
> into two helper functions to separate usage of the stub from usage of
> pkvm hypercalls either side of __pkvm_init on the boot CPU.
>
> Cc: Marc Zyngier <maz at kernel.org>
> Cc: Quentin Perret <qperret at google.com>
> Signed-off-by: Will Deacon <will at kernel.org>
Reviewed-by: Quentin Perret <qperret at google.com>
Thanks,
Quentin
More information about the linux-arm-kernel
mailing list