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

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

To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH ] Avoid potential suspend event channel race
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH ] Avoid potential suspend event channel race, Jiang, Yunhong <=