[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5308BA35.3070603@redhat.com>
Date: Sat, 22 Feb 2014 15:54:45 +0100
From: Paolo Bonzini <pbonzini@...hat.com>
To: "Liu, Jinsong" <jinsong.liu@...el.com>
CC: "gleb@...hat.com" <gleb@...hat.com>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"qemu-devel@...gnu.org" <qemu-devel@...gnu.org>
Subject: Re: [PATCH] KVM: x86: expose new instruction RDSEED to guest
Il 21/02/2014 18:33, Liu, Jinsong ha scritto:
> From 24ffdce9efebf13c6ed4882f714b2b57ef1141eb Mon Sep 17 00:00:00 2001
> From: Liu Jinsong <jinsong.liu@...el.com>
> 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 <xudong.hao@...el.com>
> Signed-off-by: Liu Jinsong <jinsong.liu@...el.com>
> ---
> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists