From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: David Vrabel <david.vrabel@citrix.com>, konrad.wilk@oracle.com
Cc: kevin.tian@intel.com, linux-kernel@vger.kernel.org,
dietmar.hahn@ts.fujitsu.com, xen-devel@lists.xen.org,
jbeulich@suse.com
Subject: Re: [Xen-devel] [PATCH v5 3/6] xen/PMU: Initialization code for Xen PMU
Date: Thu, 02 Jul 2015 13:14:17 -0400 [thread overview]
Message-ID: <55957169.1040303@oracle.com> (raw)
In-Reply-To: <55956515.5050103@citrix.com>
On 07/02/2015 12:21 PM, David Vrabel wrote:
> On 02/07/15 15:53, Boris Ostrovsky wrote:
>> Map shared data structure that will hold CPU registers, VPMU context,
>> V/PCPU IDs of the CPU interrupted by PMU interrupt. Hypervisor fills
>> this information in its handler and passes it to the guest for further
>> processing.
>>
>> Set up PMU VIRQ.
>>
>> Now that perf infrastructure will assume that PMU is available on a PV
>> guest we need to be careful and make sure that accesses via RDPMC
>> instruction don't cause fatal traps by the hypervisor. Provide a nop
>> RDPMC handler.
>>
>> For the same reason avoid issuing a warning on a write to APIC's LVTPC.
>>
>> Both of these will be made functional in later patches.
> [...]
>> + rc = bind_virq_to_irqhandler(VIRQ_XENPMU, cpu,
>> + xen_pmu_irq_handler,
>> + IRQF_PERCPU|IRQF_NOBALANCING,
>> + pmu_name, NULL);
> If you bind a VIRQ as IRQF_PERCPU it can only be safely unbound on the
> CPU it is bound to (because the percpu handler does not take the
> desc->lock).
This is a true per-cpu VIRQ and we only unbind it on cpu_die() path so I
think IRQF_PERCPU should be safe, no? (it behaves similar to VIRQ_TIMER
in how/when it is unbound).
-boris
>
> Otherwise, Reviewed-by: David Vrabel <david.vrabel@citrix.com>
>
> David
next prev parent reply other threads:[~2015-07-02 17:14 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 14:53 [PATCH v5 0/6] xen/PMU: PMU support for Xen PV(H) guests Boris Ostrovsky
2015-07-02 14:53 ` [PATCH v5 1/6] xen: xensyms support Boris Ostrovsky
2015-07-02 14:53 ` Boris Ostrovsky
2015-07-02 14:53 ` [PATCH v5 2/6] xen/PMU: Sysfs interface for setting Xen PMU mode Boris Ostrovsky
2015-07-02 14:53 ` Boris Ostrovsky
2015-07-02 16:16 ` David Vrabel
2015-07-02 16:16 ` [Xen-devel] " David Vrabel
2015-07-02 14:53 ` [PATCH v5 3/6] xen/PMU: Initialization code for Xen PMU Boris Ostrovsky
2015-07-02 16:21 ` [Xen-devel] " David Vrabel
2015-07-02 17:14 ` Boris Ostrovsky
2015-07-02 17:14 ` Boris Ostrovsky [this message]
2015-07-02 16:21 ` David Vrabel
2015-07-02 14:53 ` Boris Ostrovsky
2015-07-02 14:53 ` [PATCH v5 4/6] xen/PMU: Describe vendor-specific PMU registers Boris Ostrovsky
2015-07-02 14:53 ` Boris Ostrovsky
2015-07-02 14:53 ` [PATCH v5 5/6] xen/PMU: Intercept PMU-related MSR and APIC accesses Boris Ostrovsky
2015-07-02 14:53 ` Boris Ostrovsky
2015-07-02 14:53 ` [PATCH v5 6/6] xen/PMU: PMU emulation code Boris Ostrovsky
2015-07-02 16:22 ` David Vrabel
2015-07-02 16:22 ` [Xen-devel] " David Vrabel
2015-07-02 14:53 ` Boris Ostrovsky
2015-07-02 16:25 ` [Xen-devel] [PATCH v5 0/6] xen/PMU: PMU support for Xen PV(H) guests David Vrabel
2015-07-02 17:18 ` Boris Ostrovsky
2015-07-02 17:18 ` Boris Ostrovsky
2015-07-02 16:25 ` David Vrabel
2015-08-07 15:35 ` [Xen-devel] " David Vrabel
2015-08-07 15:50 ` Julien Grall
2015-08-07 15:50 ` [Xen-devel] " Julien Grall
2015-08-07 16:06 ` Boris Ostrovsky
2015-08-07 16:06 ` Boris Ostrovsky
2015-08-07 15:35 ` David Vrabel
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=55957169.1040303@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=dietmar.hahn@ts.fujitsu.com \
--cc=jbeulich@suse.com \
--cc=kevin.tian@intel.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xen.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 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.