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

Re: [Xen-devel] [PATCH] include/public/io/ring.h: Remove xen_mb, xen_rmb, xen_wmb macros


  • To: 'Jan Beulich' <JBeulich@xxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Thu, 4 Jul 2019 16:11:23 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Paul.Durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Juergen Gross <JGross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
  • Delivery-date: Thu, 04 Jul 2019 16:11:35 +0000
  • Ironport-sdr: 6K59sTFT7IbsFpTshD7zQK7Z6erKG5UeGJGYBcbwYszgZV9tmh/T3mq1KzskHFMUg+LuckO6PA s+oYQbR5pOaPOc+IxMfOfDyCsk5REPDZjdptWGDutHYCZQA7F18EnMyaS9m6kMPod5nCaitSQm HgED83B2s6t8/jKp7df7+As5HRLIl2Gp+2X77SpIU+qAIc8r8D2tzcJGELQR0aW9KCvjHlgSSq vm/yM0KkLIzrSnHqeO0lQ7kshKVkh0BAMnXg8Ap9a7vvZGXVNcivyrk6BBtZNLPM0U/FGI5kGn OcE=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVMntmcjAjDu/MbEW4KaEw4V64e6a6eY2AgAAlqmA=
  • Thread-topic: [Xen-devel] [PATCH] include/public/io/ring.h: Remove xen_mb, xen_rmb, xen_wmb macros

> -----Original Message-----
> From: Jan Beulich <JBeulich@xxxxxxxx>
> Sent: 04 July 2019 16:49
> To: Anthony Perard <anthony.perard@xxxxxxxxxx>
> Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx; Paul Durrant <Paul.Durrant@xxxxxxxxxx>; 
> Konrad Rzeszutek Wilk
> <konrad.wilk@xxxxxxxxxx>; Juergen Gross <JGross@xxxxxxxx>
> Subject: Re: [Xen-devel] [PATCH] include/public/io/ring.h: Remove xen_mb, 
> xen_rmb, xen_wmb macros
> 
> On 04.07.2019 17:15, Anthony PERARD wrote:
> > Those macros where introduced when a prefix "xen_" was added to
> > mb,rmb,wmb. There are gated on __XEN_INTERFACE_VERSION__, but there
> > are not part of the Xen interface. Users of ring.h needs to provide
> > xen_[rw]?mb() anywai because [rw]?mb() isn't likely to exist.
> 
> It's not clear to me what you want to achieve:
> 

The issue is that any project importing this header (in this case QEMU, but I 
have the same issue in the Windows PV drivers) needs to import xen-compat.h (or 
dream up a header of the same name), even though this header is only concerned 
with the underpinnings of PV protocols and has nothing, as such, to do with Xen.

To keep old verbatim users (are there really any at all?) happy, how about 
simple...

#ifndef xen_mb()
#define xen_mb() mb()
#endif

constructs?

  Paul
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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