26 Sep, 2011

2 commits

  • The vmexit tracepoints format the exit_reason to make it human-readable.
    Since the exit_reason depends on the instruction set (vmx or svm),
    formatting is handled with ftrace_print_symbols_seq() by referring to
    the appropriate exit reason table.

    However, the ftrace_print_symbols_seq() function is not meant to be used
    directly in tracepoints since it does not export the formatting table
    which userspace tools like trace-cmd and perf use to format traces.

    In practice perf dies when formatting vmexit-related events and
    trace-cmd falls back to printing the numeric value (with extra
    formatting code in the kvm plugin to paper over this limitation). Other
    userspace consumers of vmexit-related tracepoints would be in similar
    trouble.

    To avoid significant changes to the kvm_exit tracepoint, this patch
    moves the vmx and svm exit reason tables into arch/x86/kvm/trace.h and
    selects the right table with __print_symbolic() depending on the
    instruction set. Note that __print_symbolic() is designed for exporting
    the formatting table to userspace and allows trace-cmd and perf to work.

    Signed-off-by: Stefan Hajnoczi
    Signed-off-by: Avi Kivity

    Stefan Hajnoczi
     
  • The kvm_exit tracepoint recently added the isa argument to aid decoding
    exit_reason. The semantics of exit_reason depend on the instruction set
    (vmx or svm) and the isa argument allows traces to be analyzed on other
    machines.

    Add the isa argument to kvm_nested_vmexit and kvm_nested_vmexit_inject
    so these tracepoints can also be self-describing.

    Signed-off-by: Stefan Hajnoczi
    Signed-off-by: Avi Kivity

    Stefan Hajnoczi
     

24 Jul, 2011

1 commit


12 Jul, 2011

2 commits


10 Mar, 2011

1 commit


12 Jan, 2011

2 commits


17 May, 2010

4 commits


25 Apr, 2010

2 commits


01 Mar, 2010

3 commits


03 Dec, 2009

6 commits


10 Sep, 2009

3 commits