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] event_lock not initialized in the idle domain (permitted

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] event_lock not initialized in the idle domain (permitted actions in a tasklet?)
From: "Byrne, John (HP Labs)" <john.l.byrne@xxxxxx>
Date: Mon, 26 Apr 2010 23:01:12 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 26 Apr 2010 16:04:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A1AB79C06219B34FBD39BC5B1E36CB97679418D13A@xxxxxxxxxxxxxxxxxxxxxxxxx>
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: <469F2699A483D44BA6D2B311B1089D3A7B08C465A2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C7F70750.1238A%keir.fraser@xxxxxxxxxxxxx>, <469F2699A483D44BA6D2B311B1089D3A7B08CA82D9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <A1AB79C06219B34FBD39BC5B1E36CB97679418D13A@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcriXnhomNarVb6UQu+V77DxbzJ2aAAAtYXcAAAFtnAAFMrLrQAjuYDwABPekEMAc9fMIA==
Thread-topic: [Xen-devel] event_lock not initialized in the idle domain (permitted actions in a tasklet?)
> -----Original Message-----
> From: Keir Fraser [mailto:Keir.Fraser@xxxxxxxxxxxxx]
> 
> Well, [prepare_]wait_on_xen_event_channel() makes no sense to call on
> another domain, certainly given their current implementation. But
> notify_via_xen_event_channel() could, and you could add a domain
> parameter to it.

I've added the domain parameter to notify_via_xen_event_channel() as you 
suggested since it is only used in a couple of places.

> 
> I don't know what dom0 does while the page is paged in? Probably just
> throws an error code and carries on? In which case thinking about
> [prepare_]wait_on_xen_event_channel() further would not be necessary,
> as a dom0 code path can just notify on teh channel and carry on its
> way.
> 

That is the way it is supposed to work, but there seems to be a bit of a 
disconnect between grant-table code and the driver mods to handle the errors. 
The driver mods expect a new error code GNTST_eagain, but the grant_table code 
returns ENOENT in a couple of places. There were also a couple of 
"GNTxxx_can_fail" flags added to grant-table interface, but they are unused. So 
things don't look quite finished.

John



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