OSDN Git Service

KVM: selftests: Define cpu_relax() helpers for s390 and x86
authorSean Christopherson <seanjc@google.com>
Sat, 26 Feb 2022 00:15:45 +0000 (00:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 15:59:11 +0000 (10:59 -0500)
commit17ae5ebc46e713e3a16735644a093aa3aff9fe8a
tree081f94b219f4a37100f3a2257d28f3f9a7883635
parenta4187c9bd16341b17d54cb3f87b8164945fa81ce
KVM: selftests: Define cpu_relax() helpers for s390 and x86

Add cpu_relax() for s390 and x86 for use in arch-agnostic tests.  arm64
already defines its own version.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220226001546.360188-28-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/s390x/processor.h
tools/testing/selftests/kvm/include/x86_64/processor.h