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: 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-21 15:16:03 +02:00
..
2020-11-08 06:03:02 -05:00
2020-11-08 06:04:08 -05:00
2022-08-21 15:16:03 +02:00
2020-03-16 17:59:09 +01:00
2021-11-18 14:03:59 +01:00
2020-11-08 06:04:08 -05:00
2019-08-09 16:52:38 +02:00
2020-11-08 06:04:03 -05:00
2020-11-09 09:45:17 -05:00
2020-11-08 06:03:36 -05:00
2021-12-22 09:30:50 +01:00
2020-11-08 06:04:08 -05:00
2020-12-03 12:38:58 -05:00
2021-10-09 14:40:57 +02:00