From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 0/2] Trace emulated instrucions Date: Thu, 25 Mar 2010 17:02:54 +0200 Message-ID: <1269529376-17650-1-git-send-email-avi@redhat.com> Cc: Marcelo Tosatti , Gleb Natapov To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45445 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754530Ab0CYPC6 (ORCPT ); Thu, 25 Mar 2010 11:02:58 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2PF2wET021231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 25 Mar 2010 11:02:58 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2PF2vpU023899 for ; Thu, 25 Mar 2010 11:02:58 -0400 Sender: kvm-owner@vger.kernel.org List-ID: Add a trace of instruction emulation into ftrace. This can help analyze performance issues, or, in the case of failed emulation, identify the missing instructions. Avi Kivity (2): KVM: x86 emulator: Don't overwrite decode cache KVM: Trace emulated instructions arch/x86/kvm/emulate.c | 19 +++++----- arch/x86/kvm/trace.h | 86 ++++++++++++++++++++++++++++++++++++++++++++++++ arch/x86/kvm/x86.c | 4 ++ 3 files changed, 100 insertions(+), 9 deletions(-)