Re: [PATCH 2/5] KVM: arm64: Reject stub hypercalls after pKVM has been initialised

2021-09-29 Thread Quentin Perret
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 functi

[PATCH 2/5] KVM: arm64: Reject stub hypercalls after pKVM has been initialised

2021-09-23 Thread Will Deacon
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 o