arm64: KVM: Add ARCH_WORKAROUND_2 discovery through ARCH_FEATURES_FUNC_ID

commit 5d81f7dc9bca4f4963092433e27b508cbe524a32 upstream.

Now that all our infrastructure is in place, let's expose the
availability of ARCH_WORKAROUND_2 to guests. We take this opportunity
to tidy up a couple of SMCCC constants.

Acked-by: Christoffer Dall <>
Reviewed-by: Mark Rutland <>
Signed-off-by: Marc Zyngier <>
Signed-off-by: Catalin Marinas <>
Signed-off-by: Paul Gortmaker <>
4 files changed