mirror-linux/tools/testing/selftests/kvm
Mark Brown c2ee9f594d KVM: selftests: Fix build on on non-x86 architectures
Commit 9a400068a1 ("KVM: selftests: x86: Avoid using SSE/AVX
instructions") unconditionally added -march=x86-64-v2 to the CFLAGS used
to build the KVM selftests which does not work on non-x86 architectures:

  cc1: error: unknown value ‘x86-64-v2’ for ‘-march’

Fix this by making the addition of this x86 specific command line flag
conditional on building for x86.

Fixes: 9a400068a1 ("KVM: selftests: x86: Avoid using SSE/AVX instructions")
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2024-10-21 15:49:33 -07:00
..
aarch64 Merge branch kvm-arm64/idregs-6.12 into kvmarm/fixes 2024-10-08 10:40:04 +01:00
include Merge tag 'kvm-x86-selftests-6.12' of https://github.com/kvm-x86/linux into HEAD 2024-09-17 11:39:21 -04:00
lib Merge tag 'kvm-x86-selftests-6.12' of https://github.com/kvm-x86/linux into HEAD 2024-09-17 11:39:21 -04:00
riscv KVM: riscv: selftests: Fix compile error 2024-07-29 10:10:56 +05:30
s390x selftests: kvm: s390: Add VM run test case 2024-09-16 10:30:50 +02:00
x86_64 KVM: selftests: Fix out-of-bounds reads in CPUID test's array lookups 2024-10-20 12:10:44 -04:00
.gitignore KVM: selftests: Explicitly include committed one-off assets in .gitignore 2024-08-29 19:38:56 -07:00
Makefile KVM: selftests: Fix build on on non-x86 architectures 2024-10-21 15:49:33 -07:00
access_tracking_perf_test.c
arch_timer.c Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00
coalesced_io_test.c KVM: selftests: Add a test for coalesced MMIO (and PIO on x86) 2024-08-29 19:38:33 -07:00
config
demand_paging_test.c KVM selftests treewide updates for 6.10: 2024-05-12 03:18:11 -04:00
dirty_log_perf_test.c KVM selftests treewide updates for 6.10: 2024-05-12 03:18:11 -04:00
dirty_log_test.c Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00
get-reg-list.c
guest_memfd_test.c Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00
guest_print_test.c KVM: selftests: Open code vcpu_run() equivalent in guest_printf test 2024-08-29 16:25:06 -07:00
hardware_disable_test.c KVM: selftests: Define _GNU_SOURCE for all selftests code 2024-04-29 12:49:10 -07:00
kvm_binary_stats_test.c KVM: selftests: Define _GNU_SOURCE for all selftests code 2024-04-29 12:49:10 -07:00
kvm_create_max_vcpus.c KVM: selftests: Define _GNU_SOURCE for all selftests code 2024-04-29 12:49:10 -07:00
kvm_page_table_test.c Revert "kvm: selftests: move base kvm_util.h declarations to kvm_util_base.h" 2024-04-29 12:54:13 -07:00
max_guest_memory_test.c KVM selftests treewide updates for 6.10: 2024-05-12 03:18:11 -04:00
memslot_modification_stress_test.c KVM: selftests: Fix build on architectures other than x86_64 2024-10-01 11:07:26 -04:00
memslot_perf_test.c KVM: selftests: Fix build on architectures other than x86_64 2024-10-01 11:07:26 -04:00
pre_fault_memory_test.c KVM: selftests: x86: Add test for KVM_PRE_FAULT_MEMORY 2024-07-12 11:18:27 -04:00
rseq_test.c KVM selftests treewide updates for 6.10: 2024-05-12 03:18:11 -04:00
set_memory_region_test.c KVM: selftests: Test slot move/delete with slot zap quirk enabled/disabled 2024-08-14 12:29:11 -04:00
settings
steal_time.c KVM selftests treewide updates for 6.10: 2024-05-12 03:18:11 -04:00
system_counter_offset_test.c