public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Paul Mackerras <paulus@samba.org>
Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org,
	Michael Ellerman <michael@ellerman.id.au>
Subject: Re: [PATCH 4/5] KVM: PPC: Book3S HV: Add fast real-mode H_RANDOM implementation.
Date: Wed, 17 Dec 2014 22:23:59 +0100	[thread overview]
Message-ID: <5491F46F.4000603@suse.de> (raw)
In-Reply-To: <1417573842-32101-5-git-send-email-paulus@samba.org>



On 03.12.14 03:30, Paul Mackerras wrote:
> From: Michael Ellerman <michael@ellerman.id.au>
> 
> Some PowerNV systems include a hardware random-number generator.
> This HWRNG is present on POWER7+ and POWER8 chips and is capable of
> generating one 64-bit random number every microsecond.  The random
> numbers are produced by sampling a set of 64 unstable high-frequency
> oscillators and are almost completely entropic.
> 
> PAPR defines an H_RANDOM hypercall which guests can use to obtain one
> 64-bit random sample from the HWRNG.  This adds a real-mode
> implementation of the H_RANDOM hypercall.  This hypercall was
> implemented in real mode because the latency of reading the HWRNG is
> generally small compared to the latency of a guest exit and entry for
> all the threads in the same virtual core.
> 
> Userspace can detect the presence of the HWRNG and the H_RANDOM
> implementation by quering the KVM_CAP_PPC_HWRNG capability.  The
> H_RANDOM hypercall implementation will only be invoked when the guest
> does an H_RANDOM hypercall if userspace first enables the in-kernel
> H_RANDOM implementation using the KVM_CAP_PPC_ENABLE_HCALL capability.
> 
> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
> Signed-off-by: Paul Mackerras <paulus@samba.org>

This conflicts with the per-cpu cleanups. I've pulled the patch from my
queue. Please rebase it once we've got everything merged together and
resubmit.


Alex

  reply	other threads:[~2014-12-17 21:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-03  2:30 [PATCH 0/5] Fixes and improvements for HV KVM on PPC Paul Mackerras
2014-12-03  2:30 ` [PATCH 1/5] KVM: PPC: Book3S HV: Remove code for PPC970 processors Paul Mackerras
2014-12-03  2:30 ` [PATCH 2/5] KVM: PPC: Book3S HV: Fix endianness of instruction obtained from HEIR register Paul Mackerras
2014-12-03  2:30 ` [PATCH 3/5] KVM: PPC: Book3S HV: Improve H_CONFER implementation Paul Mackerras
2014-12-03  2:30 ` [PATCH 4/5] KVM: PPC: Book3S HV: Add fast real-mode H_RANDOM implementation Paul Mackerras
2014-12-17 21:23   ` Alexander Graf [this message]
2014-12-03  2:30 ` [PATCH 5/5] KVM: PPC: Book3S: Enable in-kernel XICS emulation by default Paul Mackerras
2014-12-17 12:56 ` [PATCH 0/5] Fixes and improvements for HV KVM on PPC Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5491F46F.4000603@suse.de \
    --to=agraf@suse.de \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=michael@ellerman.id.au \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox