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
..
2022-06-09 10:22:59 +02:00
2022-08-17 14:23:32 +02:00
2021-02-08 17:04:41 -07:00
2022-06-09 10:23:30 +02:00
2022-02-23 12:03:18 +01:00
2021-11-18 19:16:21 +01:00
2021-08-31 11:00:02 -06:00
2021-12-22 09:32:51 +01:00
2021-04-02 16:41:08 +02:00
2022-05-12 12:30:20 +02:00
2022-02-23 12:03:13 +01:00
2021-07-21 13:46:36 +02:00
2021-07-21 16:11:42 +02:00
2022-03-08 19:12:31 +01:00
2022-02-08 18:34:12 +01:00
2021-11-25 09:48:34 +01:00
2021-02-08 16:32:43 -07:00
2022-08-17 14:23:59 +02:00
2022-06-09 10:23:24 +02:00
2021-05-19 15:05:11 +02:00
2022-04-08 14:23:18 +02:00
2022-03-16 14:23:42 +01:00
2021-07-12 14:20:01 -06:00
2022-02-23 12:03:05 +01:00
2022-02-23 12:03:21 +01:00
2021-07-26 14:45:19 +02:00
2022-04-20 09:34:12 +02:00
2021-09-16 13:55:51 +01:00
2022-07-12 16:35:19 +02:00
2022-06-29 09:03:24 +02:00
2022-02-23 12:03:05 +01:00
2021-05-18 16:20:54 -05:00
2022-02-23 12:03:18 +01:00
2022-01-27 11:05:03 +01:00
2021-06-05 08:58:11 -07:00
2022-04-08 14:24:16 +02:00
2022-06-09 10:22:51 +02:00
2021-04-30 14:14:03 -05:00
2022-07-07 17:53:31 +02:00
2022-02-23 12:03:04 +01:00
2021-08-26 15:15:24 -06:00
2021-11-18 19:16:14 +01:00
2022-08-17 14:23:14 +02:00
2022-04-08 14:23:06 +02:00
2021-05-19 12:38:17 +02:00
2021-06-07 18:39:43 -06:00
2021-08-31 10:58:00 -06:00
2021-08-04 12:42:27 +01:00
2021-04-21 22:52:32 +10:00
2022-08-17 14:23:30 +02:00
2022-02-23 12:03:06 +01:00
2022-07-29 17:25:06 +02:00
2021-12-08 09:04:46 +01:00
2022-04-08 14:23:11 +02:00
2022-02-23 12:03:05 +01:00
2021-02-15 11:43:28 +01:00
2022-02-23 12:03:04 +01:00
2021-02-15 11:07:42 +01:00
2021-09-15 10:34:21 -06:00
2022-06-09 10:22:50 +02:00