All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: selftests: Consolidate ucall code
@ 2022-06-18  0:16 ` Sean Christopherson
  0 siblings, 0 replies; 44+ messages in thread
From: Sean Christopherson @ 2022-06-18  0:16 UTC (permalink / raw)
  To: Paolo Bonzini, Marc Zyngier, Anup Patel, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Christian Borntraeger, Janosch Frank,
	Claudio Imbrenda
  Cc: James Morse, Alexandru Elisei, Suzuki K Poulose, Atish Patra,
	David Hildenbrand, kvm, linux-arm-kernel, kvmarm, kvm-riscv,
	linux-riscv, linux-kernel, Colton Lewis, Andrew Jones,
	Sean Christopherson

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


^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2022-07-16  9:32 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-18  0:16 [PATCH 0/3] KVM: selftests: Consolidate ucall code Sean Christopherson
2022-06-18  0:16 ` Sean Christopherson
2022-06-18  0:16 ` Sean Christopherson
2022-06-18  0:16 ` Sean Christopherson
2022-06-18  0:16 ` [PATCH 1/3] KVM: selftests: Consolidate common code for popuplating ucall struct Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-20  7:39   ` Christian Borntraeger
2022-06-20  7:39     ` Christian Borntraeger
2022-06-20  7:39     ` Christian Borntraeger
2022-06-20  7:39     ` Christian Borntraeger
2022-06-18  0:16 ` [PATCH 2/3] KVM: selftests: Consolidate boilerplate code in get_ucall() Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-19 10:36   ` Huang, Shaoqin
2022-06-19 10:36     ` Huang, Shaoqin
2022-06-19 10:36     ` Huang, Shaoqin
2022-06-19 10:36     ` Huang, Shaoqin
2022-06-21 14:41     ` Sean Christopherson
2022-06-21 14:41       ` Sean Christopherson
2022-06-21 14:41       ` Sean Christopherson
2022-06-21 14:41       ` Sean Christopherson
2022-06-18  0:16 ` [PATCH 3/3] KVM: selftest: Add __weak stubs for ucall_arch_(un)init() Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-18  0:16   ` Sean Christopherson
2022-06-20  7:33 ` [PATCH 0/3] KVM: selftests: Consolidate ucall code Andrew Jones
2022-06-20  7:33   ` Andrew Jones
2022-06-20  7:33   ` Andrew Jones
2022-06-20  7:33   ` Andrew Jones
2022-06-20 12:03 ` Paolo Bonzini
2022-06-20 12:03   ` Paolo Bonzini
2022-06-20 12:03   ` Paolo Bonzini
2022-06-20 12:03   ` Paolo Bonzini
2022-06-21 14:54   ` Sean Christopherson
2022-06-21 14:54     ` Sean Christopherson
2022-06-21 14:54     ` Sean Christopherson
2022-06-21 14:54     ` Sean Christopherson
2022-07-15 19:32     ` Peter Gonda
2022-07-15 19:32       ` Peter Gonda
2022-07-15 19:32       ` Peter Gonda
2022-07-15 19:32       ` Peter Gonda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.