From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: [PATCH 7/7] lguest: change virtio ring alignment. Date: Wed, 12 Nov 2008 06:23:27 -0600 Message-ID: <200811122253.27332.rusty@rustcorp.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Hollis Blanchard , aliguori@us.ibm.com, markmc@redhat.com, kvm@vger.kernel.org To: linux-kernel@vger.kernel.org Return-path: Received: from ozlabs.org ([203.10.76.45]:36501 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753293AbYKLMXa (ORCPT ); Wed, 12 Nov 2008 07:23:30 -0500 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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 */