Andrei Vagin
c0ba87f3e7
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-21 15:16:03 +02:00
..
2022-08-11 13:06:47 +02:00
2021-09-26 14:08:59 +02:00
2022-02-08 18:30:39 +01:00
2022-04-13 21:01:10 +02:00
2021-05-07 11:04:31 +02:00
2021-01-27 11:55:20 +01:00
2020-08-22 10:53:12 +01:00
2022-08-11 13:06:44 +02:00
2020-09-21 07:50:58 -06:00
2022-08-11 13:06:45 +02:00
2022-08-21 15:15:46 +02:00
2020-09-04 11:58:15 -07:00
2022-07-25 11:26:56 +02:00
2022-08-03 12:00:49 +02:00
2022-06-09 10:20:51 +02:00
2021-07-31 08:16:10 +02:00
2022-08-21 15:16:03 +02:00
2022-08-21 15:15:37 +02:00
2021-10-09 14:40:56 +02:00
2022-05-25 09:17:53 +02:00
2021-10-09 14:40:57 +02:00