diff options
author | Yang, Wei Y <wei.y.yang@intel.com> | 2011-06-13 21:52:33 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-12 13:16:21 +0300 |
commit | 4a00efdf0c7c93dc6f6b3ce7e2d6bd4cd1ac1651 (patch) | |
tree | c6db2aa1b867285a9764f4dd35e4ab25c0ecec1e /arch/x86/kvm | |
parent | 02668b061db1b9f7f18872e594ac68e237db0bed (diff) | |
download | blackbird-op-linux-4a00efdf0c7c93dc6f6b3ce7e2d6bd4cd1ac1651.tar.gz blackbird-op-linux-4a00efdf0c7c93dc6f6b3ce7e2d6bd4cd1ac1651.zip |
KVM: Enable DRNG feature support for KVM
This patch exposes DRNG feature to KVM guests.
The RDRAND instruction can provide software with sequences of
random numbers generated from white noise.
Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 84f46074ca74..6f1e54d0828d 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2345,7 +2345,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, 0 /* Reserved, DCA */ | F(XMM4_1) | F(XMM4_2) | F(X2APIC) | F(MOVBE) | F(POPCNT) | 0 /* Reserved*/ | F(AES) | F(XSAVE) | 0 /* OSXSAVE */ | F(AVX) | - F(F16C); + F(F16C) | F(RDRAND); /* cpuid 0x80000001.ecx */ const u32 kvm_supported_word6_x86_features = F(LAHF_LM) | F(CMP_LEGACY) | 0 /*SVM*/ | 0 /* ExtApicSpace */ | |