From patchwork Wed Jul 18 10:04:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 142254 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp346522ljj; Wed, 18 Jul 2018 03:08:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd8gkPu7kkG8IocEJImMuuUOR20Jc61vHujN16tpk0aa8vm5LuoanTwWLpHgI9IgGetuGnf X-Received: by 2002:ac8:3477:: with SMTP id v52-v6mr4845354qtb.316.1531908494498; Wed, 18 Jul 2018 03:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531908494; cv=none; d=google.com; s=arc-20160816; b=JXBpWfIQTQo57kNqCdNKmWy7eCE1VcJQS1+4IZjC/Y1eZewPalrKSLo76aZm+3yPqH 1VN+Ea4Q+ob1ztA4QRThQ7Vmv/c8g2CcRtqqrBeU7ojZYAu7KTKfK2WVFwvR/Gv90Pyl abT6aVwnJSqIYfdJ6gBB0DCd7hnxpFMEIKwVMZWTP581MUqD7rx31zzajKSn0cii4Dus FSfR+sC3XPZ3LkqFFKocnnVt2c9sdi5l46NnSYCT9qI1q4/NdTM6e/COd4YJUo4LrBGM eEdDZwW7TttEVvmT42+yu4GBkoRQZukTOFO7dHCfa/p8GfHfP5MsQZUpJm8S0j0rM1ZS UnqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=ymZRqYY+ATw+ctBdd2FPZ8LJQIjAcyG+CMucNeIeVOE=; b=IFTJxNm3HW7hx1fi98/lwNv543lptSeBAdtad9EFOJ1RJmBDDvWLGhgX2PvrTSUtJm 8xjBv9ltbWrE8VaXOnOwvPkmdRNDuYEVfJb3e4TfGYn1zbv75uCJlfvkqQ8UyjU+Efs9 a/uU7yFiD58GeEVFDVN7rhdGYVEllMEPoP18FsMjULXmtDYPcNE3jsEZuWPFx1Cbrjl0 VYgN/a1t6rGmq95p+mNMa6qUF3y372yau2agtgzWr5hNo4KXCIRVNCleKmWvUxfeOCf5 /LI6kqGLTXU+dq1iyfmbhIhykA5WxJ5DUwkovdRm2Sm2VzLdSLAoRx7y2GZiinT7lsRq +Wxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MRZcmzF9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id w10-v6si2297700qtw.366.2018.07.18.03.08.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 18 Jul 2018 03:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=MRZcmzF9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:35668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjNV-0004Li-UG for patch@linaro.org; Wed, 18 Jul 2018 06:08:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffjKZ-00038J-HQ for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffjKW-000107-94 for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:11 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ffjKW-0000zU-0V for qemu-devel@nongnu.org; Wed, 18 Jul 2018 06:05:08 -0400 Received: by mail-wm0-x22a.google.com with SMTP id h20-v6so2211706wmb.4 for ; Wed, 18 Jul 2018 03:05:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ymZRqYY+ATw+ctBdd2FPZ8LJQIjAcyG+CMucNeIeVOE=; b=MRZcmzF9OB6Zf/hOlvwM/Uup+CYt3gNypy0lARY/ozCqF0XPUuFJWP2pY6dZ+8gNBj T+cEfUw9yOLxl3VMkz91uQQp/6+USHZ7ZGbCt6nA+bXZHOlLN4MryoHmrRbA3S6a7tdk 0nsT90T5o5WQUjfmiQSzAjc3QCd86Ey8U/bxI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ymZRqYY+ATw+ctBdd2FPZ8LJQIjAcyG+CMucNeIeVOE=; b=J7OCZkjGp+PSN34rNNiGbSsYZeUa+M5AUwrR7A1N0TkKXb5PiYSAqPkYlkOlFgb6kF CxvbKRGB+LkdsDajbX0TsoKP1fz83uiyaUPFy9YFIXP6F2ykaj7S4ydmVw1oVxnSHlek qiTin0IACMUUNZpT1OWmy9nmjQMsOvLQZ3TA/MV7vMvmdAJI9LCKfS64xSiE1FoAxVj6 xlJ8qPJH4Dm+RtwSJsti02oPORsQmIWl06bDVRYRk6D9lP65QcqYk1OoDJWqZ117JhoJ jvtZAhvHm4D75jQFrl5qDhfqxhbYS3xeE6c70b0PmUhP04JIWGgQLel9DMfQ6hVVm/sA E3Ew== X-Gm-Message-State: AOUpUlFtkTIFhXF1o9+6ZRSTOnET/UBZ2EDwRXBX+9pRsBuXsDgh8s9J nqO2zNMBjIQygT1nnX4jNGUI9w== X-Received: by 2002:a1c:ac42:: with SMTP id v63-v6mr1225812wme.92.1531908306404; Wed, 18 Jul 2018 03:05:06 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t9-v6sm3848449wra.62.2018.07.18.03.05.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jul 2018 03:05:05 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 33F213E0239; Wed, 18 Jul 2018 11:05:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Date: Wed, 18 Jul 2018 11:04:55 +0100 Message-Id: <20180718100505.7546-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22a Subject: [Qemu-devel] [PATCH RFC 00/10] docker on non-x86 hosts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, Our existing support for docker is fairly x86 centric. While docker itself has support for multiple architectures not all architectures are equal. For example Debian only packages the widest range of cross-compilers in it's x86 images (although for example armhf is available on aarch64 based images). As the binfmt support is getting more solid we always have that fall back option and I've converted a number of the guests that way. Unfortunately I've overloaded the meaning of DOCKER_PARTIAL_IMAGES but I was loathed to throw in yet another magic variable without some discussion first. I'm not sure if my current path will end up with a maze of twisty if/else statements all subtly alike. Thoughts? Alex Bennée (10): docker: rename docker-amd64 to docker-host docker: change docker-image to docker-all-images target docker: add a placeholder for handling non-x86 hosts docker: don't include docker-arm64-cross on aarch64 hosts docker: fall-back to binfmt_misc debian-mips64el-user-cross on non-x86 docker: fall-back to binfmt_misc debian-ppc64el-user-cross on non-x86 docker: fall-back to binfmt_misc debian-s390x-user-cross on non-x86 docker: disable additional non-x86 images tests: tcg skip docker images we can't build tests/tcg: debian-mips64el-user-cross fallback Makefile | 4 +- tests/docker/Makefile.include | 58 +++++++++++++++++-- ...debian-amd64.docker => debian-host.docker} | 4 +- .../debian-mips64el-user-cross.docker | 16 +++++ .../debian-ppc64el-user-cross.docker | 16 +++++ .../debian-s390x-user-cross.docker | 16 +++++ tests/tcg/Makefile.include | 3 + tests/tcg/Makefile.probe | 2 +- tests/tcg/mips/Makefile.include | 5 ++ 9 files changed, 116 insertions(+), 8 deletions(-) rename tests/docker/dockerfiles/{debian-amd64.docker => debian-host.docker} (91%) create mode 100644 tests/docker/dockerfiles/debian-mips64el-user-cross.docker create mode 100644 tests/docker/dockerfiles/debian-ppc64el-user-cross.docker create mode 100644 tests/docker/dockerfiles/debian-s390x-user-cross.docker -- 2.17.1