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: Sat, 24 Apr 2010 00:30:36 +0000
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 23 Apr 2010 17:36:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C7F70750.1238A%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: <469F2699A483D44BA6D2B311B1089D3A7B08C465A2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C7F70750.1238A%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcriXnhomNarVb6UQu+V77DxbzJ2aAAAtYXcAAAFtnAAFMrLrQAjuYDw
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]
> ...snipped...
> I think your approach of removing the tasklet was the correct one. See
> arch/x86/hvm/hvm.c:hvm_send_assist_req() for an example of correct
> usage of
> the *_xen_event_channel() helpers. Firstly, that function doesn't run
> as a
> tasklet; Secondly, in fact 'v' *always* is current. Possibly we should
> even
> ASSERT that on entry to the function to make it clearer.
> 
> I think that the correct functions probably are being used, just in the
> wrong context. The aim after all is to pause the current vcpu until it
> receives assistance from a helper in dom0. That is similar to the
> existing
> (correct) use of *_xen_event_channel() which is to pause an HVM vcpu
> which
> requires help from qemu-dm in a stubdomain or dom0 process.

Keir,

Unfortunately, in the page sharing case as of now, p2m_mem_paging_populate() 
(which will eventually want to send the event) can be called from dom0 in the 
grant code. (Maybe you can see a way to re-engineer this, but it is not obvious 
to me.)  So, I need an interface that allows me to specify the domain. I don't 
see one for Xen event channels and the cleanest way I see to implement this is 
to simply add one. I'm certainly open to suggestions.

The handling in the grant code for paging is pretty ugly. There are a couple of 
holes. The biggest is that I don't see an obvious way to keep mapped grant 
pages from being evicted, again. However, I think it will work well enough for 
me to test what I need.

John




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