* [PATCH 7/7] lguest: change virtio ring alignment.
@ 2008-11-12 12:23 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2008-11-12 12:23 UTC (permalink / raw)
To: linux-kernel; +Cc: Hollis Blanchard, aliguori, markmc, kvm
This is just to test that the constant is wired through correctly.
lguest has no ABI so I could apply this patch, but it breaks the
"don't be an asshole" rule.
diff -r 19e5f3f3a4be Documentation/lguest/Makefile
--- a/Documentation/lguest/Makefile Wed Nov 12 22:27:50 2008 +1030
+++ b/Documentation/lguest/Makefile Wed Nov 12 22:38:52 2008 +1030
@@ -4,5 +4,7 @@
all: lguest
+lguest: ../../include/linux/lguest_launcher.h
+
clean:
rm -f lguest
diff -r 19e5f3f3a4be include/linux/lguest_launcher.h
--- a/include/linux/lguest_launcher.h Wed Nov 12 22:27:50 2008 +1030
+++ b/include/linux/lguest_launcher.h Wed Nov 12 22:38:52 2008 +1030
@@ -60,5 +60,6 @@
LHREQ_BREAK, /* + on/off flag (on blocks until someone does off) */
};
-#define LGUEST_VRING_ALIGN 4096
+/* A cacheline is enough separation between producer and consumer. */
+#define LGUEST_VRING_ALIGN 128
#endif /* _LINUX_LGUEST_LAUNCHER */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-12 12:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 12:23 [PATCH 7/7] lguest: change virtio ring alignment Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox