Andrei Vagin
128eeac876
selftests: kvm: set rax before vmcall
[ Upstream commit 281106f938d3daaea6f8b6723a8217a2a1ef6936 ]
kvm_hypercall has to place the hypercall number in rax.
Trace events show that kvm_pv_test doesn't work properly:
kvm_pv_test-53132: kvm_hypercall: nr 0x0 a0 0x0 a1 0x0 a2 0x0 a3 0x0
kvm_pv_test-53132: kvm_hypercall: nr 0x0 a0 0x0 a1 0x0 a2 0x0 a3 0x0
kvm_pv_test-53132: kvm_hypercall: nr 0x0 a0 0x0 a1 0x0 a2 0x0 a3 0x0
With this change, it starts working as expected:
kvm_pv_test-54285: kvm_hypercall: nr 0x5 a0 0x0 a1 0x0 a2 0x0 a3 0x0
kvm_pv_test-54285: kvm_hypercall: nr 0xa a0 0x0 a1 0x0 a2 0x0 a3 0x0
kvm_pv_test-54285: kvm_hypercall: nr 0xb a0 0x0 a1 0x0 a2 0x0 a3 0x0
Signed-off-by: Andrei Vagin <avagin@google.com>
Message-Id: <20220722230241.1944655-5-avagin@google.com>
Fixes: ac4a4d6de2 ("selftests: kvm: test enforcement of paravirtual cpuid features")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:59 +02:00
..
2021-08-19 09:08:57 +01:00
2022-05-12 12:30:24 +02:00
2022-08-17 14:23:59 +02:00
2022-08-11 13:07:51 +02:00
2021-09-23 10:05:07 -04:00
2021-09-22 10:33:14 -04:00
2021-09-22 10:33:14 -04:00
2021-09-22 10:33:14 -04:00
2021-09-08 11:50:27 -07:00
2021-06-24 04:31:17 -04:00
2021-08-20 16:06:32 -04:00
2021-12-22 09:32:34 +01:00
2022-05-12 12:30:24 +02:00
2021-09-23 10:05:07 -04:00
2021-08-06 10:01:40 -04:00
2021-06-24 11:47:48 -04:00
2022-07-29 17:25:23 +02:00
2021-07-14 12:14:27 -04:00
2021-02-09 08:17:08 -05:00
2021-09-27 13:58:23 -07:00