All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: David Vrabel <david.vrabel@citrix.com>, xen-devel@lists.xenproject.org
Cc: Kevin Tian <kevin.tian@intel.com>,
	Jan Beulich <jbeulich@suse.com>,
	Jun Nakajima <jun.nakajima@intel.com>
Subject: Re: [PATCHv1 3/3] x86/ept: defer the invalidation until the p2m lock is released
Date: Fri, 6 Nov 2015 18:39:30 +0000	[thread overview]
Message-ID: <563CF3E2.3030604@citrix.com> (raw)
In-Reply-To: <1446831437-5897-4-git-send-email-david.vrabel@citrix.com>

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

  reply	other threads:[~2015-11-06 18:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-06 17:37 [RFC PATCHv1 0/3]: x86/ept: reduce translation invalidation impact David Vrabel
2015-11-06 17:37 ` [PATCHv1 1/3] x86/ept: remove unnecessary sync after resolving misconfigured entries David Vrabel
2015-11-06 18:29   ` Andrew Cooper
2015-11-10 12:22   ` Jan Beulich
2015-11-12 16:18     ` David Vrabel
2015-11-12 16:30       ` Jan Beulich
2015-11-06 17:37 ` [PATCHv1 2/3] mm: don't free pages until mm locks are released David Vrabel
2015-11-06 17:37 ` [PATCHv1 3/3] x86/ept: defer the invalidation until the p2m lock is released David Vrabel
2015-11-06 18:39   ` Andrew Cooper [this message]
2015-11-09 14:13   ` Jan Beulich
2015-11-10 13:35   ` Tim Deegan

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=563CF3E2.3030604@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=david.vrabel@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xenproject.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.