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 <andre.przyw...@amd.com> > --- > 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 <kw...@redhat.com> I think this patch even qualifies for stable, though this might mean 0.12.1 now. Kevin