From: Paolo Bonzini <pbonzini@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, acme@kernel.org
Subject: Re: [PATCH] tools lib traceevent: update KVM plugin
Date: Tue, 20 Oct 2015 17:19:12 +0200 [thread overview]
Message-ID: <56265B70.1000206@redhat.com> (raw)
In-Reply-To: <20151020104459.7e7f7e77@gandalf.local.home>
On 20/10/2015 16:44, Steven Rostedt wrote:
> What happens if you run new perf on an older kernel. Is this new plugin
> going to be screwed up? Plugins should be backward compatible.
If you run new perf on older kernel, the new plugin will print the
"role" field (see kvm_mmu_print_role) slightly incorrectly. That said,
the existing plugin was _also_ printing the role in a wildly wrong
format, like 2.6.35 vintage; the glevels field was removed by commit
5b7e0102ae74, "KVM: MMU: Replace role.glevels with role.cr4_pae", in
April 2010.
Going forward it's really unlikely that the role will change apart from
adding new bits. These can be added to the plugin while keeping it
backwards-compatible. Addition to the role happen when you implement
new virtual MMU features such as SMEP, SMAP or SMM. That's once per year
or less.
> Is the plugin even still needed? I'm looking at some of the kvm events
> and they seem to be mostly self sufficient. What ones need a plugin
> today?
Yes, most of them are. It's only needed for kvm_mmu_get_page,
kvm_mmu_prepare_zap_page and kvm_emulate_insn. The latter is only
interesting if you install the disassembler library, and I wouldn't
really care if it went away.
kvm_mmu_get_page and kvm_mmu_prepare_zap_page, however, have output like
kvm_mmu_get_page: [FAILED TO PARSE] mmu_valid_gen=0x2 gfn=786432 role=1923 root_count=0 unsync=0 created=1
without the plugin vs.
kvm_mmu_get_page: new sp gfn c0000 3 q0 direct rwx !pae !nxe !wp root 0 sync
with the plugin.
Paolo
next prev parent reply other threads:[~2015-10-20 15:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 10:28 [PATCH] tools lib traceevent: update KVM plugin Paolo Bonzini
2015-10-09 20:10 ` Paolo Bonzini
2015-10-20 14:32 ` Arnaldo Carvalho de Melo
2015-10-20 14:44 ` Steven Rostedt
2015-10-20 15:19 ` Paolo Bonzini [this message]
2015-10-20 15:26 ` Steven Rostedt
2015-10-20 15:37 ` Paolo Bonzini
2015-10-20 15:48 ` Steven Rostedt
2015-10-20 15:49 ` Paolo Bonzini
2015-10-20 15:50 ` Arnaldo Carvalho de Melo
2015-10-20 16:21 ` Steven Rostedt
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=56265B70.1000206@redhat.com \
--to=pbonzini@redhat.com \
--cc=acme@kernel.org \
--cc=acme@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/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 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).