]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to shared header file unrelated to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:22:56 +0000 (11:22 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:22:56 +0000 (11:22 -0700)
open-vm-tools/lib/include/vm_basic_asm_x86_common.h

index bcf51a04801cc25d34558b1f5c68b327ef1e888e..f82997347d64bae8d02b3fbc03b575f4b4f43ae2 100644 (file)
@@ -309,10 +309,15 @@ RDTSC_BARRIER(void)
 
 /*
  * Compiler/CPU barriers. These take the form of <mem access type>_<mem access
- * type>_MEM_BARRIER, where <mem access type> is either LD (load), ST (store) or
- * LDST (any). On x86 we only need to care specifically about store-load
+ * type>_MEM_BARRIER, where <mem access type> is either LD (load), ST (store)
+ * or LDST (any).
+ *
+ * On x86, we only need to care specifically about store-load
  * reordering on normal memory types and mfence, otherwise only a compiler
  * barrier is needed.
+ *
+ * On x64, special instructions are only provided for load-load (lfence) and
+ * store-store (sfence) ordering, and they don't apply to normal memory.
  */
 #define LD_LD_MEM_BARRIER()      COMPILER_MEM_BARRIER()
 #define LD_ST_MEM_BARRIER()      COMPILER_MEM_BARRIER()