Re: [PATCH v1 0/4] selftests: kvm: Add LoongArch support

From: zhaotianrui
Date: Wed Aug 02 2023 - 23:16:01 EST



在 2023/8/3 上午12:58, Sean Christopherson 写道:
Please use "KVM: selftests:" for the scope. There's no "official" requirement,
but I've been heavily pushing "KVM: selftests:" and no one has objected or
suggested an alternative, and I'd really like all of KVM selftests to use a
consistent scope.
Thanks for your reviewing.
I will replace all the "selftests: kvm:" with "KVM: selftests:".

On Tue, Aug 01, 2023, Tianrui Zhao wrote:
This patch series base on the Linux LoongArch KVM patch:
Based-on: <20230720062813.4126751-1-zhaotianrui@xxxxxxxxxxx>
Is there an actual dependency? I ask because I'm shepherding along a series[*]
that will silently conflict with the ucall support, and in a way with the Makefile
changes.
Yes, this KVM selftests patch series actually depend on the previous LoongArch KVM patches.

Thanks
Tianrui Zhao

If there's no hard dependency, one option would be take this series through
kvm-x86/selftests (my topic branch for KVM selftests changes) along with the
guest printf series, e.g. so that we don't end up with a mess in linux-next and/or
come the 6.6 merge window.

https://lore.kernel.org/all/20230731203026.1192091-1-seanjc@xxxxxxxxxx

tools/testing/selftests/kvm/Makefile | 11 +
.../selftests/kvm/include/kvm_util_base.h | 5 +
.../kvm/include/loongarch/processor.h | 28 ++
.../selftests/kvm/include/loongarch/sysreg.h | 89 +++++
.../selftests/kvm/lib/loongarch/exception.S | 27 ++
.../selftests/kvm/lib/loongarch/processor.c | 367 ++++++++++++++++++
.../selftests/kvm/lib/loongarch/ucall.c | 44 +++
7 files changed, 571 insertions(+)
create mode 100644 tools/testing/selftests/kvm/include/loongarch/processor.h
create mode 100644 tools/testing/selftests/kvm/include/loongarch/sysreg.h
create mode 100644 tools/testing/selftests/kvm/lib/loongarch/exception.S
create mode 100644 tools/testing/selftests/kvm/lib/loongarch/processor.c
create mode 100644 tools/testing/selftests/kvm/lib/loongarch/ucall.c

--
2.39.1