diff options
author | Liu, Jinsong <jinsong.liu@intel.com> | 2014-02-21 12:33:32 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-02-22 09:53:33 -0500 |
commit | 0c79893b2bad49e0c391a9499f50fcd5b0f80874 (patch) | |
tree | a6cefad0cad8c6ea1b622bed2ba3687565f9842d /arch/x86/kvm | |
parent | 0d75de4a65d99ba042b050620d479ab74b1919d4 (diff) |
KVM: x86: expose new instruction RDSEED to guest
From 24ffdce9efebf13c6ed4882f714b2b57ef1141eb Mon Sep 17 00:00:00 2001
From: Liu Jinsong <jinsong.liu@intel.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@intel.com>
Signed-off-by: Liu Jinsong <jinsong.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | 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 c6976257eff5..abe18b489e73 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, | |||
303 | /* cpuid 7.0.ebx */ | 303 | /* cpuid 7.0.ebx */ |
304 | const u32 kvm_supported_word9_x86_features = | 304 | const u32 kvm_supported_word9_x86_features = |
305 | F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) | | 305 | F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) | |
306 | F(BMI2) | F(ERMS) | f_invpcid | F(RTM); | 306 | F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | F(RDSEED); |
307 | 307 | ||
308 | /* all calls to cpuid_count() should be made on the same cpu */ | 308 | /* all calls to cpuid_count() should be made on the same cpu */ |
309 | get_cpu(); | 309 | get_cpu(); |