Re: [RFC PATCH 5/5] KVM: arm64: Pass PSCI calls to userspace

2021-07-01 Thread Fuad Tabba
Hi Jean-Philippe, On Tue, Jun 8, 2021 at 4:54 PM Jean-Philippe Brucker wrote: > > Let userspace request to handle PSCI calls, by setting the new > KVM_CAP_ARM_PSCI_TO_USER capability. > > SMCCC probe requires PSCI v1.x. If userspace only implements PSCI v0.2, > the guest won't query SMCCC

[RFC PATCH 5/5] KVM: arm64: Pass PSCI calls to userspace

2021-06-08 Thread Jean-Philippe Brucker
Let userspace request to handle PSCI calls, by setting the new KVM_CAP_ARM_PSCI_TO_USER capability. SMCCC probe requires PSCI v1.x. If userspace only implements PSCI v0.2, the guest won't query SMCCC support through PSCI and won't use the spectre workarounds. We could hijack PSCI_VERSION and