Re: [Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-27 Thread Paolo Bonzini
Il 27/09/2013 10:36, Michael Ellerman ha scritto: > So have the host kernel read from the hwrng, export it to userspace via > a char device, which is then read by qemu, which then copies it back > into the host kernel, which can then give it to the guest. > > Or from the guest perspective, instead

Re: [Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-27 Thread Michael Ellerman
On Thu, 2013-09-26 at 13:06 +0200, Alexander Graf wrote: > On 26.09.2013, at 08:37, Michael Ellerman wrote: > > > Some powerpc systems have support for a hardware random number generator > > (hwrng). If such a hwrng is present the host kernel can provide access > > to it via the H_RANDOM hcall. >

Re: [Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-26 Thread Alexander Graf
On 26.09.2013, at 08:37, Michael Ellerman wrote: > Some powerpc systems have support for a hardware random number generator > (hwrng). If such a hwrng is present the host kernel can provide access > to it via the H_RANDOM hcall. > > The kernel advertises the presence of a hwrng with the KVM_CAP_

[Qemu-devel] [PATCH] spapr: Add support for hwrng when available

2013-09-25 Thread Michael Ellerman
Some powerpc systems have support for a hardware random number generator (hwrng). If such a hwrng is present the host kernel can provide access to it via the H_RANDOM hcall. The kernel advertises the presence of a hwrng with the KVM_CAP_PPC_HWRNG capability. If this is detected we add the appropri