From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754583AbbCBNjN (ORCPT ); Mon, 2 Mar 2015 08:39:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39958 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751690AbbCBNjK (ORCPT ); Mon, 2 Mar 2015 08:39:10 -0500 Date: Mon, 2 Mar 2015 14:38:44 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Joel Schopp Cc: Gleb Natapov , Paolo Bonzini , kvm@vger.kernel.org, David Kaplan , Joerg Roedel , Marcelo Tosatti , linux-kernel@vger.kernel.org, Borislav Petkov Subject: Re: [PATCH] x86: svm: use kvm_fast_pio_in() Message-ID: <20150302133844.GA25560@potion.brq.redhat.com> References: <20150228000422.11892.98236.stgit@joelvmguard2.amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150228000422.11892.98236.stgit@joelvmguard2.amd.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2015-02-27 18:04-0600, Joel Schopp: > From: David Kaplan > > We can make the in instruction go faster the same way the out instruction is > already. > > Signed-off-by: David Kaplan > [extracted from larger unlrelated patch, forward ported, tested] > Signed-off-by: Joel Schopp > --- > arch/x86/kvm/svm.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > @@ -1907,6 +1907,8 @@ static int io_interception(struct vcpu_svm *svm) > svm->next_rip = svm->vmcb->control.exit_info_2; > skip_emulated_instruction(&svm->vcpu); > > + if (in) > + return kvm_fast_pio_in(vcpu, size, port); Have I missed a patch that defined kvm_fast_pio_in()? Thanks.