Permalink
Browse files

HVM-738 smb_wmb and smb_rmb in kvm_x86.h shouldn't be visible to user…

…land
  • Loading branch information...
1 parent 0e94d5f commit 5e3b9e3a835ea9100d3abff5a09fb8d1f7600dfb @rmustacc rmustacc committed Aug 2, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 kvm_x86.h
View
@@ -300,8 +300,9 @@ typedef struct kvm_vcpu_events {
* The following should provide an optimization barrier.
* If the system does reorder loads and stores, this needs to be changed.
*/
-
+#ifdef _KERNEL
#define smp_wmb() __asm__ __volatile__("" ::: "memory")
#define smp_rmb() __asm__ __volatile__("" ::: "memory")
+#endif
#endif /* __KVM_X86_H */

0 comments on commit 5e3b9e3

Please sign in to comment.