On 06/11/15 17:37, David Vrabel wrote:
>  out:
>      if ( fdom )
>          rcu_unlock_domain(fdom);
>      return rc;
>  }
> +
> +int p2m_setup(void)
> +{
> +    unsigned int cpu;
> +
> +    for_each_present_cpu(cpu)
> +        INIT_PAGE_LIST_HEAD(&per_cpu(p2m_deferred_free_pages, cpu));
> +
> +    return 0;
> +}
> +__initcall(p2m_setup);
> +

This is going to create problems for cpu hotplug, and some power
governers.  The INIT_PAGE_LIST_HEAD() needs to be in a CPU_PREPARE notifier.

It might also be wise to have the DYING side confirm that the list is empty.

~Andrew

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

Reply via email to