All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0 of 3] p2m synchronization second part
@ 2011-11-08 21:42 Andres Lagar-Cavilla
  2011-11-08 21:42 ` [PATCH 1 of 3] Improvements over API change for p2m lookups Andres Lagar-Cavilla
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Andres Lagar-Cavilla @ 2011-11-08 21:42 UTC (permalink / raw)
  To: xen-devel; +Cc: olaf, George.Dunlap, andres, tim, keir.xen, adin

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(-)

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-12-02 17:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 21:42 [PATCH 0 of 3] p2m synchronization second part Andres Lagar-Cavilla
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

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.