Skip to content

Commit acfcaf9

Browse files
committed
smccc: kvm_guest: Align with DISCOVER_IMPL_CPUS ABI
The ABI of the hypercall requires that R2 and R3 are 0. Explicitly pass 0 for these parameters. Cc: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Fixes: 86edf6b ("smccc/kvm_guest: Enable errata based on implementation CPUs") Reviewed-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Link: https://lore.kernel.org/r/20250327163613.2516073-1-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 369c012 commit acfcaf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/smccc/kvm_guest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void __init kvm_arm_target_impl_cpu_init(void)
9595

9696
for (i = 0; i < max_cpus; i++) {
9797
arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_DISCOVER_IMPL_CPUS_FUNC_ID,
98-
i, &res);
98+
i, 0, 0, &res);
9999
if (res.a0 != SMCCC_RET_SUCCESS) {
100100
pr_warn("Discovering target implementation CPUs failed\n");
101101
goto mem_free;

0 commit comments

Comments
 (0)