From: Avi Kivity Subject: [PATCH 0/2] Emulator intercept frameworks Date: Sun, 5 Dec 2010 12:18:23 +0200 Message-ID: <1291544305-19739-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org, Marcelo Tosatti To: Joerg Roedel Return-path: Received: from mx1.redhat.com ([209.132.183.28]:17073 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752423Ab0LEKSj (ORCPT ); Sun, 5 Dec 2010 05:18:39 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This patchset defines a framework for intercepting emulated instructions. It takes a middle ground to the two previous proposals: putting everything in an arch callback, or putting everything in the emulator. Instead, it marks each interceptable instruction with an intercept code that it passes to an arch callback. The intercept code can then be used to index a table that looks up the correct VMCB bit and exit reason (for the case of SVM). Joerg, if this looks right to you, please integrate it into your emulator intercept patchset. Avi Kivity (2): KVM: x86 emulator: add framework for instruction intercepts KVM: x86 emulator: add SVM intercepts arch/x86/include/asm/kvm_emulate.h | 55 ++++++++++++++++++++++++++++++++++++ arch/x86/kvm/emulate.c | 50 +++++++++++++++++++++++++------- arch/x86/kvm/x86.c | 9 ++++++ 3 files changed, 103 insertions(+), 11 deletions(-)