/kvm-unit-tests/lib/ |
H A D | pci-host-generic.c | 2 * Generic PCI host controller as described in PCI Bus Binding to Open Firmware 60 struct pci_addr_space *as; in pci_dt_probe() local 132 as = &host->addr_space[0]; in pci_dt_probe() 137 * cells as follows: in pci_dt_probe() 146 as->type = of_flags_to_pci_type(fdt32_to_cpu(data[0])); in pci_dt_probe() 147 as->pci_start = ((u64)fdt32_to_cpu(data[1]) << 32) | in pci_dt_probe() 151 as->start = fdt32_to_cpu(data[3]); in pci_dt_probe() 152 as->size = ((u64)fdt32_to_cpu(data[4]) << 32) | in pci_dt_probe() 155 as->start = ((u64)fdt32_to_cpu(data[3]) << 32) | in pci_dt_probe() 157 as->size = ((u64)fdt32_to_cpu(data[5]) << 32) | in pci_dt_probe() [all …]
|
H A D | rand.c | 115 * @hash: Output hash as a word array, ordered such that the first word contains 121 * ordering as defined by the specification, that is big endian. 122 * The same applies to interpreting the output array as bytes. 123 * The function computes the same as: printf "%08x" ${input[@]} | xxd -r -p | sha256sum .
|
/kvm-unit-tests/ |
H A D | LICENSE | 70 the term "modification".) Each licensee is addressed as "you". 80 source code as you receive it, in any medium, provided that you 100 part thereof, to be licensed as a whole at no charge to all third 114 These requirements apply to the modified work as a whole. If 118 sections when you distribute them as separate works. But when you 119 distribute the same sections as part of a whole which is a work based 149 c) Accompany it with the information you received as to the offer 159 control compilation and installation of the executable. However, as a 168 access to copy the source code from the same place counts as 173 except as expressly provided under this License. Any attempt [all …]
|
H A D | README | 4 description of this project, as well as running tests and adding 30 clang may be used as an alternative to gcc. 44 The tests can be built as standalone. To create and use standalone tests do: 53 each as a standalone test. 101 inputs, i.e. all args will be available as argv strings in main(). 124 Some tests are not safe to run by default, as they may crash the
|
H A D | README.md | 4 description of this project, as well as running tests and adding 30 clang may be used as an alternative to gcc. 44 The tests can be built as standalone. To create and use standalone tests do: 53 each as a standalone test. 101 inputs, i.e. all args will be available as argv strings in main(). 124 Some tests are not safe to run by default, as they may crash the
|
H A D | .travis.yml | 15 - CONFIG="--arch=ppc64 --endian=little --cc=clang --cflags=-no-integrated-as" 24 - CONFIG="--arch=s390x --cc=clang-11 --cflags=-no-integrated-as"
|
H A D | COPYRIGHT | 6 as published by the Free Software Foundation. See the file LICENSE for details.
|
/kvm-unit-tests/s390x/ |
H A D | firq.c | 31 * accidentially detecting a stopped CPU as waiting and resulting in the actually 67 * until not reported as running -- after all, our SCLP processing in test_wait_state_delivery() 68 * will take some time as well and smp_cpu_setup() returns when we're in test_wait_state_delivery() 84 * SCLP requests as done. in test_wait_state_delivery()
|
H A D | migration-skey.c | 7 * verifies that the storage keys are still as we expect. 64 * Storage keys are 7 bit, lowest bit is always returned as zero in set_test_pattern() 67 * protection as well as reference and change indication for in set_test_pattern()
|
H A D | ex.c | 8 * The execution of the target instruction is the same as if it was executed 9 * normally as part of the instruction sequence, except for the instruction 28 * specified as target.
|
H A D | uv-guest.c | 83 * BIT_UVC_CMD_REMOVE_SHARED_ACCESS are always present as they in test_query() 85 * However, we only need to check for QUI as in test_query() 191 * as the fence tests if both shared bits are present in main()
|
/kvm-unit-tests/x86/ |
H A D | intel-iommu.c | 104 /* We are good as long as we reach here */ in vtd_test_ir() 127 /* We are good as long as we reach here */ in vtd_test_ir()
|
H A D | lam.c | 52 * Use LAM57_MASK as mask to construct non-canonical address if LAM is in get_lam_mask() 58 * Bit 63 determines if the address should be treated as a user address in get_lam_mask() 111 /* invlpg with tagged address is same as NOP, no #GP expected. */ 201 * the return value of alloc_vpage() is considered as kernel mode in test_lam_sup() 234 * identical mapping, the linear address will be considered as user mode in test_lam_user() 235 * address from the view of LAM, and the metadata bits are not used as in test_lam_user()
|
H A D | README | 2 Tests for the x86 architecture are run as kernel images for qemu that support 47 treats the legacy exit status of 0 as an error, converting it to an exit
|
H A D | dummy.c | 6 * scripts/runtime.bash uses this test as a canary to determine if the in main()
|
H A D | msr.c | 14 * 1. msr index as a base 16 number 15 * 2. value as a base 16 number 64 * the desired value as extra bits to set. in __test_msr_rw() 197 * 64-bit hosts. Don't test the negative case, as KVM doesn't in test_mce_msrs() 213 * without jumping to a new base address), as the last unclaimed MSR is in test_mce_msrs()
|
/kvm-unit-tests/lib/s390x/ |
H A D | interrupt.c | 112 * @as: specifies the address space mode to use. Not set if use_dat is false. 121 void irq_set_dat_mode(bool use_dat, enum address_space as) in irq_set_dat_mode() argument 132 assert(as == AS_PRIM || as == AS_ACCR || as == AS_SECN || as == AS_HOME); in irq_set_dat_mode() 138 psw->as = as; in irq_set_dat_mode()
|
H A D | css_lib.c | 151 /* We keep track of the first device as our test device */ in css_enumerate() 229 * we consider both cases as errors. in css_enable() 295 * we consider both cases as errors. in schib_update_mb() 361 /* Lowlevel set the SID as interrupt parameter. */ in css_irq_io() 382 report_fail("tsch reporting sch %08x as not operational", sid); in css_irq_io() 498 * @isc: The interruption Sub Class as a bitfield
|
/kvm-unit-tests/x86/efi/ |
H A D | run | 38 # This host dir will be loaded by QEMU as a FAT32 image 53 # Also, pass in an EFI-specific smp count (i.e., `-smp 1`) as the last argument
|
/kvm-unit-tests/arm/ |
H A D | dummy.c | 6 * scripts/runtime.bash uses this test as a canary to determine if the in main()
|
H A D | Makefile.arm | 11 $(error Cannot build arm32 tests as EFI apps)
|
/kvm-unit-tests/riscv/efi/ |
H A D | crt0-efi-riscv64.S | 15 * GNU General Public License as published by the Free Software Foundation; 118 * dummy section as far as we are concerned.
|
/kvm-unit-tests/lib/s390x/asm/ |
H A D | bitops.h | 3 * Bitops taken from the kernel as most developers are already used
|
/kvm-unit-tests/lib/riscv/asm/ |
H A D | isa.h | 8 * We assume and use several extensions, such as Zicsr and Zifencei.
|
/kvm-unit-tests/lib/libfdt/ |
H A D | libfdt_internal.h | 83 * You should have another method of validating the device tree, such as a 97 * an intermediate (but valid) state. As an example, adding a property 147 * steps (such as dropping the property name from the string table).
|