KVM: arm64: Allow SMCCC_ARCH_WORKAROUND_3 to be discovered and migrated
authorJames Morse <james.morse@arm.com>
Fri, 10 Dec 2021 11:16:18 +0000 (11:16 +0000)
committerJames Morse <james.morse@arm.com>
Thu, 24 Feb 2022 13:58:52 +0000 (13:58 +0000)
commita5905d6af492ee6a4a2205f0d550b3f931b03d03
tree857033631ce39a7ecd0bd2cd741ad0a3531e6970
parent558c303c9734af5a813739cd284879227f7297d2
KVM: arm64: Allow SMCCC_ARCH_WORKAROUND_3 to be discovered and migrated

KVM allows the guest to discover whether the ARCH_WORKAROUND SMCCC are
implemented, and to preserve that state during migration through its
firmware register interface.

Add the necessary boiler plate for SMCCC_ARCH_WORKAROUND_3.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
arch/arm64/include/uapi/asm/kvm.h
arch/arm64/kvm/hypercalls.c
arch/arm64/kvm/psci.c