From: Oliver Upton Date: Mon, 27 Sep 2021 22:36:21 +0000 (+0000) Subject: selftests: KVM: Don't clobber XMM register when read X-Git-Tag: v5.15~2^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e02c16b9cd24925ea627f007df9ca9ee00eaaa62;p=platform%2Fkernel%2Flinux-starfive.git selftests: KVM: Don't clobber XMM register when read There is no need to clobber a register that is only being read from. Oops. Drop the XMM register from the clobbers list. Signed-off-by: Oliver Upton Message-Id: <20210927223621.50178-1-oupton@google.com> Signed-off-by: Paolo Bonzini --- diff --git a/tools/testing/selftests/kvm/include/x86_64/processor.h b/tools/testing/selftests/kvm/include/x86_64/processor.h index eba8bd0..05e65ca 100644 --- a/tools/testing/selftests/kvm/include/x86_64/processor.h +++ b/tools/testing/selftests/kvm/include/x86_64/processor.h @@ -315,7 +315,7 @@ static inline void set_xmm(int n, unsigned long val) #define GET_XMM(__xmm) \ ({ \ unsigned long __val; \ - asm volatile("movq %%"#__xmm", %0" : "=r"(__val) : : #__xmm); \ + asm volatile("movq %%"#__xmm", %0" : "=r"(__val)); \ __val; \ })