[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220618001618.1840806-1-seanjc@google.com>
Date: Sat, 18 Jun 2022 00:16:15 +0000
From: Sean Christopherson <seanjc@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>, Marc Zyngier <maz@...nel.org>,
Anup Patel <anup@...infault.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Christian Borntraeger <borntraeger@...ux.ibm.com>,
Janosch Frank <frankja@...ux.ibm.com>,
Claudio Imbrenda <imbrenda@...ux.ibm.com>
Cc: James Morse <james.morse@....com>,
Alexandru Elisei <alexandru.elisei@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Atish Patra <atishp@...shpatra.org>,
David Hildenbrand <david@...hat.com>, kvm@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.cs.columbia.edu,
kvm-riscv@...ts.infradead.org, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Colton Lewis <coltonlewis@...gle.com>,
Andrew Jones <drjones@...hat.com>,
Sean Christopherson <seanjc@...gle.com>
Subject: [PATCH 0/3] KVM: selftests: Consolidate ucall code
Consolidate the code for making and getting ucalls. All architectures pass
the ucall struct via memory, so filling and copying the struct is 100%
generic. The only per-arch code is sending and receiving the address of
said struct.
Tested on x86 and arm, compile tested on s390 and RISC-V.
Sean Christopherson (3):
KVM: selftests: Consolidate common code for popuplating ucall struct
KVM: selftests: Consolidate boilerplate code in get_ucall()
KVM: selftest: Add __weak stubs for ucall_arch_(un)init()
tools/testing/selftests/kvm/Makefile | 1 +
.../selftests/kvm/include/ucall_common.h | 17 ++++++-
.../testing/selftests/kvm/lib/aarch64/ucall.c | 36 +++-----------
tools/testing/selftests/kvm/lib/riscv/ucall.c | 44 ++---------------
tools/testing/selftests/kvm/lib/s390x/ucall.c | 41 ++--------------
.../testing/selftests/kvm/lib/ucall_common.c | 49 +++++++++++++++++++
.../testing/selftests/kvm/lib/x86_64/ucall.c | 41 ++--------------
7 files changed, 87 insertions(+), 142 deletions(-)
create mode 100644 tools/testing/selftests/kvm/lib/ucall_common.c
base-commit: 8baacf67c76c560fed954ac972b63e6e59a6fba0
--
2.37.0.rc0.104.g0611611a94-goog
Powered by blists - more mailing lists