lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200811122253.27332.rusty@rustcorp.com.au>
Date:	Wed, 12 Nov 2008 06:23:27 -0600
From:	Rusty Russell <rusty@...tcorp.com.au>
To:	linux-kernel@...r.kernel.org
Cc:	Hollis Blanchard <hollisb@...ibm.com>, aliguori@...ibm.com,
	markmc@...hat.com, kvm@...r.kernel.org
Subject: [PATCH 7/7] lguest: change virtio ring alignment.

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 */


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ