diff options
author | Andrei Vagin <avagin@google.com> | 2022-07-22 16:02:40 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-08-01 08:43:05 -0400 |
commit | 281106f938d3daaea6f8b6723a8217a2a1ef6936 (patch) | |
tree | 5c96eb87e1c6ab9801df94b16611f78f6a617aef /arch/s390/include/uapi/asm | |
parent | dd4d1c3bb3f1cd91a7a67ed3d73299ecb273ff92 (diff) | |
download | linux-281106f938d3daaea6f8b6723a8217a2a1ef6936.tar.bz2 |
selftests: kvm: set rax before vmcall
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>
Diffstat (limited to 'arch/s390/include/uapi/asm')
0 files changed, 0 insertions, 0 deletions