From patchwork Fri Jun 26 13:00:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David CARLIER X-Patchwork-Id: 11627527 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 263D114E3 for ; Fri, 26 Jun 2020 13:01:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F153120775 for ; Fri, 26 Jun 2020 13:01:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PQ/gXbFP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F153120775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:42466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jonzR-00008r-7J for patchwork-qemu-devel@patchwork.kernel.org; Fri, 26 Jun 2020 09:01:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jonyM-0006x8-4Q; Fri, 26 Jun 2020 09:00:53 -0400 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]:38265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jonyK-0002zW-1F; Fri, 26 Jun 2020 09:00:49 -0400 Received: by mail-ed1-x543.google.com with SMTP id cy7so6846207edb.5; Fri, 26 Jun 2020 06:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=RuzXvA/aTpuOPYIFxer48+fv+OoNhJtBmY1ds60T/Kg=; b=PQ/gXbFPCOvm2cQi1ZP2scGUreT66L11xkr54x0/yZ/VgwO8KcNkRTon+Vx6O6sDKM 8BuxTpbhdqlUmGbOU/Ez1kh1i8xAF8k54u7U24z1A1QRFjfCZqug1DfcoOLftt5sslQg olMXVw2hZU10CcLDPoIU81qLvx0ZyigDz3BAHT+MHozWMbtjFJFsQ0tBdFnLeRgH5kXR otHOQY5xBi0B7Il/Lpt4hjY02R3xMnNnLyFUbShAFXg8GvPj4wX9BX3ZVTrKSzZ6/DI8 GGUOIsUd8cm5t2IUbAtknumvivKQp2M7esnPtwm89whqcSVNZk+aI4khePqEBnkoj85b iHjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RuzXvA/aTpuOPYIFxer48+fv+OoNhJtBmY1ds60T/Kg=; b=DRf4Ab66MCikxZh9oYiULFL4Y6wgybkkeYJNSZ+H7uAU2c8D6c349O/3OXUwglTbyK BD7UqYYRPWmo9TRd0iLGk0XAwxkh61niySg/3xtTnHF5rpwnBeuDLPluqsj1dDJ7/4yo LAp5EfLZFAycodegl4aOcmapil2GfN61PJbUFbnetaBiLy90GJqDQny+TfNi3INlU4qB Rveh4caW89wbJrYXdNjlFS6GyKRx3R8CzVJHK9D8/CLxCfq7qB48zfeijKMRKTxTID4g 1KfI8ZoB8inXgJAwU+2HV3mRttFEnLYiBlYuPNYcf1fBja9cKHhWHX69BrRi5z5mlGKQ fjvw== X-Gm-Message-State: AOAM532mQDYVhj7hG0fzC1rKeKN12erE7AqMAGQD0JZ171Y8+AUdhd26 MO+25ReRMgqcEijVFZdCxa502ChRqay+6ZTpHS4qSVPeRsg= X-Google-Smtp-Source: ABdhPJwYljeaXbFNmnPmEvBjSV5o8KokL2U6ZIar6QgvszEVsN2ag93tuE9Ch9u9ASOSpbdXrBS1i+QCpjh1zTBsVt8= X-Received: by 2002:aa7:d297:: with SMTP id w23mr3077415edq.49.1593176445455; Fri, 26 Jun 2020 06:00:45 -0700 (PDT) MIME-Version: 1.0 From: David CARLIER Date: Fri, 26 Jun 2020 14:00:34 +0100 Message-ID: Subject: [PATCH 1/3] haiku build fix second batch To: QEMU Trivial , qemu-devel Received-SPF: pass client-ip=2a00:1450:4864:20::543; envelope-from=devnexen@gmail.com; helo=mail-ed1-x543.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From 95ef79ddff73eebd1f1bec6673c2c68209fab107 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 26 Jun 2020 13:56:14 +0000 Subject: [PATCH 1/3] Include endian.h for Haiku to solve bswap* macros build failure. Signed-off-by: David Carlier --- include/qemu/bswap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h index 2a9f3fe783..1d3e4c24e4 100644 --- a/include/qemu/bswap.h +++ b/include/qemu/bswap.h @@ -8,6 +8,8 @@ # include #elif defined(__FreeBSD__) # include +#elif defined(__HAIKU__) +# include #elif defined(CONFIG_BYTESWAP_H) # include From patchwork Fri Jun 26 13:01:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David CARLIER X-Patchwork-Id: 11627537 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C2B6E6C1 for ; Fri, 26 Jun 2020 13:02:24 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A52520775 for ; Fri, 26 Jun 2020 13:02:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="uOXe8qXM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A52520775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:43860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jonzr-0000it-T4 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 26 Jun 2020 09:02:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jonyu-0007hx-KB; Fri, 26 Jun 2020 09:01:24 -0400 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:33233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jonyt-00039W-0X; Fri, 26 Jun 2020 09:01:24 -0400 Received: by mail-ej1-x630.google.com with SMTP id n24so9303898ejd.0; Fri, 26 Jun 2020 06:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+LJEOKxiY+rlBRL2d3e3qAL3DIgyLYq2ScPrVfPLxJo=; b=uOXe8qXMHZQ21L9po3+BdE2Y47zrStBsGOQx+L54KSSQAhEOpKN1/k0dO4PV40KFV5 LMCURlskPinWthfkkN829JBVoG5d7FE61+6THoedFTyFqa3npqJpHVbGsAORnK1GKqwP czJFbjsSacY0Aa8X3mA24uevoeV9dtN1RP34blHOsQ4ZNgf17C7lDQ/z1sKgdmNEFmlY JXrKMqoctWrdtgI+1BtfHSzLiF8D4FOZRRMABtrWls9JNUm6ZaysrlEtmU0pj08nB9Ar 4JsoG9jmnVFacdXv91f1/fbFL+dake8ELPYh5kszlM6K/Rey8IkRqanOd6CJvdomZh0P LwsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+LJEOKxiY+rlBRL2d3e3qAL3DIgyLYq2ScPrVfPLxJo=; b=ND5UtVBZNRp3UL9/Lzuu5BGU7netZwMsTd14f9z2bAPHn/HIwVcY1dsirakD0JqlxY ZWXUBwM0fl3ZlS8XzIfTQ9iYtsCSHEW+aAzfFyWXwhOr+dUnVe3yiSt+YOJEpnA0BVYT 0DItmwah8tPffdYer5JEJnIXxYNKpnHZMKvkbzQrB4ysQ0mOIwIlROPOSgdJG5skC/ws HjlkBd+QnbLOahirFvSYgCqxmLhF7x53DRJs0MZer5ZiaJ/Hj2A7ETBWEtboWFpuGZiv OX05h475ErBiZPiuQGAIgtIyFpmncCTwQUXFC7YZF6HdM9iQ8whbUzj3LeumweR/WMD1 H9NQ== X-Gm-Message-State: AOAM532DzFn8N3e6GOjOr3oAlXmgjqiQ2qocg95zcj5oA+Dzd8qQUaFz 9dvodm+HQcFt0ycV5LkQGDFcRh10Fn0crSwy3xVOGT9pyyw= X-Google-Smtp-Source: ABdhPJxyBB4OIBdix2LVzyE0xwd+oNkLzUuX93NUsK6/SxFzyHwc8s98zgfaJrLrl9qgDCfD+6VQDog2U4w1tSUKd0U= X-Received: by 2002:a17:906:58c:: with SMTP id 12mr2326552ejn.311.1593176480386; Fri, 26 Jun 2020 06:01:20 -0700 (PDT) MIME-Version: 1.0 From: David CARLIER Date: Fri, 26 Jun 2020 14:01:09 +0100 Message-ID: Subject: [PATCH 2/3] haiku build fix second batch To: QEMU Trivial , qemu-devel Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=devnexen@gmail.com; helo=mail-ej1-x630.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From 338a25285d945c891eb4fa34a18cb45b8b05dbb1 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 26 Jun 2020 13:57:08 +0000 Subject: [PATCH 2/3] drm build ignored for Haiku. Signed-off-by: David Carlier --- util/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Makefile.objs b/util/Makefile.objs index cc5e37177a..faebc13fac 100644 --- a/util/Makefile.objs +++ b/util/Makefile.objs @@ -39,7 +39,7 @@ util-obj-y += qsp.o util-obj-y += range.o util-obj-y += stats64.o util-obj-y += systemd.o -util-obj-$(CONFIG_POSIX) += drm.o +util-obj-$(CONFIG_LINUX) += drm.o util-obj-y += guest-random.o util-obj-$(CONFIG_GIO) += dbus.o dbus.o-cflags = $(GIO_CFLAGS) From patchwork Fri Jun 26 13:01:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David CARLIER X-Patchwork-Id: 11627555 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B7DF814F6 for ; Fri, 26 Jun 2020 13:06:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F2542081A for ; Fri, 26 Jun 2020 13:06:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JcO+ii/1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F2542081A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Received: from localhost ([::1]:56750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joo3r-00065k-T1 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 26 Jun 2020 09:06:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jonzI-0008MB-IA; Fri, 26 Jun 2020 09:01:48 -0400 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]:36858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jonzG-0003JG-P4; Fri, 26 Jun 2020 09:01:48 -0400 Received: by mail-ed1-x544.google.com with SMTP id dg28so6858355edb.3; Fri, 26 Jun 2020 06:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=x+ueAwuuCoBhWE4SweeoDogBc0rLsINh3QqIieHvwp4=; b=JcO+ii/1+CWaULQZ2KI0lI19Lb3DI42/E5HZJn2kD2weVN8PlUMwyHnRj1dJFGWy0e kxIIjGAvpmZsIi7qa58OzpAaq8HlEjpq7rZflPArQUYE8E08XvlXr1GDciudNG5Anv1D zlFKKkmEIYYO+B40qPaC5EVJP1AYWR5GVPEFKTzoRVCJq24SRMdeE9vzlPkXFfEND9Zz 6ytDibyz8r+SssA11b6BfwpscEaaF7oxZJMPexxXtllyGHxbfyWm3SB+h6NB6qpTHK+y DmuQVcGMXWxCCFSMVZFyiAdmVQLOD2rSMhl+8lEUPU742gFRpYi2gpmAxtI0UKFt6fiq fsqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=x+ueAwuuCoBhWE4SweeoDogBc0rLsINh3QqIieHvwp4=; b=DYouJ0RvS+YtEoj9/8aX2xXywHFBfNA+ymski+EUs2JuOYksW4tUCTjVsuhELgsXqM ND3lK2mFZKUZa2ODxDg7LKgkZmAP/feOxzRxQJ909uRI8TDHgXMUyteohu2YgS6CfK3q jiunWqfjMQ5aRy61cLfdXMdciNyY0kp3jVYiyhWXXsZ46a5X7bxfHta7z9oRXFY79074 PEsnYJcoHJ6PaVZZZ/EI+LR2W/j+jmWHc5oVyykKAcbZYX9nwz9azvvInLXXaspvb+rX /EaWyEGeB4yQWu2LNGnTbQ7ozpKx4jfrGtAkhjill8Fv7Q0GnlGCREhOcotOJz1/5z6g 5N7A== X-Gm-Message-State: AOAM532cxSuSNnhljNf7HgWF+n1eBToyvVJ3tI66fP/geGZBqcG0oBef ISths9WWozomcD3nIBXqK9ZpPz9bHHY6eakG/1tZvpVYZ8I= X-Google-Smtp-Source: ABdhPJy+M2N9BrkiZlV7swDsVS8lr+foMdrRj87zqll0xgJJ6C3k5biHUlV4OF1DhIKDmM0vzIOa9y1wDtnuMg8vn0U= X-Received: by 2002:a50:9a82:: with SMTP id p2mr3170066edb.130.1593176504825; Fri, 26 Jun 2020 06:01:44 -0700 (PDT) MIME-Version: 1.0 From: David CARLIER Date: Fri, 26 Jun 2020 14:01:34 +0100 Message-ID: Subject: [PATCH 3/3] haiku build fix To: QEMU Trivial , qemu-devel Received-SPF: pass client-ip=2a00:1450:4864:20::544; envelope-from=devnexen@gmail.com; helo=mail-ed1-x544.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" From a548479cab82200d9df33a70f24aeebb00eb70ad Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 26 Jun 2020 13:58:34 +0000 Subject: [PATCH 3/3] syscall skipped for haiku used only in qemu_signalfd anyway Signed-off-by: David Carlier --- util/compatfd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/compatfd.c b/util/compatfd.c index c296f55d14..ee47dd8089 100644 --- a/util/compatfd.c +++ b/util/compatfd.c @@ -16,7 +16,9 @@ #include "qemu/osdep.h" #include "qemu/thread.h" +#if defined(CONFIG_SIGNALFD) #include +#endif struct sigfd_compat_info {