/qemu/util/ |
H A D | guest-random.c | 80 void qemu_guest_random_seed_thread_part2(uint64_t seed) in qemu_guest_random_seed_thread_part2() argument 85 g_rand_new_with_seed_array((const guint32 *)&seed, in qemu_guest_random_seed_thread_part2() 86 sizeof(seed) / sizeof(guint32)); in qemu_guest_random_seed_thread_part2() 92 uint64_t seed; in qemu_guest_random_seed_main() local 93 if (parse_uint_full(seedstr, 0, &seed)) { in qemu_guest_random_seed_main() 98 qemu_guest_random_seed_thread_part2(seed); in qemu_guest_random_seed_main()
|
/qemu/tests/image-fuzzer/ |
H A D | runner.py | 121 def __init__(self, test_id, seed, work_dir, run_log, argument 128 if seed is not None: 129 self.seed = seed 131 self.seed = str(random.randint(0, sys.maxsize)) 132 random.seed(self.seed) 241 % (self.seed, " ".join(current_cmd), 330 def run_test(test_id, seed, work_dir, run_log, cleanup, log_all, argument 334 test = TestEnv(test_id, seed, work_dir, run_log, cleanup, 365 seed = None variable 384 seed = arg variable [all …]
|
/qemu/tests/tcg/multiarch/ |
H A D | vma-pthread.c | 121 unsigned int seed; in thread_mutate() local 124 seed = (unsigned int)time(NULL); in thread_mutate() 126 start_idx = rand_r(&seed) & PAGE_IDX_MASK; in thread_mutate() 127 end_idx = rand_r(&seed) & PAGE_IDX_MASK; in thread_mutate() 133 prot = rand_r(&seed) & (PROT_READ | PROT_WRITE | PROT_EXEC); in thread_mutate()
|
/qemu/hw/misc/ |
H A D | xlnx-versal-trng.c | 175 static void trng_seed_128(uint32_t *seed, uint64_t h00, uint64_t h64) in trng_seed_128() argument 177 seed[0] = extract64(h00, 0, 32); in trng_seed_128() 178 seed[1] = extract64(h00, 32, 32); in trng_seed_128() 179 seed[2] = extract64(h64, 0, 32); in trng_seed_128() 180 seed[3] = extract64(h64, 32, 32); in trng_seed_128() 198 guint32 gs[U384_U32 * 2], *seed = &gs[U384_U32]; in trng_reseed() local 235 memcpy(seed, &s->regs[R_EXT_SEED_0], U384_U8); in trng_reseed() 237 trng_seed_128(seed, s->tst_seed[0], s->tst_seed[1]); in trng_reseed() 240 trng_seed_128(seed, s->forced_prng_count, s->forced_prng_seed); in trng_reseed() 242 qemu_guest_getrandom_nofail(seed, U384_U8); in trng_reseed()
|
/qemu/tests/qtest/ |
H A D | xlnx-versal-trng-test.c | 243 static void trng_reseed(const uint32_t *seed) in trng_reseed() argument 254 if (seed) { in trng_reseed() 255 trng_load(R_TRNG_EXT_SEED_0, seed); in trng_reseed() 419 const uint64_t seed = 0xdeadbeefbad1bad0ULL; in trng_test_forced_prng() local 426 trng_test_set_uint_prop(prop, seed); in trng_test_forced_prng()
|
H A D | vhost-user-test.c | 695 static void write_guest_mem(TestServer *s, uint32_t seed) in write_guest_mem() argument 721 guest_mem[j] = seed + j; in write_guest_mem()
|
/qemu/tests/bench/ |
H A D | qht-bench.c | 35 uint64_t seed; member 141 uint64_t r = info->seed - 1; in do_rz() 162 uint64_t r = info->seed - 1; in do_rw() 220 info->seed = xorshift64star(info->seed); in thread_func() 233 info->seed = (i + 1) ^ time(NULL); in prepare_thread_info()
|
/qemu/tests/qtest/fuzz/ |
H A D | fuzz.h | 100 unsigned int seed); 120 unsigned int seed);
|
H A D | fuzz.c | 134 unsigned int seed) in LLVMFuzzerCustomCrossOver() argument 138 max_out_size, seed); in LLVMFuzzerCustomCrossOver()
|
H A D | generic_fuzz.c | 855 size_t max_out_size, unsigned int seed) in generic_fuzz_crossover() argument
|
/qemu/target/arm/tcg/ |
H A D | mte_helper.c | 212 int seed = extract32(env->cp15.rgsr_el1, 8, 16); in HELPER() local 222 if (unlikely(seed == 0) && rrnd) { in HELPER() 237 seed = two; in HELPER() 238 } while (seed == 0); in HELPER() 244 int top = (extract32(seed, 5, 1) ^ extract32(seed, 3, 1) ^ in HELPER() 245 extract32(seed, 2, 1) ^ extract32(seed, 0, 1)); in HELPER() 246 seed = (top << 15) | (seed >> 1); in HELPER() 250 env->cp15.rgsr_el1 = rtag | (seed << 8); in HELPER()
|
/qemu/docs/ |
H A D | image-fuzzer.txt | 40 keyboard interruption. But if a test seed is specified via the '--seed' runner 41 parameter, then only one test with this seed will be executed, after its finish 154 Random seed is set by the runner at every test execution for the regression 167 - seed (optional) 185 7. Should accept a seed as an argument (for regression purpose) 186 8. Should generate a seed if it is not specified as an input parameter. 187 9. The same seed should generate the same image for the same action vector, 217 The fuzzer can be controlled via template, seed and action vector; 238 Test image is an output image of the fuzzer defined by the current seed and
|
/qemu/pc-bios/s390-ccw/ |
H A D | netmain.c | 123 uint64_t seed; in seed_rng() local 125 asm volatile(" stck %0 " : : "Q"(seed) : "memory"); in seed_rng() 126 seed ^= (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | mac[5]; in seed_rng() 127 srand(seed); in seed_rng()
|
/qemu/include/qemu/ |
H A D | guest-random.h | 42 void qemu_guest_random_seed_thread_part2(uint64_t seed);
|
/qemu/tests/docker/ |
H A D | test-fuzz | 27 "${fuzzer}" -runs=1 -seed=1 || exit 1 ;
|
/qemu/docs/system/arm/ |
H A D | virt.rst | 194 rng-seed and kaslr-seed nodes (in both "/chosen" and 200 the firmware to come up with a seed and pass it on if it wants to. 202 dtb-kaslr-seed
|
/qemu/target/mips/tcg/system/ |
H A D | cp0_helper.c | 207 static uint32_t seed = 1; in cpu_mips_get_random() local 222 seed = 1103515245 * seed + 12345; in cpu_mips_get_random() 223 idx = (seed >> 16) % nb_rand_tlb + env->CP0_Wired; in cpu_mips_get_random()
|
/qemu/hw/arm/ |
H A D | virt.c | 246 } seed; in create_randomness() local 248 if (qemu_guest_getrandom(&seed, sizeof(seed), NULL)) { in create_randomness() 251 qemu_fdt_setprop_u64(ms->fdt, node, "kaslr-seed", seed.kaslr); in create_randomness() 252 qemu_fdt_setprop(ms->fdt, node, "rng-seed", seed.rng, sizeof(seed.rng)); in create_randomness()
|
/qemu/target/tricore/ |
H A D | op_helper.c | 2344 uint32_t seed = extract32(arg2, 0, n); in helper_crcn() local 2355 seed = ~seed; in helper_crcn() 2359 crc_in = (data >> (m - n)) ^ seed; in helper_crcn() 2361 crc_in = (data << (n - m)) ^ seed; in helper_crcn()
|
/qemu/docs/about/ |
H A D | deprecated.rst | 310 Arm ``virt`` machine ``dtb-kaslr-seed`` property (since 7.1) 313 The ``dtb-kaslr-seed`` property on the ``virt`` board has been 316 the device tree blob, not just the ``kaslr-seed`` node.
|
/qemu/scripts/ |
H A D | minikconf.py | 671 random.seed()
|
/qemu/tests/unit/ |
H A D | pkix_asn1_tab.c.inc | 593 {"seed", 1073741830, 0},
|
/qemu/docs/devel/ |
H A D | reset.rst | 44 value on each cold reset, such as RNG seed information, and which they
|
/qemu/target/riscv/insn_trans/ |
H A D | trans_rvi.c.inc | 243 /* seed third word with 1, which will be result */
|
/qemu/target/riscv/ |
H A D | csr.c | 792 static RISCVException seed(CPURISCVState *env, int csrno) in seed() function 5777 [CSR_SEED] = { "seed", seed, NULL, NULL, rmw_seed },
|