[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when availabl
From: |
Thomas Huth |
Subject: |
Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available |
Date: |
Tue, 1 Sep 2015 12:53:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 01/09/15 02:38, David Gibson wrote:
> On Mon, Aug 31, 2015 at 08:46:01PM +0200, Thomas Huth wrote:
>> From: Michael Ellerman <address@hidden>
>>
>> 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 appropriate device tree bits
>> to advertise the presence of the hwrng to the guest kernel.
>>
>> Signed-off-by: Michael Ellerman <address@hidden>
>> [thuth: Refreshed patch so it applies to QEMU master branch]
>> Signed-off-by: Thomas Huth <address@hidden>
>
> So, I'm confused by one thing.
>
> I thought new kernel handled hcalls were supposed to be disabled by
> default, but I don't see any calls to kvmppc_enable_hcall() to turn on
> H_RANDOM.
Michael's patch was from 2013, the kvmppc_enable_hcall() stuff seems to
be from 2014 ... so the enablement is likely missing in this patch,
indeed. I didn't test the in-kernel hypercall yet, just my QEMU
implementation so far, that's why I did not notice this yet.
Michael, do you want to rework your patch? Or shall I add an additional
enablement patch to my queue?
Thomas
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available,
Thomas Huth <=
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, Sam Bobroff, 2015/09/08
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, David Gibson, 2015/09/08
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, Thomas Huth, 2015/09/09
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, Thomas Huth, 2015/09/10
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, David Gibson, 2015/09/10
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, Thomas Huth, 2015/09/10
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, Alexander Graf, 2015/09/10
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, David Gibson, 2015/09/10
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, Alexander Graf, 2015/09/11
- Re: [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available, David Gibson, 2015/09/13