From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Yang, Wei" Subject: [PATCH] Enable ERMS feature support for KVM Date: Tue, 14 Jun 2011 15:19:06 +0800 Message-ID: <1308035946-5029-1-git-send-email-wei.y.yang@intel.com> Cc: kvm@vger.kernel.org, "Yang, Wei" To: avi@redhat.com Return-path: Received: from mga03.intel.com ([143.182.124.21]:1777 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754233Ab1FNHUm (ORCPT ); Tue, 14 Jun 2011 03:20:42 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This patch exposes ERMS feature to KVM guests. The REP MOVSB/STOSB instruction can enhance fast strings attempts to move as much of the data with larger size load/stores as possible. Signed-off-by: Yang, Wei --- 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..21fd313 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -2361,7 +2361,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, /* cpuid 7.0.ebx */ const u32 kvm_supported_word9_x86_features = - F(SMEP); + F(SMEP) | F(ERMS); /* all calls to cpuid_count() should be made on the same cpu */ get_cpu(); -- 1.7.1