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: 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 14:23:59 +02:00
..
2022-08-11 13:07:54 +02:00
2021-09-15 09:49:48 -07:00
2022-04-08 14:23:31 +02:00
2022-06-09 10:23:16 +02:00
2022-08-11 13:07:50 +02:00
2021-08-13 08:58:11 -06:00
2022-08-11 13:07:51 +02:00
2022-08-17 14:23:32 +02:00
2021-07-27 11:48:55 -07:00
2022-07-23 12:54:10 +02:00
2021-08-05 11:01:30 +01:00
2022-08-03 12:03:54 +02:00
2022-06-09 10:22:32 +02:00
2022-08-17 14:23:59 +02:00
2022-08-17 14:23:15 +02:00
2021-11-18 19:16:19 +01:00
2021-09-14 10:31:41 +02:00
2022-05-25 09:57:25 +02:00
2022-08-11 13:07:50 +02:00