Commit f4142693 authored by Per Larsen's avatar Per Larsen Committed by Marc Zyngier
Browse files

KVM: arm64: Correct return value on host version downgrade attempt



Once the hypervisor negotiates the FF-A version with the host, it should
remain locked-in. However, it is possible to load FF-A as a module first
supporting version 1.1 and then 1.0.

Without this patch, the FF-A 1.0 driver will use 1.0 data structures to
make calls which the hypervisor will incorrectly interpret as 1.1 data
structures. With this patch, negotiation will fail.

This patch does not change existing functionality in the case where a
FF-A 1.2 driver is loaded after a 1.1 driver; the 1.2 driver will need
to use 1.1 in order to proceed.

Acked-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarPer Larsen <perlarsen@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent 1b237f19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment