Re: [PATCH v5 0/9] KVM: selftests: add powerpc support

From: Sean Christopherson

Date: Sun Oct 04 2026 - 22:40:11 EST


On Sat, Oct 03, 2026, Ritesh Harjani wrote:
> Sean Christopherson <seanjc@xxxxxxxxxx> writes:
> Also note - I will open code the TEST_GEN_PROGS_COMMON and will skip the
> kvm_create_max_vcpus

Oh, right, kvm_create_max_vcpus is a common test. Can userspace detect that it's
running KVM-on-PowerVM (in a not completely unpleasant way)? If so, an alternative
would be to keep the KVM_CAP_PPC_SMT change in v6 (patch 2) as a prep patch (before
adding PPC support to Makefile.kvm), and then add a
TEST_REQUIRE(!kvm_is_on_ppc_powervm()) or whatever.

I think I'd even prefer to take on an #ifdef (to scope it to PPC if necessary)
over open coding TEST_GEN_PROGS_COMMON. LoongArch open coded its full test list
for some reason, and in less than a year it has started missing out on new common
tests.

> (& maybe few others like vm_types_test) from that in v6.

What's wrong with VM types test? That one really should Just Work on all
architectures. It doesn't run on LoongArch, but I assume that's oversight?