Commit graph android_kernel_sony_sdm845/include/trace/events/kvm.h
Message SHA1
KVM: cleanup async_pf tracepoints
Use 'DECLARE_EVENT_CLASS' to cleanup async_pf tracepoints

Acked-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Xiao Guangrong   authored and   Avi Kivity   commited 2011-01-12 11:28:57 +02:00
0730388b97
KVM: fix tracing kvm_try_async_get_page
Tracing 'async' and *pfn is useless, since 'async' is always true,
and '*pfn' is always "fault_pfn'

We can trace 'gva' and 'gfn' instead, it can help us to see the
life-cycle of an async_pf

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Xiao Guangrong   authored and   Avi Kivity   commited 2011-01-12 11:28:56 +02:00
c9b263d2be
KVM: x86: trace "exit to userspace" event
Add tracepoint for userspace exit.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Gleb Natapov   authored and   Avi Kivity   commited 2011-01-12 11:28:44 +02:00
64be500706
KVM: Inject asynchronous page fault into a PV guest if page is swapped out.
Send async page fault to a PV guest if it accesses swapped out memory.
Guest will choose another task to run upon receiving the fault.

Allow async page fault injection only when guest is in user mode since
otherwise guest may be in non-sleepable context and will not be able
to reschedule.

Vcpu will be halted if guest will fault on the same page again or if
vcpu executes kernel code.

Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Gleb Natapov   authored and   Avi Kivity   commited 2011-01-12 11:23:17 +02:00
7c90705bf2
KVM: Halt vcpu if page it tries to access is swapped out
If a guest accesses swapped out memory do not swap it in from vcpu thread
context. Schedule work to do swapping and put vcpu into halted state
instead.

Interrupts will still be delivered to the guest and if interrupt will
cause reschedule guest will continue to run another task.

[avi: remove call to get_user_pages_noio(), nacked by Linus; this
      makes everything synchrnous again]

Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Gleb Natapov   authored and   Avi Kivity   commited 2011-01-12 11:21:39 +02:00
af585b921e
KVM: cleanup kvm trace
This patch does:

 - no need call tracepoint_synchronize_unregister() when kvm module
   is unloaded since ftrace can handle it

 - cleanup ftrace's macro

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

Xiao Guangrong   authored and   Avi Kivity   commited 2010-05-17 12:15:22 +03:00
2ed152afc7
KVM: MMU: Add tracepoint for guest page aging
Signed-off-by: Avi Kivity <avi@redhat.com>

Avi Kivity   authored and   Marcelo Tosatti   commited 2010-03-01 12:36:09 -03:00
90bb6fc556
KVM: trace guest fpu loads and unloads
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

Avi Kivity   authored and   Marcelo Tosatti   commited 2010-03-01 12:36:05 -03:00
0c04851c0c
KVM: Add trace points in irqchip code
Add tracepoint in msi/ioapic/pic set_irq() functions,
in IPI sending and in the point where IRQ is placed into
apic's IRR.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

Gleb Natapov   authored and   Avi Kivity   commited 2009-09-10 08:33:11 +03:00
1000ff8d89
KVM: Trace mmio
Signed-off-by: Avi Kivity <avi@redhat.com>

Avi Kivity   commited 2009-09-10 08:33:07 +03:00
aec51dc4f1
KVM: Trace irq level and source id
Signed-off-by: Avi Kivity <avi@redhat.com>

Avi Kivity   commited 2009-09-10 08:33:06 +03:00
ae8c1c4025
KVM: convert custom marker based tracing to event traces
This allows use of the powerful ftrace infrastructure.

See Documentation/trace/ for usage information.

[avi, stephen: various build fixes]
[sheng: fix control register breakage]

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

Marcelo Tosatti   authored and   Avi Kivity   commited 2009-09-10 08:32:59 +03:00
229456fc34