From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCHv3 0/5] improve speed of "rep ins" emulation Date: Thu, 19 Jul 2012 10:34:32 +0300 Message-ID: <20120719073432.GN26120@redhat.com> References: <1342094201-12167-1-git-send-email-gleb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, mtosatti@redhat.com To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55979 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750991Ab2GSHef (ORCPT ); Thu, 19 Jul 2012 03:34:35 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6J7YZYC032206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 19 Jul 2012 03:34:35 -0400 Content-Disposition: inline In-Reply-To: <1342094201-12167-1-git-send-email-gleb@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: NACK. Found bugs. On Thu, Jul 12, 2012 at 02:56:36PM +0300, Gleb Natapov wrote: > With this patches loading 100M initrd takes ~10s instead of ~40s without. > > Changelog: > v2->v3 > - Fix incorrect size parameter for linearize() notices by Marcelo. > - Get rid of linearize() callback in emulation ops. > > v1->v2 > - add segment check and mask rcx/rdi correctly drying increment. > > Gleb Natapov (5): > KVM: Provide userspace IO exit completion callback. > KVM: emulator: make x86 emulation modes enum instead of defines > KVM: emulator: move some address manipulation function out of > emulator code. > KVM: emulator: make linearize() callable from outside of emulator > KVM: Provide fast path for "rep ins" emulation if possible. > > arch/x86/include/asm/kvm_emulate.h | 38 +++-- > arch/x86/include/asm/kvm_host.h | 32 ++++ > arch/x86/kvm/emulate.c | 133 ++++++++-------- > arch/x86/kvm/svm.c | 20 ++- > arch/x86/kvm/vmx.c | 25 ++- > arch/x86/kvm/x86.c | 305 ++++++++++++++++++++++++++++-------- > 6 files changed, 395 insertions(+), 158 deletions(-) > > -- > 1.7.10 > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Gleb.