|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCHv1 3/3] x86/ept: defer the invalidation until the p2m lock is released
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@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |