[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v8 18/19] x86/VPMU: NMI-based VPMU support



>>> On 01.07.14 at 16:37, <boris.ostrovsky@xxxxxxxxxx> wrote:
> @@ -473,6 +575,26 @@ static int pvpmu_init(struct domain *d, xen_pmu_params_t 
> *params)
>          return -EINVAL;
>      }
>  
> +    spin_lock(&init_lock);
> +
> +    if ( !pvpmu_initted )
> +    {
> +        if ( reserve_lapic_nmi() == 0 )
> +            set_nmi_callback(pmu_nmi_interrupt);
> +        else
> +        {
> +            spin_unlock(&init_lock);
> +            printk("Failed to reserve PMU NMI\n");

XENLOG_G_... please.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.