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

[Xen-devel] [PATCH ] Avoid potential suspend event channel race


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
  • Date: Wed, 18 Mar 2009 17:59:22 +0800
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Delivery-date: Wed, 18 Mar 2009 03:00:32 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcmnsDNVzvD8hDhYSsyRhmE/OIONhQ==
  • Thread-topic: [PATCH ] Avoid potential suspend event channel race

As discussed previously (see 
http://lists.xensource.com/archives/html/xen-devel/2009-03/msg00570.html), we 
try to make access to event channel be protected. The attached patch achieved 
it through one lock file under /var/lib/xen/.

evet_channel.patch:
Changes the xc_save.c, to remove the dependency to the global si structure and 
has no logic change.

The patch move_evtchn.patch :
Move the suspend event channel function to libxc, it will use the 
/var/lib/xen/suspend_evtchn_lock.d to protect the access.

I'm not sure if using lock file is a right method, so any feedback is welcome.

signed-off-by: Jiang  Yunhong  <yunhong.jiang@xxxxxxxxx>

Thanks
Yunhong Jiang

Attachment: event_channel.patch
Description: event_channel.patch

Attachment: move_evtchn.patch
Description: move_evtchn.patch

_______________________________________________
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®.