/kvm-unit-tests/x86/efi/ |
H A D | README.md | 12 - [UEFI firmware](https://github.com/tianocore/edk2): to run test cases in QEMU 45 above-mentioned files in its build process: 48 `elf_x86_64_efi.lds` to organize the sections in a way UEFI recognizes 50 dynamic relocations that may be present in the shared object 55 More details can be found in `GNU-EFI/README.gnuefi`, section "Building 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
|
H A D | crt0-efi-x86_64.S | 11 Redistribution and use in source and binary forms, with or without 17 * Redistributions in binary form must reproduce the above 19 disclaimer in the documentation and/or other materials 29 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 34 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 35 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
H A D | reloc_x86_64.c | 11 Redistribution and use in source and binary forms, with or without 17 * Redistributions in binary form must reproduce the above 19 disclaimer in the documentation and/or other materials 29 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 34 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 35 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
/kvm-unit-tests/ |
H A D | LICENSE | 26 in new free programs; and that you know you can do these things. 52 program will individually obtain patent licenses, in effect making the 69 language. (Hereinafter, translation is included without limitation in 80 source code as you receive it, in any medium, provided that you 88 you may at your option offer warranty protection in exchange for a fee. 98 b) You must cause any work that you distribute or publish, that in 99 whole or in part contains or is derived from the Program or any 105 interactive use in the most ordinary way, to print or display an 116 and can be reasonably considered independent and separate works in 129 In addition, mere aggregation of another work not based on the Program [all …]
|
H A D | README | 16 in this directory. Test images are created in ./ARCH/\*.flat 52 `make install` will install all tests in PREFIX/share/kvm-unit-tests/tests, 68 By default the runner script searches for a suitable QEMU binary in the system. 95 to. So that a given group can be executed by specifying its name in the 101 inputs, i.e. all args will be available as argv strings in main(). 109 which can then be accessed in the usual ways, e.g. VAL = getenv("KEY"). 110 Any key=val strings can be passed, but some have reserved meanings in 127 1) Adding 'nodefault' to the groups field for the unit test in the 128 unittests.cfg file. When a unit test is in the nodefault group 133 b) by specifying any other non-nodefault group it is in, [all …]
|
H A D | README.md | 16 in this directory. Test images are created in ./ARCH/\*.flat 52 `make install` will install all tests in PREFIX/share/kvm-unit-tests/tests, 68 By default the runner script searches for a suitable QEMU binary in the system. 95 to. So that a given group can be executed by specifying its name in the 101 inputs, i.e. all args will be available as argv strings in main(). 109 which can then be accessed in the usual ways, e.g. VAL = getenv("KEY"). 110 Any key=val strings can be passed, but some have reserved meanings in 127 1) Adding 'nodefault' to the groups field for the unit test in the 128 unittests.cfg file. When a unit test is in the nodefault group 133 b) by specifying any other non-nodefault group it is in, [all …]
|
H A D | MAINTAINERS | 9 In general, if you have a question about inclusion of a patch, you 26 much other than throw the odd patch in. See below. 34 F: drivers/net/ all files in and below drivers/net 35 F: drivers/net/* all files in drivers/net, but not below 36 F: */net/* all files in "any top level directory"/net 43 matches all files in and below net excluding net/ipv6/ 44 K: Keyword perl extended regex pattern to match content in a
|
H A D | run_tests.sh | 24 -g, --group Only execute tests in the given group 25 -j, --parallel Execute tests in parallel 26 -t, --tap13 Output test results in TAP format 49 # are too long to put in the same test. 54 case "$1" in 106 case "${line:0:4}" in 125 case "${line}" in
|
H A D | .shellcheckrc | 12 # In run_tests.sh line 67: 26 # like a || (b && c), not a || { b && c ; }. The subshell overhead in 27 # kvm-unit-tests is negligible as it's not shell-heavy in the first
|
/kvm-unit-tests/docs/ |
H A D | unittests.txt | 10 Detailed output from run_tests.sh unit tests are stored in files under 20 arbitrary and appears in the status reporting output. 28 while others like arch and accel restrict the configurations in which the 56 Optional, the number of processors created in the machine to run the test. 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 76 - Tests in the "panic" group expect QEMU to enter the GUEST_PANICKED state. 91 Optional timeout in seconds, after which the test will be killed and fail.
|
/kvm-unit-tests/lib/libfdt/ |
H A D | libfdt.h | 71 * device tree has it's sub-blocks in an order that the 76 /* "Can't happen" error indicating a bug in libfdt */ 79 * Should never be returned, if it is, it indicates a bug in 82 /* Errors in device tree content */ 119 #ifndef SWIG /* This function is not useful in Python */ 229 * iterator in the loop. The parent variable be constant or even a 275 * Return: size of DTB header in bytes 283 * Return: size of DTB header in bytes 306 * fdt_move - move a device tree around in memory 340 * returns the string's length in *lenp. [all …]
|
H A D | fdt_overlay.c | 17 * @fragment: node offset of the fragment in the overlay 47 * @fragment: node offset of the fragment in the overlay 50 * overlay_get_target() retrieves the target offset in the base 55 * the targeted node offset in the base device tree 83 * target-path property in a node that contains a in overlay_get_target() 349 * @symbols_off: Node offset of the symbols node in the base device tree 350 * @path: Path to a node holding a phandle in the overlay 352 * @name: Name of the property holding the phandle reference in the overlay 358 * a node in the base device tree. 361 * you want all the phandles in the overlay to point to the actual [all …]
|
H A D | libfdt_internal.h | 54 * where unaligned memory reads will be handled in a graceful manner. 92 * version is correctly handled. Inconsistencies or errors in the device 96 * If an error occurs when modifying the tree it may leave the tree in 98 * where there is insufficient space may result in the property name 148 * This is safe to enable in most circumstances, even though it may 149 * leave the tree in a sub-optimal state. 154 * This assumes that the device tree components appear in a 'convenient' 162 * This assumption disables a check in fdt_open_into() and removes the
|
/kvm-unit-tests/lib/s390x/ |
H A D | sie.c | 71 * in home space all the time, we switch every time in sie() because: in sie() 72 * - tests that depend on running in primary space mode don't need to be in sie() 74 * - it avoids regressions in tests in sie() 75 * - switching every time makes it easier to extend this in the future, in sie() 76 * for example to allow tests to run in whatever space they want in sie() 84 /* also handle all interruptions in home space while in SIE */ in sie() 141 /* CRYCB needs to be in the first 2GB */ in sie_guest_create() 147 * sie_guest_alloc() - Allocate memory for a guest and map it in virtual address 149 * @guest_size: the desired size of the guest in bytes. 162 * Start of guest memory in host virtual space needs to be aligned to in sie_guest_alloc()
|
H A D | hardware.c | 20 /* The string "QEMU" in EBCDIC */ 22 /* The string "KVM/" in EBCDIC */ 38 * If the manufacturer string is "QEMU" in EBCDIC, then we in do_detect_host() 39 * are on TCG (otherwise the string is "IBM" in EBCDIC) in do_detect_host() 47 * If the manufacturer string is "KVM/" in EBCDIC, then we in do_detect_host()
|
H A D | malloc_io.h | 16 * absolute memory in the DMA31 region large enough to contain size 24 * @size: the minimal size allocated in byte. 29 * underlying page allocator fail or in the case of protected 32 * Returns a pointer to the first page in case of success, NULL otherwise.
|
/kvm-unit-tests/arm/efi/ |
H A D | reloc_aarch64.c | 8 Redistribution and use in source and binary forms, with or without 14 * Redistributions in binary form must reproduce the above 16 disclaimer in the documentation and/or other materials 26 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 31 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 32 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
/kvm-unit-tests/riscv/efi/ |
H A D | reloc_riscv64.c | 10 Redistribution and use in source and binary forms, with or without 16 * Redistributions in binary form must reproduce the above 18 disclaimer in the documentation and/or other materials 28 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 33 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 34 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
/kvm-unit-tests/s390x/ |
H A D | emulator.c | 20 uint64_t in = (cc << 28) | (key << 24); in __test_spm_ipm() local 27 : "+r"(out) : "r"(in) : "cc"); in __test_spm_ipm() 32 report(!((in ^ out) & 0x3f000000UL), "cc and key applied"); in __test_spm_ipm() 128 * might simply mask valid codes in query but they might still work */ in __test_cpacf_invalid_func() 166 report(cpacf_query_func(opcode, 0), "query indicated in query"); in __test_basic_cpacf_opcode() 263 /* DXC (0xff) is to be stored in LC and FPC on a trap (CRT) with AFP */ in test_dxc() 273 report(lowcore.dxc_vxc == 0xff, "dxc in LC"); in test_dxc() 274 report(get_fpc_dxc() == 0xff, "dxc in FPC"); in test_dxc() 277 /* DXC (0xff) is to be stored in LC only on a trap (CRT) without AFP */ in test_dxc() 290 report(lowcore.dxc_vxc == 0xff, "dxc in LC"); in test_dxc() [all …]
|
H A D | sclp.c | 60 * address is invalid, in which case nothing is copied. 63 * used many times in a row, at different addresses. 65 * Returns true in case of success or false in case of failure 111 * The parameter sccb_len indicates the value that will be saved in the SCCB 113 * template that need to be copied to the actual test address. In many cases 117 * Returns true in case of success or false in case of failure 155 * Test SCCBs whose address is in the lowcore or prefix area. 180 * testing with SCCB addresses in the lowcore; since we can't in test_sccb_prefix() 218 /* addresses with 1 bit set in the first 33 bits */ in test_sccb_high() 221 /* addresses with 2 consecutive bits set in the first 33 bits */ in test_sccb_high() [all …]
|
H A D | mvpg.c | 29 /* How many iterations to perform in the loops */ 82 * the r1 and r2 fields in the instruction format. The r1 and r2 fields are 83 * in the last byte of the instruction, and the Program Old PSW will point 85 * (the fixup code in the interrupt handler takes care of that for 87 * before the one contained in the Program Old PSW with the value of the 102 * Key Function Control values 4 and 5 are allowed only in supervisor in test_exceptions() 124 * reserved bits, should result in a specification exception in test_exceptions() 138 /* Operands outside memory result in addressing exceptions, as usual */ in test_exceptions() 158 /* Test successful scenarios, both in supervisor and problem state */ in test_success() 252 /* Known issue in TCG: CCO flag is not honoured */ in test_mmu_prot()
|
H A D | firq.c | 31 * accidentially detecting a stopped CPU as waiting and resulting in the actually 52 * interrupt on CPU #1 while it is in the wait state. in test_wait_state_delivery() 63 * CONDITIONAL EMERGENCY SIGNAL if CPU #1 is already in the in test_wait_state_delivery() 69 * either already in wait_for_sclp_int() or just about to execute it. in test_wait_state_delivery()
|
/kvm-unit-tests/x86/ |
H A D | cet.c | 22 printf("The return-address in shadow-stack = 0x%lx, in normal stack = 0x%lx\n", in cet_shstk_func() 26 * In below line, it modifies the return address, it'll trigger #CP in cet_shstk_func() 40 * In below assembly code, the first instruction at label 2 is not in cet_ibt_func() 60 printf("In #CP exception handler, error_code = 0x%lx\n", in handle_cp() 111 /* Enable CET master control bit in CR4. */ in main()
|
/kvm-unit-tests/lib/linux/ |
H A D | const.h | 6 /* Some constant macros are used in both assembler and 11 * Similarly, _AT() will cast an expression with a type in C, but 12 * leave it unchanged in asm.
|
/kvm-unit-tests/lib/ |
H A D | acpi.h | 36 u32 length; /* XSDT Length in bytes including hdr */ 44 u32 length; /* Length of table, in bytes, including header */ \ 70 u8 bit_width; /* Size in bits of given register */ 102 u8 gpe1_base; /* Offset in gpe model where gpe1 events start */ 107 u16 flush_stride; /* Stride used in flushing caches */ 108 u8 duty_offset; /* Bit location of duty cycle field in p_cnt reg */ 109 u8 duty_width; /* Bit width of duty cycle field in p_cnt reg */ 110 u8 day_alrm; /* Index to day-of-month alarm in RTC CMOS RAM */ 111 u8 mon_alrm; /* Index to month-of-year alarm in RTC CMOS RAM */ 112 u8 century; /* Index to century in RTC CMOS RAM */ [all …]
|