All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Mohamad Gebai <mohamad.gebai@polymtl.ca>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	kvm@vger.kernel.org, linux-perf-users@vger.kernel.org
Subject: Re: Tracing kvm: kvm_entry and kvm_exit
Date: Tue, 05 Mar 2013 10:23:54 -0700	[thread overview]
Message-ID: <51362A2A.4070500@gmail.com> (raw)
In-Reply-To: <1362377752.51343c188955b@www.imp.polymtl.ca>

On 3/3/13 11:15 PM, Mohamad Gebai wrote:
>> host kernel version?
> 3.8 compiled from perf-kvm-live-3.8

I made no changes to the kernel side so essentially you are running v3.8 
unmodified.

>> guest kernel?
> 3.8.1
>> qemu-kvm command line? (leave out the disk and network arguments -- just
>> the rest)
> Actually using virt-manager for this but here's the most relevant part of the
> qemu-kvm command line:
> /usr/bin/qemu-kvm -name debian_test -S -M pc-1.2 -enable-kvm -m 1024 -smp
> 1,sockets=1,cores=1,threads=1

ok, I take that to mean qemu-kvm 1.2.

> Actually qemu-kvm is launched first, then perf kvm is launched right after,
> before the bootloader of the VM using this command line:
> perf kvm stat -p <vm-pid> -e kvmmmu:*

I have not been able to reproduce it. Host kernel is v3.8, guest kernel 
is 3.8.1-201.fc18.x86_64 (Fedora 18, latest kernel). Host CPU: Intel(R) 
Xeon(R) CPU E5540  @ 2.53GHz.

qemu-kvm version is 1.2. Relevant command line (launched manually)

/usr/local/qemu-kvm/1.2/bin/qemu-system-x86_64 -m 4096 -smp 
1,sockets=1,cores=1,threads=1  -S -M pc-1.2

That starts the VM with paused vcpus. Then launch perf-kvm-stat:

perf kvm stat -p $(vm-status -b f18) -e kvmmmu:*

VM boots just fine.

When I get some time I can try qemu versions 1.3 and 1.4 to see if it 
makes a difference. Any output from the VM or host dmesg? What if you 
start qemu manually?

David

      reply	other threads:[~2013-03-05 17:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-22 16:34 Tracing kvm: kvm_entry and kvm_exit Mohamad Gebai
2013-02-25 10:18 ` Stefan Hajnoczi
2013-02-26 16:24   ` Mohamad Gebai
2013-02-26 16:32   ` Gleb Natapov
2013-02-27 16:39   ` David Ahern
2013-02-28  4:49     ` David Ahern
2013-02-28  8:44       ` Stefan Hajnoczi
2013-03-04  5:36       ` Mohamad Gebai
2013-03-04  5:40         ` David Ahern
2013-03-04  6:15           ` Mohamad Gebai
2013-03-05 17:23             ` David Ahern [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51362A2A.4070500@gmail.com \
    --to=dsahern@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mohamad.gebai@polymtl.ca \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.