All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andres Lagar-Cavilla <andres@lagarcavilla.org>
To: xen-devel@lists.xensource.com
Cc: olaf@aepfle.de, George.Dunlap@eu.citrix.com,
	andres@gridcentric.ca, tim@xen.org, keir.xen@gmail.com,
	adin@gridcentric.ca
Subject: [PATCH 0 of 3] p2m synchronization second part
Date: Tue, 08 Nov 2011 16:42:23 -0500	[thread overview]
Message-ID: <patchbomb.1320788543@xdev.gridcentric.ca> (raw)

In this patch series we add actual synchronization. 

We first refine the API update posted previously (I can fold 
the previous and this first patch together, keep separate, whatever)

Then, we make p2m-lookups actually lock the p2m. For now it's still
the global p2m lock. It can be eventually made more fine grained.

Finally, we ensure that within a get_gfn/put_gfn critical section,
the caller has an additional ref on the underlying mfn. This requires
some trickery for manipulations that remove the mfn or swap it
(sharing).

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>

 xen/arch/x86/hvm/hvm.c        |   3 +-
 xen/arch/x86/mm/p2m.c         |   8 +++---
 xen/common/grant_table.c      |   2 +-
 xen/common/memory.c           |   6 +++-
 xen/arch/x86/mm/mm-locks.h    |  13 +++++----
 xen/arch/x86/mm/p2m.c         |  18 +++++++++++++-
 xen/include/asm-x86/p2m.h     |  39 ++++++++++++++++++-----------
 xen/arch/x86/mm.c             |  18 +++++++++----
 xen/arch/x86/mm/mem_sharing.c |  13 +++------
 xen/arch/x86/mm/p2m.c         |  56 +++++++++++++++++++++++++++++++++++++++++-
 xen/common/grant_table.c      |   4 +-
 xen/common/memory.c           |  10 +++---
 xen/include/asm-x86/mm.h      |   3 +-
 xen/include/asm-x86/p2m.h     |  10 ++++++-
 xen/include/xen/paging.h      |   2 +-
 xen/include/xen/tmem_xen.h    |   2 +-
 16 files changed, 148 insertions(+), 59 deletions(-)

             reply	other threads:[~2011-11-08 21:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-08 21:42 Andres Lagar-Cavilla [this message]
2011-11-08 21:42 ` [PATCH 1 of 3] Improvements over API change for p2m lookups Andres Lagar-Cavilla
2011-11-10 12:48   ` Tim Deegan
2011-11-08 21:42 ` [PATCH 2 of 3] Make p2m lookups fully synchronized wrt modifications Andres Lagar-Cavilla
2011-11-10 12:53   ` Tim Deegan
2011-11-14 18:03     ` Andres Lagar-Cavilla
2011-11-24 11:35       ` Tim Deegan
2011-11-24 16:41         ` Andres Lagar-Cavilla
2011-12-01 13:59           ` Tim Deegan
2011-12-02 16:33             ` Andres Lagar-Cavilla
2011-12-02 17:38               ` Tim Deegan
2011-11-08 21:42 ` [PATCH 3 of 3] Make p2m critical sections hold a ref on the underlying mfn Andres Lagar-Cavilla
2011-11-10 13:17   ` 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=patchbomb.1320788543@xdev.gridcentric.ca \
    --to=andres@lagarcavilla.org \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=adin@gridcentric.ca \
    --cc=andres@gridcentric.ca \
    --cc=keir.xen@gmail.com \
    --cc=olaf@aepfle.de \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xensource.com \
    /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.