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] PGT_locked questions

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PGT_locked questions
From: Andres Lagar Cavilla <andres.lagarcavilla@xxxxxxxxx>
Date: Thu, 20 Oct 2011 11:17:16 -0400
Cc: Keir Fraser <keir.xen@xxxxxxxxx>, Tim Deegan <tim@xxxxxxx>, Adin Scannell <adin@xxxxxxxxxxxxxx>
Delivery-date: Tue, 25 Oct 2011 09:38:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=8IWbdBos9tkHk3LzIWVk+t6YMGvB3IuY2pm4TdVptmQ=; b=DKbK16L0/w/shbkh410qrmQeRxHuC7iHaUA7kpiVQrwVDtJ3DqArZM3cBCrI6sSYFU fVjAf/K7dymIPBuTN3ARJU6KL38soUzCKgj5rD8Oqd+ITnwqUDg6MOEpELIBWoCa7NNd yFV5M6AEfy57/TRzui1z4SMi9mSwxnXpVOf8A=
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
Hi,
PGT_locked can mutually exclude CPUs trying to work on the same page.
I have a few questions
1. shouldn't page_lock/unlock call preempt_disable/enable respectively?
2. It seems to be used only for pv page table self-updates. Is there
any obscure reason its usage is confined to only this, any dark
secrets why it can't be used elsewhere?

And here is my plan
1. remove horrible global shr_lock by following up on Adin Scannell's
removal of the sharing hash table
2. Still, concurrent additions/deletions of gfn_info list elements to
a shared page need to be protected. I'm thinking of using PGT_locked
for this. Sounds good?

Thanks
Andres

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] PGT_locked questions, Andres Lagar Cavilla <=