From: Gleb Natapov <gleb@redhat.com>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-kernel@vger.kernel.org, avi@redhat.com,
kvm@vger.kernel.org, joerg.roedel@amd.com, mingo@elte.hu
Subject: Re: [PATCH v2 8/9] KVM, VMX: Add support for guest/host-only profiling
Date: Wed, 5 Oct 2011 17:29:54 +0200 [thread overview]
Message-ID: <20111005152954.GL30105@redhat.com> (raw)
In-Reply-To: <1317824379.6766.30.camel@twins>
On Wed, Oct 05, 2011 at 04:19:39PM +0200, Peter Zijlstra wrote:
> On Wed, 2011-10-05 at 14:01 +0200, Gleb Natapov wrote:
> > +static void atomic_switch_perf_msrs(struct vcpu_vmx *vmx)
> > +{
> > + int i, nr_msrs;
> > + struct perf_guest_switch_msr *msrs;
> > +
> > + msrs = perf_guest_get_msrs(&nr_msrs);
> > +
> > + if (!msrs)
> > + return;
> > +
> > + for (i = 0; i < nr_msrs; i++)
> > + if (msrs[i].host == msrs[i].guest)
> > + clear_atomic_switch_msr(vmx, msrs[i].msr);
> > + else
> > + add_atomic_switch_msr(vmx, msrs[i].msr, msrs[i].guest,
> > + msrs[i].host);
> > +}
>
> I don't think this will actually compile with PERF_EVENTS=n due to
> struct perf_guest_switch_msr not being defined.
Oops you are right. Turns out it is not enough to remove PERF_EVENTS
from .config to disable it. It re-appears after "make oldconfig". Should
I send incremental patch to fix that?
--
Gleb.
next prev parent reply other threads:[~2011-10-05 15:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 12:01 [PATCH v2 0/9] perf support for x86 guest/host-only bits Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 1/9] perf, core: Introduce attrs to count in either host or guest mode Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 2/9] perf, amd: Use GO/HO bits in perf-ctr Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 3/9] perf, tools: Add support for guest/host-only profiling Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 4/9] perf, tools: Fix copy&paste error in perf-kvm option description Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 5/9] perf, tools: Do guest-only counting in perf-kvm by default Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 6/9] perf, intel: Use GO/HO bits in perf-ctr Gleb Natapov
2011-10-05 14:18 ` Peter Zijlstra
2011-10-05 12:01 ` [PATCH v2 7/9] KVM, VMX: add support for switching of PERF_GLOBAL_CTRL Gleb Natapov
2011-10-05 12:01 ` [PATCH v2 8/9] KVM, VMX: Add support for guest/host-only profiling Gleb Natapov
2011-10-05 14:19 ` Peter Zijlstra
2011-10-05 15:29 ` Gleb Natapov [this message]
2011-10-05 15:34 ` Peter Zijlstra
2011-10-05 12:01 ` [PATCH v2 9/9] KVM, VMX: Check for automatic switch msr table overflow Gleb Natapov
2011-10-05 13:48 ` [PATCH v2 0/9] perf support for x86 guest/host-only bits Avi Kivity
2011-10-05 14:22 ` Peter Zijlstra
2011-10-10 10:34 ` Roedel, Joerg
2011-11-02 12:47 ` Avi Kivity
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=20111005152954.GL30105@redhat.com \
--to=gleb@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=avi@redhat.com \
--cc=joerg.roedel@amd.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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).