Skip to content

Emulator intercept frameworks

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: x86 emulator: add framework for instruction interceptsarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c arch/x86/kvm/x86.c+55 -00 replies
2/2KVM: x86 emulator: add SVM interceptsarch/x86/include/asm/kvm_emulate.h arch/x86/kvm/emulate.c+48 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Emulator intercept frameworks

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