/kvm-unit-tests/s390x/ |
H A D | Makefile | 1 tests = $(TEST_DIR)/selftest.elf macro 2 tests += $(TEST_DIR)/selftest-migration.elf 3 tests += $(TEST_DIR)/memory-verify.elf 4 tests += $(TEST_DIR)/intercept.elf 5 tests += $(TEST_DIR)/emulator.elf 6 tests += $(TEST_DIR)/sieve.elf 7 tests += $(TEST_DIR)/sthyi.elf 8 tests += $(TEST_DIR)/tprot.elf 9 tests += $(TEST_DIR)/skey.elf 10 tests += $(TEST_DIR)/diag10.elf [all …]
|
H A D | intercept.c | 3 * Interception tests - for s390x CPU instruction that cause a VM exit 204 } tests[] = { variable 230 } else for (ti = 0; tests[ti].name != NULL; ti++) { in parse_intercept_test_args() 231 if (!strcmp(tests[ti].name, argv[i])) { in parse_intercept_test_args() 233 tests[ti].run_it = true; in parse_intercept_test_args() 235 } else if (tests[ti + 1].name == NULL) { in parse_intercept_test_args() 243 for (ti = 0; tests[ti].name != NULL; ti++) in parse_intercept_test_args() 244 tests[ti].run_it = true; in parse_intercept_test_args() 262 for (ti = 0; tests[ti].name != NULL; ti++) { in main() 263 report_prefix_push(tests[ti].name); in main() [all …]
|
H A D | sie.c | 3 * Tests SIE diagnose intercepts. 4 * Mainly used as a template for SIE tests. 43 } tests[] = { variable 54 for (i = 0; tests[i].name; i++) { in test_diags() 55 report_prefix_push(tests[i].name); in test_diags() 56 test_diag(tests[i].instr); in test_diags()
|
H A D | diag308.c | 3 * Diagnose 0x308 hypercall tests 109 } tests[] = { variable 124 for (i = 0; tests[i].name; i++) { in main() 125 report_prefix_push(tests[i].name); in main() 126 tests[i].func(); in main()
|
/kvm-unit-tests/ |
H A D | README.md | 1 # Welcome to kvm-unit-tests 3 See http://www.linux-kvm.org/page/KVM-unit-tests for a high-level 4 description of this project, as well as running tests and adding 5 tests HOWTOs. 7 # Building the tests 42 ## Standalone tests 44 The tests can be built as standalone. To create and use standalone tests do: 48 (send tests/some-test somewhere) 52 `make install` will install all tests in PREFIX/share/kvm-unit-tests/tests, 56 # Running the tests [all …]
|
H A D | README | 1 # Welcome to kvm-unit-tests 3 See http://www.linux-kvm.org/page/KVM-unit-tests for a high-level 4 description of this project, as well as running tests and adding 5 tests HOWTOs. 7 # Building the tests 42 ## Standalone tests 44 The tests can be built as standalone. To create and use standalone tests do: 48 (send tests/some-test somewhere) 52 `make install` will install all tests i [all...] |
H A D | README.macOS.md | 1 # kvm-unit-tests on macOS 3 The tests can be used to validate TCG or HVF accel on macOS. 8 tests. They're available in [homebrew](https://brew.sh): 14 A cross-compiler with ELF support is required to build kvm-unit-tests on macOS. 30 Then, 32-bit x86 tests can be built like that: 38 64-bit x86 tests can be built likewise: 46 Out-of-tree build can be used to make tests for both architectures 74 Once compiled, the cross-compiler can be used to build the tests:
|
H A D | .travis.yml | 16 - TESTS="emulator rtas-get-time-of-day rtas-get-time-of-day-base 25 - TESTS="" 32 - if [ -n "$TESTS" ]; then 33 ACCEL="${ACCEL:-tcg}" ./run_tests.sh -v $TESTS | tee results.txt &&
|
H A D | MAINTAINERS | 1 KVM Unit Tests Maintainers 63 T: https://gitlab.com/kvm-unit-tests/kvm-unit-tests.git 86 T: https://gitlab.com/jones-drew/kvm-unit-tests.git 103 T: https://gitlab.com/jones-drew/kvm-unit-tests.git 122 T: https://gitlab.com/bonzini/kvm-unit-tests.git
|
H A D | run_tests.sh | 5 run_all_tests="no" # don't run nodefault tests 23 -a, --all Run all tests, including those flagged as 'nodefault' 25 -g, --group Only execute tests in the given group 26 -j, --parallel Execute tests in parallel 28 -l, --list Only output all tests list
|
H A D | .gitignore | 22 /tests 31 /efi-tests/*
|
/kvm-unit-tests/x86/ |
H A D | Makefile.x86_64 | 27 tests = $(TEST_DIR)/apic.$(exe) \ 33 tests += $(TEST_DIR)/syscall.$(exe) 34 tests += $(TEST_DIR)/tscdeadline_latency.$(exe) 35 tests += $(TEST_DIR)/intel-iommu.$(exe) 36 tests += $(TEST_DIR)/vmware_backdoors.$(exe) 37 tests += $(TEST_DIR)/rdpru.$(exe) 38 tests += $(TEST_DIR)/pks.$(exe) 39 tests += $(TEST_DIR)/pmu_lbr.$(exe) 40 tests += $(TEST_DIR)/pmu_pebs.$(exe) 41 tests += $(TEST_DIR)/lam.$(exe) [all …]
|
H A D | README | 2 Tests for the x86 architecture are run as kernel images for qemu that support 3 multiboot format. The tests use an infrastructure called from the bios code. 5 calls the 'main' function of the individual test. Tests use a qemu virtual 24 Tests in this directory and what they do:
|
H A D | xsave.c | 39 printf("\tLegal tests\n"); in test_xsave() 50 printf("\tIllegal tests\n"); in test_xsave() 82 printf("\tIllegal tests:\n"); in test_xsave() 91 printf("\tIllegal tests:\n"); in test_xsave()
|
/kvm-unit-tests/arm/ |
H A D | Makefile.common | 7 tests-common = $(TEST_DIR)/selftest.$(exe) 8 tests-common += $(TEST_DIR)/spinlock-test.$(exe) 9 tests-common += $(TEST_DIR)/pci-test.$(exe) 10 tests-common += $(TEST_DIR)/pmu.$(exe) 11 tests-common += $(TEST_DIR)/gic.$(exe) 12 tests-common += $(TEST_DIR)/psci.$(exe) 13 tests-common += $(TEST_DIR)/sieve.$(exe) 14 tests-common += $(TEST_DIR)/pl031.$(exe) 15 tests-common += $(TEST_DIR)/dummy.$(exe) 17 tests-all = $(tests-common) $(tests) [all …]
|
H A D | Makefile.arm64 | 60 # arm64 specific tests 61 tests = $(TEST_DIR)/timer.$(exe) 62 tests += $(TEST_DIR)/micro-bench.$(exe) 63 tests += $(TEST_DIR)/cache.$(exe) 64 tests += $(TEST_DIR)/debug.$(exe) 65 tests += $(TEST_DIR)/fpu.$(exe) 66 tests += $(TEST_DIR)/mte.$(exe)
|
H A D | Makefile.arm | 11 $(error Cannot build arm32 tests as EFI apps) 37 # arm specific tests 38 tests =
|
H A D | micro-bench.c | 68 printf("No supported gic present, skipping tests...\n"); in test_init() 73 printf("At least two cpus required, skipping tests...\n"); in test_init() 308 static struct exit_test tests[] = { variable 406 for (i = 0; i < ARRAY_SIZE(tests); i++) { in main() 407 if (!tests[i].run) in main() 409 assert(tests[i].name && tests[i].exec); in main() 410 loop_test(&tests[i]); in main()
|
/kvm-unit-tests/x86/efi/ |
H A D | README.md | 1 # Build kvm-unit-tests and run under UEFI 5 This dir provides code to build kvm-unit-tests test cases and run them under 58 kvm-unit-tests follows a similar build process, but does not link with GNU-EFI 60 ### Startup code for kvm-unit-tests in UEFI 62 This dir also contains kvm-unit-tests startup code in UEFI: 63 - efistart64.S: startup code for kvm-unit-tests in UEFI
|
/kvm-unit-tests/lib/x86/ |
H A D | amd_sev.c | 2 * AMD SEV support in kvm-unit-tests 72 * Copy UEFI's #VC IDT entry, so KVM-Unit-Tests can reuse it and does in setup_amd_sev_es() 74 * segment to use KVM-Unit-Tests segments, KERNEL_CS, so that we do not in setup_amd_sev_es() 75 * have to copy the UEFI GDT entries into KVM-Unit-Tests GDT. in setup_amd_sev_es() 79 * handler in kvm-unit-tests and load it, so that kvm-unit-tests does in setup_amd_sev_es()
|
/kvm-unit-tests/powerpc/ |
H A D | Makefile.common | 7 tests-common = \ 23 tests-all = $(tests-common) $(tests) 24 all: directories $(TEST_DIR)/boot_rom.bin $(tests-all) 94 $(tests-all:.elf=.o) $(cstart.o) $(cflatobjs): $(generated-files)
|
H A D | Makefile.ppc64 | 25 # ppc64 specific tests 26 tests = $(TEST_DIR)/spapr_vpa.elf
|
/kvm-unit-tests/docs/ |
H A D | unittests.txt | 10 Detailed output from run_tests.sh unit tests are stored in files under 79 'qemu_params' for new tests. 95 - Tests in the "nodefault" group are not run by default (with no -g option). 96 - Tests in the "migration" group are run with the migration harness and 98 - Tests in the "panic" group expect QEMU to enter the GUEST_PANICKED state. 135 This can be used to prevent running a test when kvm-unit-tests is configured a
|
/kvm-unit-tests/riscv/ |
H A D | Makefile | 13 tests = macro 14 tests += $(TEST_DIR)/sbi.$(exe) 15 tests += $(TEST_DIR)/selftest.$(exe) 16 tests += $(TEST_DIR)/sieve.$(exe) 17 tests += $(TEST_DIR)/isa-dbltrp.$(exe) 19 all: $(tests) 144 $(tests:.$(exe)=.o) $(cstart.o) $(cflatobjs) $(all_deps): $(generated-files)
|
/kvm-unit-tests/lib/ |
H A D | report.c | 16 static unsigned int tests, failures, xfailures, kfailures, skipped; variable 25 tests++; in report_passed() 102 tests++; in va_report() 206 printf("SUMMARY: %d tests", tests); in report_summary() 217 if (tests == skipped) { in report_summary()
|