Commit 3afbbd9
committed
qemu: Fall back to /dev/urandom if KVM RNG can't initialise
Initialising the KVM RNG can fail if KVM_CAP_PPC_HWRNG is not present,
which happens on Power9 hosts prior to kernel commit:
7ef3d06f1bc4 ("powerpc/powernv/kvm: Use darn for H_RANDOM on Power9")
Instead tell qemu to use the KVM RNG if present, but fallback to
/dev/urandom if it is not available.1 parent f351bcc commit 3afbbd9
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
178 | 179 | | |
179 | | - | |
180 | | - | |
181 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
0 commit comments