qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH v2] osdep: Fix runtime failure on older Linux ke


From: Kevin Wolf
Subject: [Qemu-devel] Re: [PATCH v2] osdep: Fix runtime failure on older Linux kernels
Date: Fri, 18 Dec 2009 13:49:38 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-3.fc11 Thunderbird/3.0

Am 18.12.2009 13:37, schrieb Andre Przywara:
> If QEMU finds newer kernel header files on compilation time, it will use
> advertised features like pipe2 or SOCK_CLOEXEC by just doing a compile test.
> If later the executables are executed on an older kernel (<2.6.27,
> like Xen Dom0 2.6.18), then QEMU will fail on opening sockets and creating
> pipes and returns the rather unspecific "qemu_init_main_loop failed".
> This patch fixes this by checking the return values of these calls
> for EINVAL and ENOSYS and falling back to the older versions automatically.
> 
> Signed-off-by: Andre Przywara <address@hidden>
> ---
>  osdep.c |   18 ++++++++++++------
>  1 files changed, 12 insertions(+), 6 deletions(-)
> 
> v2 changed the errno check from EINVAL to ENOSYS for accept4

Acked-by: Kevin Wolf <address@hidden>

I think this patch even qualifies for stable, though this might mean
0.12.1 now.

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]