ia64/xen-unstable

changeset 13342:de6b5a76d680

[HVM] Remove unnecessary write barriers
Using a volatile pointer saves us from the compier reordering these
writes, and the processor won't let them appear out of order.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <Tim.Deegan@xensource.com>
date Tue Jan 09 16:49:16 2007 +0000 (2007-01-09)
parents 3040ba0f2d3d
children c98f3f3f7099
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Tue Jan 09 13:24:45 2007 +0000
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Tue Jan 09 16:49:16 2007 +0000
     1.3 @@ -851,9 +851,7 @@ static inline void safe_write_entry(void
     1.4       * then writing the high word before the low word. */
     1.5      BUILD_BUG_ON(sizeof (shadow_l1e_t) != 2 * sizeof (unsigned long));
     1.6      d[0] = 0;
     1.7 -    wmb();
     1.8      d[1] = s[1];
     1.9 -    wmb();
    1.10      d[0] = s[0];
    1.11  #else
    1.12      /* In 32-bit and 64-bit, sizeof(pte) == sizeof(ulong) == 1 word,