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] Re: [PATCH 4/6] mm: New XENMEM space, XENMAPSPACE_gmfn_range

To: "Keir Fraser" <keir@xxxxxxx>
Subject: [Xen-devel] Re: [PATCH 4/6] mm: New XENMEM space, XENMAPSPACE_gmfn_range
From: "Jan Beulich" <JBeulich@xxxxxxxx>
Date: Thu, 10 Nov 2011 10:48:43 +0000
Cc: tim@xxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, allen.m.kay@xxxxxxxxx, Jean Guyader <jean.guyader@xxxxxxxxxxxxx>
Delivery-date: Thu, 10 Nov 2011 02:49:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAE1562B.33DB1%keir@xxxxxxx>
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>
References: <4EBBAD770200007800060155@xxxxxxxxxxxxxxxxxxxx> <CAE1562B.33DB1%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> On 10.11.11 at 11:21, Keir Fraser <keir@xxxxxxx> wrote:
> On 10/11/2011 09:54, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:
>> Further (I realize I should have commented on this earlier) I think that
>> in order to allow forward progress you should not check for preemption
>> on the very first iteration of each (re-)invocation. That would also
>> guarantee no behavioral change to the original single-page variants.
> 
> There are plenty of other examples where we check for preemption before
> doing any real work (eg. do_mmuext_op, do_mmu_update).

And I never really liked that, because of the very potential to live lock.

> I guess checking at
> the end of the loop is a little bit better maybe. I'm not very bothered
> either way.

Yes, and then only if further iterations are needed.

Jan


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