Marc Zyngier 85bd0ba1ff arm/arm64: KVM: Add PSCI version selection API
Although we've implemented PSCI 0.1, 0.2 and 1.0, we expose either 0.1
or 1.0 to a guest, defaulting to the latest version of the PSCI
implementation that is compatible with the requested version. This is
no different from doing a firmware upgrade on KVM.

But in order to give a chance to hypothetical badly implemented guests
that would have a fit by discovering something other than PSCI 0.2,
let's provide a new API that allows userspace to pick one particular
version of the API.

This is implemented as a new class of "firmware" registers, where
we expose the PSCI version. This allows the PSCI version to be
save/restored as part of a guest migration, and also set to
any supported version if the guest requires it.

Cc: stable@vger.kernel.org #4.16
Reviewed-by: Christoffer Dall <cdall@kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2018-04-20 16:32:23 +01:00
..
2017-11-15 10:56:56 -08:00
2018-02-06 18:32:44 -08:00
2018-04-11 10:28:39 -07:00
2017-11-15 18:21:04 -08:00
2017-06-05 17:50:44 +02:00
2015-05-28 15:31:53 +02:00
2016-01-20 17:55:20 -08:00
2017-11-16 14:05:12 -08:00
2018-01-21 15:37:56 +00:00
2017-11-13 01:34:49 +01:00
2016-10-19 10:18:47 +01:00