From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH] x86: svm: make wbinvd faster Date: Mon, 2 Mar 2015 15:09:48 +0100 Message-ID: <20150302140947.GB26739@potion.brq.redhat.com> References: <20150228001917.15247.41063.stgit@joelvmguard2.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Gleb Natapov , Paolo Bonzini , kvm@vger.kernel.org, David Kaplan , Joerg Roedel , Marcelo Tosatti , linux-kernel@vger.kernel.org, Borislav Petkov To: Joel Schopp Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34778 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752896AbbCBOKM (ORCPT ); Mon, 2 Mar 2015 09:10:12 -0500 Content-Disposition: inline In-Reply-To: <20150228001917.15247.41063.stgit@joelvmguard2.amd.com> Sender: kvm-owner@vger.kernel.org List-ID: 2015-02-27 18:19-0600, Joel Schopp: > From: David Kaplan > No need to re-decode WBINVD since we know what it is from the interce= pt. >=20 > Signed-off-by: David Kaplan > [extracted from larger unlrelated patch, forward ported, tested] > Signed-off-by: Joel Schopp > --- Reviewed-by: Radim Kr=C4=8Dm=C3=A1=C5=99 > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > +static int wbinvd_interception(struct vcpu_svm *svm) > +{ > + kvm_emulate_wbinvd(&svm->vcpu); > + skip_emulated_instruction(&svm->vcpu); > + return 1; > +} > + > + (One line is optimal.)