[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/38] event_notifier: Make event_notifier_init_
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 03/38] event_notifier: Make event_notifier_init_fd() #ifdef CONFIG_EVENTFD |
Date: |
Tue, 1 Mar 2016 13:05:23 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
On 01/03/2016 13:00, Markus Armbruster wrote:
> Marc-André Lureau <address@hidden> writes:
>
>> Hi
>>
>> On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster <address@hidden> wrote:
>>> 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 <address@hidden>
>>> Signed-off-by: Markus Armbruster <address@hidden>
>>> ---
>>> 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=y
>>> CONFIG_EDU=y
>>> CONFIG_VGA=y
>>> CONFIG_VGA_PCI=y
>>> -CONFIG_IVSHMEM=$(CONFIG_POSIX)
>>> +CONFIG_IVSHMEM=$(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?
Release notes should do, under "Build dependencies".
Paolo