Re: [PATCH] KVM: arm64: Fix the return value of smp_call_function_single()

2021-01-18 Thread Marc Zyngier
On 2021-01-18 09:31, Yejune Deng wrote: In smp_call_function_single(), the 3rd parameter isn't the return value and it's always positive. But it may return a negative value. So the 'ret' is should be the return value of the smp_call_function_single(). In check_kvm_target_cpu(), 'phys_target' is

[PATCH] KVM: arm64: Fix the return value of smp_call_function_single()

2021-01-18 Thread Yejune Deng
In smp_call_function_single(), the 3rd parameter isn't the return value and it's always positive. But it may return a negative value. So the 'ret' is should be the return value of the smp_call_function_single(). In check_kvm_target_cpu(), 'phys_target' is more readable than 'ret'. Signed-off-by: