]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: KVM: Align SMCCC call with the spec in steal_time
authorOliver Upton <oupton@google.com>
Tue, 21 Sep 2021 17:11:21 +0000 (17:11 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Sep 2021 14:33:08 +0000 (10:33 -0400)
commit89d047bb1302d737cf0b9dbf6478a52122782e76
tree28074cbca8e0033f8762fe66ae7b5d53542b2b52
parent2b6d2abdb94a34b77121c225b29c7493ed47f776
selftests: KVM: Align SMCCC call with the spec in steal_time

The SMC64 calling convention passes a function identifier in w0 and its
parameters in x1-x17. Given this, there are two deviations in the
SMC64 call performed by the steal_time test: the function identifier is
assigned to a 64 bit register and the parameter is only 32 bits wide.

Align the call with the SMCCC by using a 32 bit register to handle the
function identifier and increasing the parameter width to 64 bits.

Suggested-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-Id: <20210921171121.2148982-3-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/steal_time.c