Home
last modified time | relevance | path

Searched refs:guest_random_state (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/tools/testing/selftests/kvm/include/
Dtest_util.h90 struct guest_random_state { struct
95 extern struct guest_random_state guest_rng; argument
97 struct guest_random_state new_guest_random_state(uint32_t seed);
98 uint32_t guest_random_u32(struct guest_random_state *state);
100 static inline bool __guest_random_bool(struct guest_random_state *state, in __guest_random_bool()
106 static inline bool guest_random_bool(struct guest_random_state *state) in guest_random_bool()
111 static inline uint64_t guest_random_u64(struct guest_random_state *state) in guest_random_u64()
/linux-6.12.1/tools/testing/selftests/kvm/lib/
Dtest_util.c26 struct guest_random_state new_guest_random_state(uint32_t seed) in new_guest_random_state()
28 struct guest_random_state s = {.seed = seed}; in new_guest_random_state()
32 uint32_t guest_random_u32(struct guest_random_state *state) in guest_random_u32()
Dmemstress.c51 struct guest_random_state rand_state; in memstress_guest_code()
Dkvm_util.c23 struct guest_random_state guest_rng;