Home
last modified time | relevance | path

Searched full:with (Results 1 – 25 of 182) sorted by relevance

12345678

/kvm-unit-tests/lib/
H A Dalloc_page.h5 * with byte granularity.
41 * Allocate aligned memory with the specified flags.
48 * Allocate aligned memory from any area and with default flags.
57 * Allocate 1ull << order naturally aligned pages with the specified flags.
63 * Allocate 1ull << order naturally aligned pages from any area and with
73 * Allocate one page from any area and with default flags.
82 * Frees a memory block allocated with any of the memalign_pages* or
116 * Frees a reserved memory range that had been reserved with
H A Dabort.c9 * When exit(code) is invoked, qemu will exit with ((code << 1) | 1),
10 * leaving us 128 exit status codes. To avoid confusion with signal
12 * exiting with a status < 128. We give abort() the highest (127),
/kvm-unit-tests/lib/powerpc/
H A Dprocessor.c26 * of 0x20 bytes in some cases. Indexing spans 0-0x1000 with 0x20 increments
54 * We run with AIL=0, so interrupts taken with MMU disabled. in do_handle_exception()
106 * interesting. stop with ESL=0 should be simple enough, ESL=1 in sleep_tb()
127 * H_CEDE is called with MSR[EE] clear and enables it as part in sleep_tb()
128 * of the hcall, returning with EE enabled. The dec interrupt in sleep_tb()
190 assert_msg(!in_usermode(), "enter_usermode called with in_usermode"); in enter_usermode()
193 assert_msg(!(mfmsr() & MSR_EE), "enter_usermode called with interrupts enabled"); in enter_usermode()
195 "enter_usermode called with virtual memory disabled"); in enter_usermode()
204 assert_msg(in_usermode(), "enter_usermode called with !in_usermode"); in exit_usermode()
/kvm-unit-tests/lib/linux/
H A Dconst.h1 /* const.h: Macros for dealing with constants. */
7 * C code. Therefore we cannot annotate them always with
9 * use the following macros to deal with this.
11 * Similarly, _AT() will cast an expression with a type in C, but
/kvm-unit-tests/x86/
H A Dsmap.c75 "write from user page with SMAP=0, AC=0, WP=0, PTE.U=1 && PTE.W=0"); in check_smap_nowp()
83 "read from user page with SMAP=1, AC=0, WP=0, PTE.U=1 && PTE.W=0"); in check_smap_nowp()
125 printf("testing with INVLPG\n"); in main()
138 report(pf_count == 0, "read from user page with AC=1"); in main()
144 "read from user page with AC=0"); in main()
151 "write to user page with AC=1"); in main()
157 "read from user page with AC=0"); in main()
174 "write to user stack with AC=1"); in main()
186 "write to user stack with AC=0"); in main()
194 report(pf_count == 0, "executing on user page with AC=0"); in main()
H A DREADME33 sieve: heavy memory access with no paging and with paging static and
34 with paging vmalloc'ed
43 The exit status of the binary is inconsistent; with qemu-system, after
H A Dlam.c96 is_mmio ? "MMIO" : "memory", lam_active ? "with" : "without", in test_ptr()
111 /* invlpg with tagged address is same as NOP, no #GP expected. */
128 report_pass("Expected %sINVLPG with tagged addr to succeed", fep ? "fep: " : ""); in test_invlpg()
155 "Expected INVPCID with untagged pointer + untagged addr to succeed, got vector %u", in test_invpcid()
161 "Expected INVPCID with untagged pointer + tagged addr to #GP, got vector %u", in test_invpcid()
167 "Expected INVPCID with tagged pointer + tagged addr to #GP, got vector %u", in test_invpcid()
175 "Expected INVPCID with tagged pointer + untagged addr to %s, got vector %u", in test_invpcid()
216 /* Test with LAM Supervisor enabled, if supported. */ in test_lam_sup()
/kvm-unit-tests/
H A DREADME35 clang may also be used with cross binutils when cross-compiling. For example,
83 ## Running the tests with UEFI
108 may be passed with '-initrd file' to become the unit test's environ,
145 With the errata condition the unsafe unit test is only run
178 existing files should be consistent with the existing style. For new
181 - C: please use standard linux-with-tabs, see Linux kernel
202 Please prefix messages with: [kvm-unit-tests PATCH]
211 the code files. We also start with common code and finish with unit test
214 with `git config diff.orderFile scripts/git.difforder` enables it.
H A DREADME.md35 clang may also be used with cross binutils when cross-compiling. For example,
83 ## Running the tests with UEFI
108 may be passed with '-initrd file' to become the unit test's environ,
145 With the errata condition the unsafe unit test is only run
178 existing files should be consistent with the existing style. For new
181 - C: please use standard linux-with-tabs, see Linux kernel
202 Please prefix messages with: [kvm-unit-tests PATCH]
211 the code files. We also start with common code and finish with unit test
214 with `git config diff.orderFile scripts/git.difforder` enables it.
H A DLICENSE39 We protect your rights with two steps: (1) copyright the software, and
68 either verbatim or with modifications and/or translated into another
85 along with the Program.
130 with the Program (or with a work based on the Program) on a volume of
138 a) Accompany it with the complete corresponding machine-readable
142 b) Accompany it with a written offer, valid for at least three
149 c) Accompany it with the information you received as to the offer
152 received the program in object code or executable form with such
153 an offer, in accord with Subsection b above.)
162 form) with the major components (compiler, kernel, and so on) of the
[all …]
/kvm-unit-tests/docs/
H A Dunittests.txt7 provide multiple test cases by being run with different host configurations
18 Each unit test is defined with a [unit-test-name] line, followed by
49 any machine type. (Note, the machine can be specified with the MACHINE=
73 - Tests in the "nodefault" group are not run by default (with no -g option).
74 - Tests in the "migration" group are run with the migration harness and
84 specified with ACCEL= environment variable, and defaults to KVM if
/kvm-unit-tests/x86/efi/
H A DREADME.md21 ### Run test cases with UEFI
23 To run a test case with UEFI:
49 2. link the shared object with self-relocator `reloc_x86_64.c` that applies
58 kvm-unit-tests follows a similar build process, but does not link with GNU-EFI
/kvm-unit-tests/powerpc/
H A Dspapr_vpa.c75 report(rc == H_PARAMETER, "Reserved sub-function fails with H_PARAMETER"); in test_register_vpa()
78 report(rc == H_PARAMETER, "Register with invalid proc-no fails"); in test_register_vpa()
81 report(rc == H_PARAMETER, "Register with VPA not cacheline aligned fails"); in test_register_vpa()
85 report(rc == H_PARAMETER, "Register with VPA spanning 4096 bytes fails"); in test_register_vpa()
89 report(rc == H_PARAMETER, "Register with VPA size < 640 bytes fails"); in test_register_vpa()
93 report(rc == H_PARAMETER, "Register with VPA outside guest real memory fails"); in test_register_vpa()
107 report(rc == H_SUCCESS, "Deregister succeeds with no VPA registered"); in test_register_vpa()
110 report(rc == H_PARAMETER, "Deregister with invalid proc-no fails"); in test_register_vpa()
/kvm-unit-tests/s390x/
H A Dmigration-skey.c50 * Set storage key test pattern on pagebuf with a seed for the storage keys.
53 * XOR-ing that with the given seed and then multipling the result with two.
78 * set_test_pattern must have been called with the same seed value.
81 * with verify_failed false. All other fields are then invalid.
83 * be filled with the details on the first mismatch encountered.
H A Dedat.c28 * Check if the exception is consistent with DAT protection and has the correct
86 * Segment protection should work even with EDAT off, try to write in test_dat()
173 * Prefixing should not work with large pages. Since the lower in test_edat1()
174 * addresses are mapped with small pages, which are subject to in test_edat1()
175 * prefixing, and the pages mapped with large pages are not subject in test_edat1()
207 /* Prefixing should not work with huge pages, just like large pages */ in test_edat2()
244 * without interfering with the test code or the interrupt handler in setup()
256 * later to check whether prefixing is working with large pages. in setup()
H A Dsmp.c30 { SIGP_STOP, "stop with invalid CPU address" },
31 { SIGP_START, "start with invalid CPU address" },
32 { SIGP_CPU_RESET, "reset with invalid CPU address" },
33 { SIGP_COND_EMERGENCY_SIGNAL, "conditional emcall with invalid CPU address" },
34 { SIGP_EMERGENCY_SIGNAL, "emcall with invalid CPU address" },
35 { SIGP_EXTERNAL_CALL, "ecall with invalid CPU address" },
37 { SIGP_SENSE, "sense with invalid CPU address" },
38 { SIGP_STOP_AND_STORE_STATUS, "stop and store status with invalid CPU address" },
207 report(cc == 3, "returned with CC = 3"); in test_store_status()
444 /* Make sure to have at least one time with a not running indication */ in test_sense_running()
H A Dflat.lds.S7 * Initial short psw for disk boot, with 31 bit addressing for
48 * stackptr set with initial stack frame preallocated
/kvm-unit-tests/lib/arm/asm/
H A Dgic.h69 * gic_enable_defaults enables the gic with basic but useful
76 * After enabling the gic with gic_enable_defaults the functions
77 * below will work with any supported gic version.
/kvm-unit-tests/riscv/
H A Dsbi-fwft.c96 "Set to %lu with lock flag", test_values[i]); in fwft_feature_lock_test_values()
177 "Set misaligned deleg with invalid value > 32bits"); in fwft_check_misaligned_exc_deleg()
181 "Set misaligned deleg with invalid flag > 32bits"); in fwft_check_misaligned_exc_deleg()
184 /* Set to 0 and check after with get */ in fwft_check_misaligned_exc_deleg()
187 /* Set to 1 and check after with get */ in fwft_check_misaligned_exc_deleg()
345 if (!adue_toggle_and_check_raw(" with high feature bits set", in fwft_check_pte_ad_hw_updating()
357 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, "set to %d with flags=2", !enabled); in fwft_check_pte_ad_hw_updating()
359 if (!adue_toggle_and_check(" with lock", !enabled, 1)) in fwft_check_pte_ad_hw_updating()
/kvm-unit-tests/lib/s390x/
H A Dsnippet-exit.h38 report(value == value_exp, "guest forced exit with value (0x%lx == 0x%lx)", in snippet_check_force_exit_value()
41 report_fail("guest forced exit with value"); in snippet_check_force_exit_value()
H A Dmalloc_io.h19 * with the host.
39 * with the host.
/kvm-unit-tests/lib/arm/
H A Dio.c2 * Each architecture must implement puts() and exit() with the I/O
4 * what's done here, along with initialization functions for those
24 * having earlier printf support. We'll overwrite it with the real
148 * consistent with powerpc and s390x. The runner can pick it in exit()
/kvm-unit-tests/s390x/snippets/c/
H A Dcstart.S17 /* XOR all registers with themselves to clear them fully. */
26 * If main() returns, we stop the CPU with the code below. We also
/kvm-unit-tests/lib/libfdt/
H A Dlibfdt_internal.h102 * Only use this if you have a fully validated device tree with
111 * With this assumption enabled, normal device trees produced by libfdt
125 * functions are called with valid parameters, i.e. not trigger
139 * Only enable this if you know you have a device tree with the latest
160 * device trees with this order.
H A Dlibfdt.h30 * device tree to a buffer with more space. */
85 * or similar property with a bad format or value */
88 /* FDT_ERR_BADVALUE: Device tree has a property with an unexpected
131 * to work even with unaligned pointers on platforms (such as ARMv5) that don't
313 * with the existing device tree blob at fdt. Therefore,
382 * with a value of 0 or -1.
474 * offset parentoffset with the given name. name may include a unit
476 * with that unit address, or the unit address may be omitted, in
521 * structure block offset of the node with the requested path (>=0), on
523 * -FDT_ERR_BADPATH, given path does not begin with '/' or is invalid
[all …]

12345678