Re: [PATCH] powerpc/kvm: don't crash on missing rng, and use darn

2022-06-24 Thread Jason A. Donenfeld
Hi Fabiano, On Fri, Jun 24, 2022 at 3:43 PM Fabiano Rosas wrote: > > "Jason A. Donenfeld" writes: > > > On POWER8 systems that don't have ibm,power-rng available, a guest that > > ignores the KVM_CAP_PPC_HWRNG flag and calls H_RANDOM anyway will > > dereference a NULL pointer. And on machines wi

Re: [PATCH] powerpc/kvm: don't crash on missing rng, and use darn

2022-06-24 Thread Fabiano Rosas
"Jason A. Donenfeld" writes: > On POWER8 systems that don't have ibm,power-rng available, a guest that > ignores the KVM_CAP_PPC_HWRNG flag and calls H_RANDOM anyway will > dereference a NULL pointer. And on machines with darn instead of > ibm,power-rng, H_RANDOM won't work at all. > > This patch

[PATCH] powerpc/kvm: don't crash on missing rng, and use darn

2022-06-22 Thread Jason A. Donenfeld
On POWER8 systems that don't have ibm,power-rng available, a guest that ignores the KVM_CAP_PPC_HWRNG flag and calls H_RANDOM anyway will dereference a NULL pointer. And on machines with darn instead of ibm,power-rng, H_RANDOM won't work at all. This patch kills two birds with one stone, by routin