Skip to content

Trace emulated instrucions

Avi Kivity kvm 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- trace all emulation starts
- add missing statistic increment on failure (long term we need to get rid of those in favour of perf)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86 emulator: Don't overwrite decode cachearch/x86/kvm/emulate.c+10 -90 replies
2/2KVM: Trace emulated instructionsarch/x86/kvm/trace.h arch/x86/kvm/x86.c+90 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Trace emulated instrucions

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.

v2:
- trace all emulation starts
- add missing statistic increment on failure (long term we need to get rid of those in favour of perf)

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