aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/lguest/lguest.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/lguest/lguest.c b/Documentation/lguest/lguest.c
index 1a2b906a3ae6..1e31d1ec12a3 100644
--- a/Documentation/lguest/lguest.c
+++ b/Documentation/lguest/lguest.c
@@ -182,9 +182,10 @@ struct virtqueue
182/* Remember the arguments to the program so we can "reboot" */ 182/* Remember the arguments to the program so we can "reboot" */
183static char **main_args; 183static char **main_args;
184 184
185/* Since guest is UP and we don't run at the same time, we don't need barriers. 185/* We have to be careful with barriers: our devices are all run in separate
186 * But I include them in the code in case others copy it. */ 186 * threads and so we need to make sure that changes visible to the Guest happen
187#define wmb() 187 * in precise order. */
188#define wmb() __asm__ __volatile__("" : : : "memory")
188 189
189/* Convert an iovec element to the given type. 190/* Convert an iovec element to the given type.
190 * 191 *