public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable DRNG feature support for KVM
@ 2011-06-13 13:52 Yang, Wei Y
  2011-06-13 13:57 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Yang, Wei Y @ 2011-06-13 13:52 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm@vger.kernel.org


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>

---
 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 ff4623b..4ddca60 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 */ |
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Enable DRNG feature support for KVM
  2011-06-13 13:52 [PATCH] Enable DRNG feature support for KVM Yang, Wei Y
@ 2011-06-13 13:57 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2011-06-13 13:57 UTC (permalink / raw)
  To: Yang, Wei Y; +Cc: kvm@vger.kernel.org

On 06/13/2011 04:52 PM, Yang, Wei Y wrote:
> 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>

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-13 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 13:52 [PATCH] Enable DRNG feature support for KVM Yang, Wei Y
2011-06-13 13:57 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox