From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Gleb Natapov <gleb@redhat.com>
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, 05 Oct 2011 16:19:39 +0200 [thread overview]
Message-ID: <1317824379.6766.30.camel@twins> (raw)
In-Reply-To: <1317816084-18026-9-git-send-email-gleb@redhat.com>
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.
next prev parent reply other threads:[~2011-10-05 14:19 UTC|newest]
Thread overview: 19+ 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
2012-01-04 15:27 ` [tip:perf/core] perf kvm: Fix copy & paste error in description tip-bot for Joerg Roedel
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 [this message]
2011-10-05 15:29 ` Gleb Natapov
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=1317824379.6766.30.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=avi@redhat.com \
--cc=gleb@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