From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtJYQ-0003kN-RQ for qemu-devel@nongnu.org; Mon, 02 Nov 2015 13:10:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtJYP-0000sS-QE for qemu-devel@nongnu.org; Mon, 02 Nov 2015 13:10:02 -0500 Received: from mail-vk0-x22d.google.com ([2607:f8b0:400c:c05::22d]:35453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtJYP-0000sO-N7 for qemu-devel@nongnu.org; Mon, 02 Nov 2015 13:10:01 -0500 Received: by vkfw189 with SMTP id w189so90220374vkf.2 for ; Mon, 02 Nov 2015 10:10:01 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1446486994-29913-1-git-send-email-drjones@redhat.com> References: <1446212690-7656-2-git-send-email-eduardo.otubo@profitbricks.com> <1446486994-29913-1-git-send-email-drjones@redhat.com> From: Peter Maydell Date: Mon, 2 Nov 2015 18:09:41 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v2] seccomp: add cacheflush to whitelist List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Jones Cc: QEMU Developers , Eduardo Otubo On 2 November 2015 at 17:56, Andrew Jones wrote: > cacheflush is an arm-specific syscall that qemu built for arm > uses. Add it to the whitelist, but only if we're linking with > a recent enough libseccomp. > > Signed-off-by: Andrew Jones > --- > v2: only add cacheflush if libseccomp supports it > > qemu-seccomp.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/qemu-seccomp.c b/qemu-seccomp.c > index 80d034a8d5190..e76097e958779 100644 > --- a/qemu-seccomp.c > +++ b/qemu-seccomp.c > @@ -16,6 +16,10 @@ > #include > #include "sysemu/seccomp.h" > > +#if SCMP_VER_MAJOR >= 2 && SCMP_VER_MINOR >= 2 && SCMP_VER_MICRO >= 3 > +#define HAVE_CACHEFLUSH > +#endif This will claim that a hypothetical future version 3.0.0 does not have cacheflush... thanks -- PMM