From: Anthony Liguori <anthony@codemonkey.ws>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
xen-devel <xen-devel@lists.sourceforge.net>
Subject: Re: [PATCH] Cleanup rmb()/wmb() usage
Date: Wed, 23 Feb 2005 01:57:41 -0600 [thread overview]
Message-ID: <421C3775.30609@codemonkey.ws> (raw)
In-Reply-To: <274e9a0afab152618221454d6db8acff@cl.cam.ac.uk>
Keir Fraser wrote:
>
> On 23 Feb 2005, at 03:38, Anthony Liguori wrote:
>
> asm/system.h is a private kernel header so should not be directly
> included from user space. Inlcuding it may not work for all versions
> of Linux, or for other architectures.
Actually, asm/system.h is designed for inclusion in userspace apps (and
kernel space). Hence the __KERNEL__ guards around certain sections.
It's used in a few notable userspace apps including glibc and MySQL.
That said, Xen should not depend on Linux if it doesn't have to.
> We should probably merge the barrier defs we have scattered in the
> tools directory into one low-level architectural header that we
> include everywhere, and extend for x86/64, ia64, and so on.
Agreed. Any ideas on where it would live? I didn't see any likely
place which is why I used asm/system. io/ring.h seemed the closest fit
but that's not architecture specific.
> Only Centaur clones that have been set up by the kernel to do write
> combining. Xen does not ever enable write-combining on normal RAM and
> so a barrier is never required.
Ah, that makes sense. It still would be nice to have the barriers in a
single location. Pick a place and I'll submit a patch.
Regards,
--
Anthony Liguori
anthony@codemonkey.ws
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
next prev parent reply other threads:[~2005-02-23 7:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-23 3:38 [PATCH] Cleanup rmb()/wmb() usage Anthony Liguori
2005-02-23 7:18 ` Keir Fraser
2005-02-23 7:57 ` Anthony Liguori [this message]
2005-02-23 8:44 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=421C3775.30609@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=aliguori@us.ibm.com \
--cc=xen-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.