[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] event_lock not initialized in the idle domain (permitted actions in a tasklet?)


  • To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.