From: Gleb Natapov Subject: [PATCH 0/2] Speedup ins instruction emulation a little Date: Thu, 29 Jul 2010 15:11:51 +0300 Message-ID: <1280405513-579-1-git-send-email-gleb@redhat.com> Cc: kvm@vger.kernel.org To: mtosatti@redhat.com, avi@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11234 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755795Ab0G2MLy (ORCPT ); Thu, 29 Jul 2010 08:11:54 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6TCBsXT017835 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 29 Jul 2010 08:11:54 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Recent emulator changes fixed many bugs and shortcomings in string io instructions emulation (ability to do io into mmio region, proper DF flag handling) but emulation became much slower. Those patches bring some performance back. Gleb Natapov (2): KVM: x86 emulator: don't update vcpu state if instruction is restarted. KVM: x86 emulator: check io permissions only once for string pio arch/x86/include/asm/kvm_emulate.h | 1 + arch/x86/kvm/emulate.c | 6 ++++++ arch/x86/kvm/x86.c | 32 ++++++++++++++------------------ 3 files changed, 21 insertions(+), 18 deletions(-)