From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHDyk-0008It-NH for qemu-devel@nongnu.org; Sat, 22 Feb 2014 09:55:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHDyf-0003GM-Ls for qemu-devel@nongnu.org; Sat, 22 Feb 2014 09:54:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHDyf-0003GF-Dw for qemu-devel@nongnu.org; Sat, 22 Feb 2014 09:54:53 -0500 Message-ID: <5308BA35.3070603@redhat.com> Date: Sat, 22 Feb 2014 15:54:45 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] KVM: x86: expose new instruction RDSEED to guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Liu, Jinsong" Cc: "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" , "gleb@redhat.com" , "linux-kernel@vger.kernel.org" Il 21/02/2014 18:33, Liu, Jinsong ha scritto: > From 24ffdce9efebf13c6ed4882f714b2b57ef1141eb Mon Sep 17 00:00:00 2001 > From: Liu Jinsong > Date: Thu, 20 Feb 2014 17:38:26 +0800 > Subject: [PATCH] KVM: x86: expose new instruction RDSEED to guest > > RDSEED instruction return a random number, which supplied by a > cryptographically secure, deterministic random bit generator(DRBG). > > Signed-off-by: Xudong Hao > Signed-off-by: Liu Jinsong > --- > arch/x86/kvm/cpuid.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c > index c697625..abe18b4 100644 > --- a/arch/x86/kvm/cpuid.c > +++ b/arch/x86/kvm/cpuid.c > @@ -303,7 +303,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, > /* cpuid 7.0.ebx */ > const u32 kvm_supported_word9_x86_features = > F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) | > - F(BMI2) | F(ERMS) | f_invpcid | F(RTM); > + F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(RDSEED); > > /* all calls to cpuid_count() should be made on the same cpu */ > get_cpu(); > Applied to kvm/queue, thanks. Paolo