WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 0 of 3] p2m synchronization second part

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0 of 3] p2m synchronization second part
From: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
Date: Tue, 08 Nov 2011 16:42:23 -0500
Cc: olaf@xxxxxxxxx, George.Dunlap@xxxxxxxxxxxxx, andres@xxxxxxxxxxxxxx, tim@xxxxxxx, keir.xen@xxxxxxxxx, adin@xxxxxxxxxxxxxx
Delivery-date: Tue, 08 Nov 2011 13:43:39 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=lagarcavilla.org; h= content-type:mime-version:content-transfer-encoding:subject :message-id:date:from:to:cc; s=lagarcavilla.org; bh=ANcKdckj63go 3oVevJcTadupcV8=; b=sg4DFG/BJ/TKWtZ9H6fYet1fWhNglNWCFcXZQyiBhgrh Dwa9ErD3oWeKH6G21N6AXEhrx9x7xCpXjDH76NHafnFJ7JKNXUp3gvYktX3qwL/R WxXkHs+r42kiWO1W8Uw15hStu7zdOEqOHTKz4nL+rudb+6EhV8xGnifQD9BCWZs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=lagarcavilla.org; h=content-type :mime-version:content-transfer-encoding:subject:message-id:date :from:to:cc; q=dns; s=lagarcavilla.org; b=vK0mpUWH49IK52cY2psVKK LcQ1IPXHOtzKnBnRC15g2Zfh1+vrCMv47YRVsgf91wgeOWjPiiVuzonm4wCb4ed2 sdHXgl1liTBuUxA+TyY7clYaPkwsykHs4TUDX/fLOXwS+f4Udq6I99WpqtV1OnQW uHoJIvvbb4n7/mPQeRfbI=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.8.4
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@xxxxxxxxxxxxxxxx>

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel