Andrei Vagin
4ef616730a
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: ac4a4d6de22e ("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 15:15:41 +02:00
..
2022-06-01 15:55:25 -07:00
2022-08-11 13:22:05 +02:00
2022-05-13 16:07:53 -07:00
2022-05-26 12:36:56 -03:00
2022-05-23 18:47:49 +03:00
2022-02-21 11:34:49 +01:00
2022-02-15 12:25:56 +09:00
2022-05-04 11:06:14 +02:00
2022-02-15 12:25:56 +09:00
2022-03-31 11:59:03 -07:00
2022-07-27 09:50:18 -07:00
2022-06-15 08:14:20 -04:00
2022-08-17 15:14:53 +02:00
2022-05-03 10:12:48 -07:00
2022-07-11 18:15:25 -07:00
2022-02-15 12:25:56 +09:00
2022-07-27 11:19:39 -03:00
2022-08-17 15:15:39 +02:00
2022-03-31 11:59:03 -07:00
2022-02-15 12:25:56 +09:00
2022-08-17 15:15:41 +02:00
2022-08-17 15:14:21 +02:00
2022-08-17 15:15:40 +02:00
2022-04-26 13:32:49 +02:00
2022-03-28 16:52:59 -04:00
2022-08-11 13:22:02 +02:00
2022-05-24 16:19:30 -07:00