From: Paolo Bonzini <pbonzini@redhat.com>
To: "Michał Matoga" <michalmatoga@outlook.com>, kvm@vger.kernel.org
Subject: Re: QEMU KVM tracing and KVM toggling
Date: Sat, 15 Mar 2014 18:00:19 +0100 [thread overview]
Message-ID: <53248723.1010701@redhat.com> (raw)
In-Reply-To: <BLU0-SMTP1304D4FDBF4E973D3F5C52CF710@phx.gbl>
Il 13/03/2014 20:27, Michał Matoga ha scritto:
>
> I'm working on system calls tracing using QEMU KVM.
>
> 1. Is it possible to force emulation of instructions when VM is running?
> Then I might be able to enable/disable KVM acceleration whenever I want to.
>
> 2. I know I can get full trace from QEMU without KVM (log in_asm). For
> example during booting kernel I collected log
> (https://www.dropbox.com/s/ho7ykw1rc2tl4eb/qemu.log). Of course, when I
> enable KVM, this method will not work. I used trace-cmd tool to collect
> KVM events (https://www.dropbox.com/s/nhvtztzilvepwt0/kvm.log) but KVM
> log contains only functions emulated by QEMU. Is there a possibility to
> know what functions are executed natively in CPU when KVM is enabled to
> get something like "full" log from QEMU without KVM?
No, neither is possible. Consider that forcing emulation while KVM is
running would be hundreds of times slower than execution on the actual
processor. It's simply too slow.
If you run QEMU with "-cpu host", you can use "perf" in the guest to see
what's happening. Of course it will only be a statistical profile, not
the full trace.
Paolo
prev parent reply other threads:[~2014-03-15 17:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 19:27 QEMU KVM tracing and KVM toggling Michał Matoga
2014-03-15 17:00 ` Paolo Bonzini [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=53248723.1010701@redhat.com \
--to=pbonzini@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=michalmatoga@outlook.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.