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

Re: [Xen-devel] [PATCH] evtchn_do_upcall: search a snapshot of level 2 b

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] evtchn_do_upcall: search a snapshot of level 2 bits for pending upcalls
From: Kaushik Kumar Ram <kaushik@xxxxxxxx>
Date: Mon, 1 Feb 2010 13:24:12 -0600
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 01 Feb 2010 11:24:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C78C8EB9.869A%keir.fraser@xxxxxxxxxxxxx>
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: <C78C8EB9.869A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Feb 1, 2010, at 7:59 AM, Keir Fraser wrote:

> On 01/02/2010 04:29, "Kaushik Kumar Ram" <kaushik@xxxxxxxx> wrote:
> 
>>>> Yes, sounds good. Are you going to make the patch?
>>> 
>>> Here is a first version of the patch. It was more complicated than I 
>>> expected
>>> and it was also hard for me to decide if it was "efficient" enough.
>>> I can work on improving it, based on your feedback.
>> 
>> I had a to fix a minor bug, please consider this patch.
> 
> Somehow the patch is mangled and does not apply. But also it is very big.
> How about the attached patch instead? I think it does all we agreed on, and
> is much smaller.

Well, I tried really hard to avoid the extra checks inside the loop.
Maybe it doesn't matter. 

There is one small issue in your patch, otherwise it is fine. When start_l1i
is not set, l2i has to be made zero. Otherwise, we would start halfway through
the next l2 whose l1i is set. I think this issue exists even in the original 
code.

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