From: Christoph Egger Subject: [PATCH][XEN] xenstore: make producer/consumer volatile Date: Mon, 28 Jul 2008 11:21:03 +0200 Message-ID: <200807281121.03259.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_/9YjIkv8njNhXgx" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_/9YjIkv8njNhXgx Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Don't allow the compiler to play around with producer/consumer shared across domains. Keir: Please apply this also to Xen 3.2-testing. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_/9YjIkv8njNhXgx Content-Type: text/x-diff; charset="us-ascii"; name="public_xswire.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="public_xswire.diff" diff -r 37fae02cc335 xen/include/public/io/xs_wire.h --- a/xen/include/public/io/xs_wire.h Fri Jul 25 15:03:03 2008 +0100 +++ b/xen/include/public/io/xs_wire.h Mon Jul 28 11:12:07 2008 +0200 @@ -106,8 +106,8 @@ struct xenstore_domain_interface { struct xenstore_domain_interface { char req[XENSTORE_RING_SIZE]; /* Requests to xenstore daemon. */ char rsp[XENSTORE_RING_SIZE]; /* Replies and async watch events. */ - XENSTORE_RING_IDX req_cons, req_prod; - XENSTORE_RING_IDX rsp_cons, rsp_prod; + volatile XENSTORE_RING_IDX req_cons, req_prod; + volatile XENSTORE_RING_IDX rsp_cons, rsp_prod; }; /* Violating this is very bad. See docs/misc/xenstore.txt. */ --Boundary-00=_/9YjIkv8njNhXgx Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_/9YjIkv8njNhXgx--