public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Emulator intercept frameworks
@ 2010-12-05 10:18 Avi Kivity
  2010-12-05 10:18 ` [PATCH 1/2] KVM: x86 emulator: add framework for instruction intercepts Avi Kivity
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Avi Kivity @ 2010-12-05 10:18 UTC (permalink / raw)
  To: Joerg Roedel; +Cc: kvm, Marcelo Tosatti

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(-)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-02-03 16:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-05 10:18 [PATCH 0/2] Emulator intercept frameworks Avi Kivity
2010-12-05 10:18 ` [PATCH 1/2] KVM: x86 emulator: add framework for instruction intercepts Avi Kivity
2010-12-05 10:18 ` [PATCH 2/2] KVM: x86 emulator: add SVM intercepts Avi Kivity
2010-12-05 11:56   ` Avi Kivity
2010-12-06 10:53 ` [PATCH 0/2] Emulator intercept frameworks Roedel, Joerg
2011-02-03 16:07   ` Avi Kivity
2011-02-03 16:18     ` Roedel, Joerg
2011-02-03 16:30       ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox