Received: from eggs.gnu.org ([2001:4830:134:3::10]:36703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaiyn-00009x-H8 for qemu-devel@nongnu.org; Tue, 01 Mar 2016 07:00:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaiyh-0002oh-Ps for qemu-devel@nongnu.org; Tue, 01 Mar 2016 07:00:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaiyh-0002oT-LE for qemu-devel@nongnu.org; Tue, 01 Mar 2016 07:00:35 -0500 From: Markus Armbruster References: <1456771254-17511-1-git-send-email-armbru@redhat.com> <1456771254-17511-4-git-send-email-armbru@redhat.com> Date: Tue, 01 Mar 2016 13:00:32 +0100 In-Reply-To: (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Tue, 1 Mar 2016 11:57:33 +0100") Message-ID: <871t7ul867.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 03/38] event_notifier: Make event_notifier_init_fd() #ifdef CONFIG_EVENTFD List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: Paolo Bonzini , cam , Claudio Fontana , QEMU , David Marchand Marc-Andr=C3=A9 Lureau writes: > Hi > > On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wr= ote: >> Event notifiers are designed for eventfd(2). They can fall back to >> pipes, but according to Paolo, event_notifier_init_fd() really >> requires the real thing, and should therefore be under #ifdef >> CONFIG_EVENTFD. Do that. >> >> Its only user is ivshmem, which is currently CONFIG_POSIX. Narrow it >> to CONFIG_EVENTFD. >> >> Cc: Paolo Bonzini >> Signed-off-by: Markus Armbruster >> --- >> default-configs/pci.mak | 2 +- >> util/event_notifier-posix.c | 6 ++++++ >> 2 files changed, 7 insertions(+), 1 deletion(-) >> >> diff --git a/default-configs/pci.mak b/default-configs/pci.mak >> index 4fa9a28..9c8bc68 100644 >> --- a/default-configs/pci.mak >> +++ b/default-configs/pci.mak >> @@ -36,5 +36,5 @@ CONFIG_SDHCI=3Dy >> CONFIG_EDU=3Dy >> CONFIG_VGA=3Dy >> CONFIG_VGA_PCI=3Dy >> -CONFIG_IVSHMEM=3D$(CONFIG_POSIX) >> +CONFIG_IVSHMEM=3D$(CONFIG_EVENTFD) > > This narrows ivshmem to eventfd os only. Eventually after the split, > it is easier to bring back posix for ivshmem-plain, Good point. > but it's important > to highlight this change. Yes. Any ideas on how to highlight it more? [...]