]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: selftests: Override ARCH for x86_64 instead of using ARCH_DIR
authorSean Christopherson <seanjc@google.com>
Thu, 28 Nov 2024 00:55:47 +0000 (16:55 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 18 Dec 2024 22:15:05 +0000 (14:15 -0800)
commit9af04539d474dda4984ff4909d4568e6123c8cba
tree2eaad5224ce99bf503d6788c9c34ce8d7f7d0b06
parent67730e6c53d70fb31618230f81c4acee9f72eaa3
KVM: selftests: Override ARCH for x86_64 instead of using ARCH_DIR

Now that KVM selftests uses the kernel's canonical arch paths, directly
override ARCH to 'x86' when targeting x86_64 instead of defining ARCH_DIR
to redirect to appropriate paths.  ARCH_DIR was originally added to deal
with KVM selftests using the target triple ARCH for directories, e.g.
s390x and aarch64; keeping it around just to deal with the one-off alias
from x86_64=>x86 is unnecessary and confusing.

Note, even when selftests are built from the top-level Makefile, ARCH is
scoped to KVM's makefiles, i.e. overriding ARCH won't trip up some other
selftests that (somehow) expects x86_64 and can't work with x86.

Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20241128005547.4077116-17-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/Makefile.kvm