Patch "selftests: KVM: Align SMCCC call with the spec in steal_time" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    selftests: KVM: Align SMCCC call with the spec in steal_time

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftests-kvm-align-smccc-call-with-the-spec-in-stea.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit bfec4b4d8a9a6e3ee13523008a76ce9c71cf591c
Author: Oliver Upton <oupton@xxxxxxxxxx>
Date:   Tue Sep 21 17:11:21 2021 +0000

    selftests: KVM: Align SMCCC call with the spec in steal_time
    
    [ Upstream commit 01f91acb55be7aac3950b89c458bcea9ef6e4f49 ]
    
    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@xxxxxxxxxx>
    Signed-off-by: Oliver Upton <oupton@xxxxxxxxxx>
    Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>
    Message-Id: <20210921171121.2148982-3-oupton@xxxxxxxxxx>
    Signed-off-by: Paolo Bonzini <pbonzini@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/kvm/steal_time.c b/tools/testing/selftests/kvm/steal_time.c
index 2172d65b85e4..62f2eb9ee3d5 100644
--- a/tools/testing/selftests/kvm/steal_time.c
+++ b/tools/testing/selftests/kvm/steal_time.c
@@ -116,12 +116,12 @@ struct st_time {
 	uint64_t st_time;
 };
 
-static int64_t smccc(uint32_t func, uint32_t arg)
+static int64_t smccc(uint32_t func, uint64_t arg)
 {
 	unsigned long ret;
 
 	asm volatile(
-		"mov	x0, %1\n"
+		"mov	w0, %w1\n"
 		"mov	x1, %2\n"
 		"hvc	#0\n"
 		"mov	%0, x0\n"



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux