qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] how to monitor vm exit
@ 2016-09-01 16:15 Yuxin Ren
  2016-09-15 10:34 ` Stefan Hajnoczi
  0 siblings, 1 reply; 2+ messages in thread
From: Yuxin Ren @ 2016-09-01 16:15 UTC (permalink / raw)
  To: qemu-devel

Hi All,

I have two questions.
1. How can I track how many vm exit happens during vm execution using
KVM under Ubuntu?
2. How can I config KVM to enable/disable conditional vm exiting. For
example, how can I disable WBINVD exiting?

Thanks a lot
Yuxin

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

* Re: [Qemu-devel] how to monitor vm exit
  2016-09-01 16:15 [Qemu-devel] how to monitor vm exit Yuxin Ren
@ 2016-09-15 10:34 ` Stefan Hajnoczi
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2016-09-15 10:34 UTC (permalink / raw)
  To: Yuxin Ren; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 958 bytes --]

On Fri, Sep 02, 2016 at 12:15:57AM +0800, Yuxin Ren wrote:
> 1. How can I track how many vm exit happens during vm execution using
> KVM under Ubuntu?

$ sudo perf record -a -e kvm:kvm_exit
...^C
$ sudo perf report
Samples: 37K of event 'kvm:kvm_exit', Event count (approx.): 37736
Overhead  Trace output
  49.61%  reason IO_INSTRUCTION rip 0x15505 info 610048 0
   8.28%  reason IO_INSTRUCTION rip 0xee8c9 info 4020000 0
   2.32%  reason CR_ACCESS rip 0x656 info 0 0
   2.32%  reason CR_ACCESS rip 0x66d info 0 0
   2.30%  reason IO_INSTRUCTION rip 0xe702 info 920048 0
   2.30%  reason IO_INSTRUCTION rip 0xe71c info 920040 0

There are other tools that can do similar things like trace-cmd or raw
ftrace.

The kvm_stat tool is also good but I don't know if it's packaged for
Ubuntu:
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/sect-Troubleshooting-kvm_stat.html

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

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

end of thread, other threads:[~2016-09-15 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-01 16:15 [Qemu-devel] how to monitor vm exit Yuxin Ren
2016-09-15 10:34 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).