From patchwork Wed May 27 14:54:44 2020 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: 187274 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1192706ilb; Wed, 27 May 2020 07:56:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7PYO9dKBw2d7KFUkVPUOHLULIW71Shk3IFr1hDaUJFdbCbQFirdeE0hUPVmR2PglmBahh X-Received: by 2002:a25:846:: with SMTP id 67mr10521073ybi.210.1590591414378; Wed, 27 May 2020 07:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591414; cv=none; d=google.com; s=arc-20160816; b=sWTZPI1fxtLEByEuX1hTSggi0UbBL4J+NShGROossETN09LhiJxcqq1I7apuvkaGL5 VtxdwHg+HZHmZO3LXvtgoMyPWMDSpfEKvPJ4GNwc+lstXGHK8sNjvBAuJY9xwFW7S9bO Unpx7/uRQzoFHDiQTOwxsPEfB8j1ueyIehrChoR1T26RXaJdSb3i1Vmwu6VHerlGLgyw rSGlS+pFHUrVXKRuGsW9xPomlp/fEZSN44WOTiEgwu/xTST/gK0acn1S0jkz2t1nWlTe eE/hXpV4pDJNcQoFcNRRF8OyVshE5gpTlDQ7rs1K393tT27qOPnYCZYh1oAlDYFmpCLT 6+GA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Q0LNOa8nsE+fbJC1/7wmjeLH7Nwb81oPzvCmA/EHk64=; b=VdWSmczGTjopkDx7pTT0LgtA3n9mwfKY100A68lBcJLXbqI5te3SfFmyuDvIekpj5l zoSJveD5Z5tf8iLXpQQWSC8IcViyt4NjxazqzrCwCBvXLybxQE/HA9fp/q8fMyv7lrFX oYkYpdPLIdSrUsBmsnPaPWP1ts37cNr/v0addgEarGND0c6hio2HhLt2s7lattLntWLv uSFqmKSy2N+/Xbd0H5eAVXgCBJtyjSxEkOBs+eqYPKyCiBL9MIQfOtJmk7Hlb/eDQw1r 6IXWzWWTRIRAHu/UbbZmE5y6IY54+4bkrHBkfyaFvsZge7cpb57kf4P7LPUCRuUN/ICN yKzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="GZGtQ/PG"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id 137si3153626ybd.296.2020.05.27.07.56.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 07:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="GZGtQ/PG"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:51124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxUD-0004c6-TP for patch@linaro.org; Wed, 27 May 2020 10:56:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSP-0001gg-43 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:01 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:45576) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSN-00085b-K4 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:00 -0400 Received: by mail-wr1-x42e.google.com with SMTP id c3so20025898wru.12 for ; Wed, 27 May 2020 07:54:59 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Q0LNOa8nsE+fbJC1/7wmjeLH7Nwb81oPzvCmA/EHk64=; b=GZGtQ/PGLhy1yXHKmol/QXOeYUW22qxABlNkqtNYvsWFapcSDHmUcSJKlB9qxvNkHY fVjyP/irwtMhtzrS+lhj00+TV+wMU2Ki8658VZRYmub1Gm5Thb4GdRr+FH2S8nCZqFyA UNGcnSVVrp9N2DHVkS0rthNG4ZieKg08TmaxKcpGJHzyoj066qpgFecA4OmscMw80ePO fRYvYYP2QUwmvIrnH5MF4y/XLT0WYRsUoSsjV3iliFS8uNvZXM/JCuJ1kx2h2KcUjgvi yGIysAXqIIlaZl9Aa8A1rwxlQMO8nRUCrPVoF7CF0CxMlTbKGrqPvDSX3kOr6lnBc/6H 9MHQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q0LNOa8nsE+fbJC1/7wmjeLH7Nwb81oPzvCmA/EHk64=; b=pKhHXS1Z51ja23/CPHVnsKQFlUsUhobnnN/fletkPSxoJOG4KbgWkDiUBAh0zHpMJJ Q79ICLtu3eAI8Cwn6ZtJmie9C+VYYGIK/6O6/4GJ92Jlzxu9aObkx2JuWzusq7g9o436 3Da1o/c7Krxq5hJfW9kONvzNQZAZ2XjgVI8ziuL0PeinMojg3RWTFYB3oXHjhv4SpbHf s6Ghdu/1473dIwQTDibpsbMkhmxj/ffd3ebq3ntm8DJkZdyGQsuPV2V6gR/d5BRUIzp3 nyXsL960bAWWYXxFhkF56Zgp0Ac+SBdLkL+zgymSdjKo2+6XApmm9tx9BJeEJWjfw5/r wUdA== X-Gm-Message-State: AOAM532yCLAaj+Y2mMIFBWGc53Waok9TuM6Wdmf1zCoaf3FOIYKaiDYJ pZawceevraRV3ffu5h0eaSfAiA== X-Received: by 2002:adf:f64e:: with SMTP id x14mr26226263wrp.426.1590591297872; Wed, 27 May 2020 07:54:57 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id k131sm3433133wma.2.2020.05.27.07.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:54:56 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1E2DF1FF87; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 01/12] configure: add alternate binary for genisoimage Date: Wed, 27 May 2020 15:54:44 +0100 Message-Id: <20200527145455.2550-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Robert Foley Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Not all distros ship genisoimage which is a Debian fork from the original cdrtools. As the options are pretty much the same support it as a fallback binary. Signed-off-by: Alex Bennée Signed-off-by: Robert Foley Message-Id: <20200519132259.405-2-robert.foley@linaro.org> -- 2.20.1 diff --git a/configure b/configure index b969dee675b..af2ba83f0e2 100755 --- a/configure +++ b/configure @@ -941,7 +941,7 @@ done # Check for ancillary tools used in testing genisoimage= -for binary in genisoimage +for binary in genisoimage mkisofs do if has $binary then From patchwork Wed May 27 14:54:45 2020 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: 187273 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1191762ilb; Wed, 27 May 2020 07:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkvXAHqwSXAo4zAhCDJQy82Oo2RXOhUjtGNA7wNhqYQZrx2YhLePXmHZlQRBkpO438PCPj X-Received: by 2002:a05:6214:90e:: with SMTP id dj14mr24895609qvb.3.1590591333430; Wed, 27 May 2020 07:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591333; cv=none; d=google.com; s=arc-20160816; b=VeJUQozJncXZyqlpB4B2bS2EJFy/LksdHl+oObUygODoBA9mCXf+6ayWfHUa1GyH4c zaviGoY1Lz4sulmNctzRPoIuw1lSOMSlZIzVtRICdMLfEagjiEcGz+MBKACSiQmo8o8O qsGsPDXhLQ0UfdIvFA4FTGSS8ItaJZAsechXgy0wM9tGSH+DhmNrseWQ2T5uNEVU8bE5 xXc64MsOu2drLJ7tdfO6n+8o7Dz3k4V/fjS9jwTYaJH7sqg0F4++avNVvd2DLLsCo1uk OcRoj33IA+vr69OtcYOdzAbUoaKVQW/toesbBmqKpbb0BGMrvc0P9WtDBUF8v9dAq7wA udZw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=B5wSVizEtzyurTRIZ6Q2GLQ/Teo1CaqJnSNxTo1S1og=; b=PSFZm+Gygi0SDmY+wCTcS+FUlwivM3Gh6C/4lUmaIlgxqZKluotuEOFpJrsM3pJ8+R eqVG3wCrJi8jz9JKn65S4Bdg1n9yZibS6TpyJNAwKVLRT7PMFAhTlxNl2FqNxDJLqyLm ncFrXLtN/svQAn1rX8++meIFMKCoBRztw1oa3h9ArJ09pMU8X72zZUDUkwO0TYZxKmIq pjbqOTlqXj5SIQZUtAVeLdp0AwF424dLuOzgVtH1q6BE5x14GJsZGg9DVKxzU1B9Xpeq RYHfMaD1M835QKGNfunIZBxKLlT5NzuaDgkF4hA0Lz/nm9WLFAzPqzdhwNNSUSnjXeDN Sd/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vhsRSyNv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id j24si637260qtl.307.2020.05.27.07.55.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 07:55:33 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=vhsRSyNv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:45630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxSu-0002MT-SM for patch@linaro.org; Wed, 27 May 2020 10:55:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44492) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSR-0001jP-1P for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:03 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:40550) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSP-00086W-Mb for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:02 -0400 Received: by mail-wm1-x341.google.com with SMTP id r15so3312028wmh.5 for ; Wed, 27 May 2020 07:55:01 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=B5wSVizEtzyurTRIZ6Q2GLQ/Teo1CaqJnSNxTo1S1og=; b=vhsRSyNvXDVa+nwXEqr4NNxNQAfwb+uFFbXCPOWYE9z+2V70OBW1ph0PA7iaSbpZlM fQdFG800zXWb/gNxt49lN2D8JLjd/rp4L+vwPHRDhBwsvcCycyQQJR0XohPylSszzSnE XCvLqAd8LK5iFj66FNlMeron7f85lby6Ow3+mfPob38J9fgJKLHMxjIhOec724Iru8lx dZKTwTOVFxAsafkMS79/ZDLuAxl4T6i0CL/XmJAdSF1UVH7LmOkoyzqcx5hiAdZQncxV 04Zks0t7Z+QAs1BFtKJN2bBoBLhl51tZLJ8yM1BgtqV3BY51I/kkcgjPJdFdm5W9gK5a 6vTQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=B5wSVizEtzyurTRIZ6Q2GLQ/Teo1CaqJnSNxTo1S1og=; b=ntFxH/GUD1f2UlKMM2w0ywePFDiw6p2WVj8HyTY9zeSL+gh2IdmiEHS55alJt6+6c7 z52UoEpKLX01UR8pr3kbUH12ELBxAe7BiMy4Z6cyBtp0TUicVuep9ymFf68PuGUbCXx7 Y3RMYSLHAt6RPBOxOQv6dTOQGwJ2u7J8hYqGA9Sk9EljRXd40QBOnb+kEiWUrhS7m4kf WDRkC+hRvkHN7rKc6hkwzLR+O11GMPizWtJdpq/kTlFbja2NYHy0nNOvya7/sCE816m+ esqlp+QmuQ1j4ZXUwRQFMJw8eEuJe1yWfVbIXFBcsg8oHrZyeHaribbU+Lp/dToq833A svyw== X-Gm-Message-State: AOAM533SebqRirjwU2GuvFlLdBiQa+GUoqmCSHX93POr1N7M7SWyr20K 7WyPK6/5aLWvySy5gy9AKtrCbA== X-Received: by 2002:a1c:9e8a:: with SMTP id h132mr4660651wme.32.1590591300136; Wed, 27 May 2020 07:55:00 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q5sm3243635wmq.36.2020.05.27.07.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:54:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3CCDE1FF8C; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 02/12] tests/vm: pass --genisoimage to basevm script Date: Wed, 27 May 2020 15:54:45 +0100 Message-Id: <20200527145455.2550-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x341.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Robert Foley Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" If we have an alternative to genisoimage we really need to tell the script about it as well so it can use it. It will still default to genisoimage in case it is run outside our build machinery. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Robert Foley Message-Id: <20200519132259.405-3-robert.foley@linaro.org> -- 2.20.1 diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include index 1bf9693d195..74ab522c55d 100644 --- a/tests/vm/Makefile.include +++ b/tests/vm/Makefile.include @@ -56,6 +56,7 @@ $(IMAGES_DIR)/%.img: $(SRC_PATH)/tests/vm/% \ $(call quiet-command, \ $(PYTHON) $< \ $(if $(V)$(DEBUG), --debug) \ + $(if $(GENISOIMAGE),--genisoimage $(GENISOIMAGE)) \ --image "$@" \ --force \ --build-image $@, \ diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 756ccf7acae..a2d4054d72b 100644 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -61,8 +61,9 @@ class BaseVM(object): # 4 is arbitrary, but greater than 2, # since we found we need to wait more than twice as long. tcg_ssh_timeout_multiplier = 4 - def __init__(self, debug=False, vcpus=None): + def __init__(self, debug=False, vcpus=None, genisoimage=None): self._guest = None + self._genisoimage = genisoimage self._tmpdir = os.path.realpath(tempfile.mkdtemp(prefix="vm-test-", suffix=".tmp", dir=".")) @@ -381,12 +382,12 @@ class BaseVM(object): udata.writelines(["apt:\n", " proxy: %s" % proxy]) udata.close() - subprocess.check_call(["genisoimage", "-output", "cloud-init.iso", + subprocess.check_call([self._genisoimage, "-output", "cloud-init.iso", "-volid", "cidata", "-joliet", "-rock", "user-data", "meta-data"], - cwd=cidir, - stdin=self._devnull, stdout=self._stdout, - stderr=self._stdout) + cwd=cidir, + stdin=self._devnull, stdout=self._stdout, + stderr=self._stdout) return os.path.join(cidir, "cloud-init.iso") @@ -424,6 +425,8 @@ def parse_args(vmcls): help="Interactively run command") parser.add_option("--snapshot", "-s", action="store_true", help="run tests with a snapshot") + parser.add_option("--genisoimage", default="genisoimage", + help="iso imaging tool") parser.disable_interspersed_args() return parser.parse_args() @@ -435,7 +438,8 @@ def main(vmcls): return 1 logging.basicConfig(level=(logging.DEBUG if args.debug else logging.WARN)) - vm = vmcls(debug=args.debug, vcpus=args.jobs) + vm = vmcls(debug=args.debug, vcpus=args.jobs, + genisoimage=args.genisoimage) if args.build_image: if os.path.exists(args.image) and not args.force: sys.stderr.writelines(["Image file exists: %s\n" % args.image, From patchwork Wed May 27 14:54:46 2020 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: 187278 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1193661ilb; Wed, 27 May 2020 07:58:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhzCTB6ZSyW07dGCdGVzq23Obl7xdh4UoVj5ihiOba+hQOPLKMBOOkNCNVR/F5A3780WWV X-Received: by 2002:a25:b5c2:: with SMTP id d2mr11050239ybg.9.1590591498181; Wed, 27 May 2020 07:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591498; cv=none; d=google.com; s=arc-20160816; b=aWV3YTeVIBk0H05vvdTtchaU43umynoZ1cTyfUHFWxioZrPVXT+gQtcMeL2htvy+sR +9za4HC+YURHP/wEXLbLuO9iKmbWGOAU7pOKog61eysoxslAoajWsH8c1oZMhHzHNViQ 2OqE/xDtk+xPRxpCXIhdUaMF44403Be3g3vLNu+CyHVFKN2pWyqNehqAm89WHQRfWluL Pb6CFcxZhkdq/RQGuE9QdGPNQuGTXtq8LshSRQr0D22Zlc3wWKeIBdBKKdneVJTyAtlk v5Y4ialk2sQCA3cbKYmj7j5IyoA3xSK7aWmy4PJvmbrgqidRiVQYccWaIkkKWR264R9P pcyw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=jrUkHAApHhp6xANTyxUoK7alihevxNR/A5+KN9e47UQ=; b=n+/twTkL/34BV4+O6O8L0CFoEifITRfOz+lWr/8kgD6PgqZWeSDjkM2It04RNpx9vN ilG/xZjpoSmVU6YLCXDJSGBvUmxgz5P7m7299plA3Ki4z6aMqUtUPL3KNZUuEl4+3Fzr /ROVtT5kudVp92u5gQ9C5Ug4dKCeIW2+aicaf8H9U6eho4tHv0jdrxl9FXZ+C+MMQ9O5 S9SW5zIyTjRTlQEFt/cmf0EXveb7r3eGIFORGa/gaL6xeAHAyEZcox0ovu1LWe505May 8MQ8De0biafG/j0dZ9e4iQIywZ6yu06tDZjBfJSGBo4r5kUP+VVmI55VX8N5mhOIqUwM dq0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=uqJr3GeB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id f142si3069025ybg.418.2020.05.27.07.58.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 07:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=uqJr3GeB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:59552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxVZ-00085a-Jo for patch@linaro.org; Wed, 27 May 2020 10:58:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSS-0001lU-HK for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:04 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:51980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSQ-00087K-M0 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:04 -0400 Received: by mail-wm1-x32c.google.com with SMTP id u13so3350664wml.1 for ; Wed, 27 May 2020 07:55:02 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=jrUkHAApHhp6xANTyxUoK7alihevxNR/A5+KN9e47UQ=; b=uqJr3GeBau4h3aIY5NIeHOjiOc3unA0hnmD5veTwEuuG/w0EU0UpjfBOENDFyl1xb+ jrN7KuHhTSuABTEhCyFg5kCl+MEdusFkuQI5tVTQsSGMhCW4NsubDN/V1Yiyv6gqgbZp xGR4slW0RP6TNcR5Hq4WuR1hRhgmVIz/2bmBUifcS15T2rKKDtGVHKG3ktn/DipB/Lg6 mdsaPSIbZ7mc5hqWC69Mlr2H+ycbf1fAi9jZgFu+AY4CnW5biCpAR5zm173e7mvZzOx+ lVIbnqBV9J0gmr1CVDZyYoJsIXY1gITo+rNEa6SHZbB2d6jSuIFyUeffmwVfQdU37yLg D6Bw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jrUkHAApHhp6xANTyxUoK7alihevxNR/A5+KN9e47UQ=; b=LXe0v1Qs4CvOlnyu9ruPxs6HEYIccviMAQQvm6dMV/++flOaiGxuIYdCdf7wVyycpv Q6oyaNxZ4lNpSQoDBpa04IdZ2RAR3MJLJM5T9P65r4P3n0bMLQq/8N+rgwIGSKpJTx9k QCk6XH7MM5poCc/wN4p8IEbvy3v0Dl2XPeGbebrjZ6ppX8gHoAc8bRh3902K8YaX/qD7 VhLH9QPlyWUfR3dk4rJO85NyT0vAkspn0yo64zutzXYQVysoxHYn7B7qgkM4+eYCHTmZ AKcui71MPrn7uJ6jrH6qkh1EkpViD3cWcWz/CZm3rSOih0wyizTAOeIrY+iVCY/1XkBH ukXw== X-Gm-Message-State: AOAM530bfFFnS/LCqp4aKATkonsW3hULwi0qGONsrM3TOvyRoaeIy6qh 5YSu+F17eHR1a2ScxjWg/Uyl/g== X-Received: by 2002:a05:600c:1146:: with SMTP id z6mr4554192wmz.179.1590591301136; Wed, 27 May 2020 07:55:01 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z7sm3030126wrt.6.2020.05.27.07.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:54:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 54D891FF8F; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 03/12] travis.yml: Use clang++ in the Clang tests Date: Wed, 27 May 2020 15:54:46 +0100 Message-Id: <20200527145455.2550-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Thomas Huth Our configure script does not look for clang++ automatically, so we should use --cxx=clang++ to make sure that we test our C++ code with Clang, too. And while we're at it, also use --host-cc=clang here to avoid that we use the normal "cc" as host C compiler. Signed-off-by: Thomas Huth Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20200518083316.25065-1-thuth@redhat.com> Message-Id: <20200520140541.30256-4-alex.bennee@linaro.org> -- 2.20.1 diff --git a/.travis.yml b/.travis.yml index 1ec8a7b4657..564be50a3c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -205,14 +205,15 @@ jobs: # Test with Clang for compile portability (Travis uses clang-5.0) - name: "Clang (user)" env: - - CONFIG="--disable-system" + - CONFIG="--disable-system --host-cc=clang --cxx=clang++" - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" compiler: clang - name: "Clang (main-softmmu)" env: - - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} " + - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} + --host-cc=clang --cxx=clang++" - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" compiler: clang before_script: @@ -222,7 +223,8 @@ jobs: - name: "Clang (other-softmmu)" env: - - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS}" + - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} + --host-cc=clang --cxx=clang++" - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" compiler: clang From patchwork Wed May 27 14:54:47 2020 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: 187280 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1195070ilb; Wed, 27 May 2020 08:00:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrNNkdaRkZBFePHHRHVCRBacWy3OchBegqVyLMENzA6MoGo1vCJmSnW/nI7yJ5QhE82SY9 X-Received: by 2002:a37:e205:: with SMTP id g5mr4507819qki.451.1590591609417; Wed, 27 May 2020 08:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591609; cv=none; d=google.com; s=arc-20160816; b=AAhq2dxB/Lb9G28oyKe1K3DahPBOvJ7skacwH7/FNVF6u3oQvZ+MfdVSUrIM8Rqd5u zwEgAAWzOCFirhqXfZczom7grbWjWYn8EScjSdWjt37MUYdZHUjtuNCC7bl4IB8MVgy9 RBzl+N5EfYYXXkSGNVAn4mWoFNJDtLMPQCP0XECVxiXxBgc/HhBQSIfmy9P8+X5gO9Le x1VCfMWhTCRlvBl9fgjOi4Uf5ni28iP+0WRjD1P/nKuSUbmzbiX4ohUfVfb27lc34uNi bYQGx2t62heVSOyERN/E+Ils3egUzcYAqY07hma9iTdbEhOSu70EGEvmOPjhItp7tXrL kJ7Q== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=9HZ1EFz6RskQjzpAroacy545o4e5LlawaS4/URLolBY=; b=lRkMyTLgwZ0ndoZYk1d+znUl/wPwNiDsbb+NSererZPZeZ9wXunm2pJNcBm9v7Ow+t NmdaJGoHNMPv0SHQ52ahgb1y1tlyl3WCbIjZmqduqxETjxY2Het+ZbJCR2feJlsUKtNA LfI1WVUg+bdjDk9Z1Ct3pfJ9fVblmiCll+WvWfalS5wNi5ouxeHqHFYfKaNQAW1yJ6FV 1jWHWk1+zrJuVW5I4b2PeDZLiGQZnJA7wLclI31aWbVU/x3xufCLJaY0d2vdhw/vk6QZ ZCsd7huU8hA3eSYbOvcpa8mPByKYy777gKPwosuy7l5ndDLkyVq1qyBLYNTMDyeyO6lI 3EoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hURhiBRM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id t18si1699301qvp.169.2020.05.27.08.00.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 08:00:09 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=hURhiBRM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:39066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxXM-0002qd-UO for patch@linaro.org; Wed, 27 May 2020 11:00:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxST-0001mX-GN for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:05 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:40367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSS-00087h-80 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:05 -0400 Received: by mail-wm1-x335.google.com with SMTP id r15so3312204wmh.5 for ; Wed, 27 May 2020 07:55:03 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=9HZ1EFz6RskQjzpAroacy545o4e5LlawaS4/URLolBY=; b=hURhiBRMam1thRAmzjVBDkG12amfK2VF8G0+QUzB3y7v/NLGOwZ3Gv28hyEa4hXQMn Sjscj0Cy4f6pkL7bWhOdngviRCDqk6feSQv/+ajPmH3vWz95L+Tn2s0UnMJAcA3qK0Yg jAfyIcNZuVUdXZdJHbcuHKFHUjd9WAMCtN9cTAPNqVmYn5vPCRbXK0SfAcFTJdRC0lf8 yIvpF/4zPM/vmy5EM7KnsCBNEzIikQRBW5Hy1+Msz10T2k7/XeovnoG7Py933ivaxFuB uxVR5M/Oqlzt/RcLmY7TRDkA9dJEF9ZRd6WoAt1we2x8pPf2MiqDDls1162+O/j8w//z v15w== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=9HZ1EFz6RskQjzpAroacy545o4e5LlawaS4/URLolBY=; b=A5HC+IxhXPnFvQlhMQsPq64esTVlIemWO/kNZ+uikd+7dhGAntGuyfGdPgm1ts+y43 AgvTP4OCjuLb4++VGjydQIGsJIrEck8/7fMpkLb6MOndH9WhpGkv9S/sMYGPvbCKVSuT W0uXCWI63yZWMDcckZqvJS/Kq70qFm9DHCYdupcV6bkRajzkpxeaFV6RMDxGbDyfHlM0 O09G3Sjx/P/RRQAAad7nw7ZmoYvAxfleYwvD9WOXyGTp58Bm5pN184fkRD9f7v4+7FrN MYQaIql9gdzdV3A8GJ/CSu6GAJQxxK7L7lA53NUQuv0WSNo5ZNSGhMZ5QDVxCKtPdIZc 5tXA== X-Gm-Message-State: AOAM531dBh+tJ9CgjC/XTd01ajqLweMM4j7vPPdcBgkDMm6+alXaaaAh yL9UHUMa3ctY5KR8ef5+rE7lcA== X-Received: by 2002:a1c:9e43:: with SMTP id h64mr4555090wme.0.1590591302345; Wed, 27 May 2020 07:55:02 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id w15sm3053551wmi.35.2020.05.27.07.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:54:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6D4081FF90; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 04/12] tests/tcg: fix invocation of the memory record/replay tests Date: Wed, 27 May 2020 15:54:47 +0100 Message-Id: <20200527145455.2550-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Richard Henderson , "open list:ARM TCG CPUs" , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" I'm not sure when this broke but we should use EXTRA_RUNS for "virtual" tests which are not generated from the binary names. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200520140541.30256-5-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/aarch64/Makefile.softmmu-target b/tests/tcg/aarch64/Makefile.softmmu-target index 71f72cfbe34..1057a8ac498 100644 --- a/tests/tcg/aarch64/Makefile.softmmu-target +++ b/tests/tcg/aarch64/Makefile.softmmu-target @@ -61,7 +61,7 @@ run-memory-replay: memory-replay run-memory-record $(QEMU_OPTS) memory, \ "$< on $(TARGET_NAME)") -EXTRA_TESTS+=memory-record memory-replay +EXTRA_RUNS+=run-memory-replay ifneq ($(DOCKER_IMAGE)$(CROSS_CC_HAS_ARMV8_3),) pauth-3: CFLAGS += -march=armv8.3-a From patchwork Wed May 27 14:54:48 2020 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: 187281 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1196254ilb; Wed, 27 May 2020 08:01:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2NgT4JSSBbsvQfQ6mqR2rAAu/lJYmvDlBEOM0VwLJh+Rv5Ucy6q3mVqjENr46ZS0uwVTW X-Received: by 2002:a05:6102:101b:: with SMTP id q27mr1251685vsp.181.1590591681063; Wed, 27 May 2020 08:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591681; cv=none; d=google.com; s=arc-20160816; b=Bt+cWJQZj9XXZDBGpFh8l0QhbgrWmo39VQ6g4zsrZBUjRPNxiuUSjs9zbCzK7nDia2 PvVwWnxizM7Ys28r7f7884ya0j1PLYlViWGYhZjuYwf4CQq/FhzTVG93LAp6Sbutemy2 l6kNmDRrJuiX9HsLz7lg+7FJ0sFEFRDKfcLwZ2jug9vrdHAxsEWOVJWvUQWzRkx4Kjgh BRq9A5iNBZwIErpIpXstpP90cjd0Ah+CH1Id1qrDkafWU/DpMHSsU4QtrUAaOtambD6q 10gEjkTnutR6nmr115bUUrsc/dkdraBWJC9rdwm2/5N81rs1UbAFXuSRImaIrGmYNml/ lMMg== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=8vupRe9jwuhTs7KToAQhEvgkiMcCUBt7Mkvk5TFUzZs=; b=r8lQ+v4o6EnWN2oQBeRECN3Htsb/ajimE2yW8ztxQ7THOS6kU5a93FPOWq2Wn2JrNX WjfS22t8uJtb6dkFTSw+wfiA+hg2P2ktwYvmsjHL16qY5hqTsK6u+hyDyiFh0eGwBT7F /M263fYWDjo3a32nbAdd8A09U//uj3W7Eu9djvNCQ0vwjDAeQ6XfgQOXvS2I+RGKZA2Z ub0kHDkkRYjj0rN29Q93fglOh4FdPFLQ9htOIX7AVw0iBkEzCLmRb5vatfO9POAAZ9I3 +4q3BGEDCatsyqLXDRiQol6IUs0cS7sjfuB7QeCN5JMb5fET8jHorJqvIBKr598LTlmk zb7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nHUorLf0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id y130si341778vsc.60.2020.05.27.08.01.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 08:01:21 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=nHUorLf0; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:41288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxYW-0003wf-7Y for patch@linaro.org; Wed, 27 May 2020 11:01:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44516) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxST-0001mr-Qc for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:06 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:35871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSS-00088W-QE for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:05 -0400 Received: by mail-wr1-x42e.google.com with SMTP id q11so12158767wrp.3 for ; Wed, 27 May 2020 07:55:04 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=8vupRe9jwuhTs7KToAQhEvgkiMcCUBt7Mkvk5TFUzZs=; b=nHUorLf0Pn4IZ7q0JQXkBRUnT3MZYUh2Ww9VNciYYAZN+d40i1yby4TuZ4P89NcO5c LFxXxeCwKrJQBoDWoBSeQPFEOXTnyLwsuzwq0l1AxyBifZCBh/gza0eFq94lNiE6jFfL Ce1mzFrs9kc6wH9TiLRgdBLyKaRB/jxZeOFhsqI804mpDIU8qqztplpjhn+Fx+QK2MXp IiE8vJ/F6NKaadtOjlVODFwWjrCYmwF5O3Gpj9/VKnJsCzqsjpJo+tyZatMSWLcyjtSK 8IZcipKz1f/LP6sbJeo+oZq7MunT+0zkIFIFfgsgrFpEkU6W9zgkQXJ7Vzb62OHcKpVb oqgQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8vupRe9jwuhTs7KToAQhEvgkiMcCUBt7Mkvk5TFUzZs=; b=H2A18UwtrTaYp6HqKPDYBtq2fTsCJHgWV08/kWKqeQh1/lq6c+DsTgqpBhNkM5UBfi lyKSET4blc2EkJ1R4cgFLnZjVrTIiF6dbejo/oGdAEFBCPCb1qcqqfUJwJkKMTh/Mfqx 6Q2sFP0BFEkAZoa7afuBSb/n22DsCUXUQp+UiMBLAZcL103Nfreef3vGp28ob89ndR4V JAKLvFvy7dYHD3WP6+gr7maj0dezk326U68FMMBd4mhyu5zv20LpFTWktGf99yEf4M1b 5CXf9zzhN3wXBe15JAWfywu8isMWIXGUy3ZahvigPpvkxkXTE7qM10Fab/ci9EdZmpfd zo6w== X-Gm-Message-State: AOAM533+PjT7h7TClkWt1nncnOg+xpDF+5JMWmR9u4ndAoyrl/yYfCY+ PsrhDoQeBZ8E52SrfTh0Fn41HAOCC+E= X-Received: by 2002:adf:e883:: with SMTP id d3mr15356633wrm.274.1590591303447; Wed, 27 May 2020 07:55:03 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u74sm3027510wmu.13.2020.05.27.07.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:54:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 821D71FF91; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 05/12] tests/fp: enable extf80_le_quite tests Date: Wed, 27 May 2020 15:54:48 +0100 Message-Id: <20200527145455.2550-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These have been fixed now so we no longer need a special version of the le_quiet rule to skip the test. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200520140541.30256-6-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/Makefile.include b/tests/Makefile.include index 03a74b60f6b..e6d87fcbf0e 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -741,13 +741,6 @@ check-softfloat-%: $(FP_TEST_BIN) SF_COMPARE_OPS=eq eq_signaling le le_quiet lt_quiet SF_COMPARE_RULES=$(patsubst %,check-softfloat-%, $(SF_COMPARE_OPS)) -# FIXME: extF80_le_quiet (broken) -check-softfloat-le_quiet: $(FP_TEST_BIN) - $(call test-softfloat, \ - f16_le_quiet f32_le_quiet f64_le_quiet \ - f128_le_quiet, \ - le_quiet) - # FIXME: extF80_lt_quiet (broken) check-softfloat-lt_quiet: $(FP_TEST_BIN) $(call test-softfloat, \ From patchwork Wed May 27 14:54:49 2020 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: 187277 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1193076ilb; Wed, 27 May 2020 07:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpl0U64eGYFURYcqi4tJY52g+TU0MhD473OvW1m/61RMs61KIEbcURwKJQDJ6NbfpfqWgZ X-Received: by 2002:ac8:bc4:: with SMTP id p4mr4684923qti.72.1590591449691; Wed, 27 May 2020 07:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591449; cv=none; d=google.com; s=arc-20160816; b=Sc096ykzjBLcFk9ty8cch3xrJ/iQmJBwjDkiZz0TE8tS/nwa371Bxuu0CCFGUv4GLd zAY0taCfYE/prrb+tqQn27CcR/61210reE3ckyqbGYDm3RnaN29by0Yl9JhfIjFg5zZT iYgvybkm4/SwZznFCMRndmMFOujH8UpkzcTD3EWHnwKTnjTVo44gTBpvm1A4fQcgDASJ JWK2gV1JsOFhtWiE/FeVpuhT/TLRLA0vfDm3WuxRJHAP9mSlQFsomlog/7e2NH0SN2+r d9UYXhv2GfA8zUqsHO8gEj8lSh5oXWmnQUAwbx0c5XyTeiIyj6ccVunMsWJNhVaEXbj8 RGiQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=QvhGNTeRA8q78PxbK23cSE9XvqC4pZ+Nj6yuRj0xIqM=; b=voNlKJegXRwx8gjOxTxPsTWHO+Dki7qmbO6/L1nJtY6oA9/iXtXEWyrTsvrmBPXet1 C6A9ZWwdfUvUKmaB0kUGO0kkXrn85BtzYJ98rGIXF475YZT4pHyQQpmDv+7lU5K3fZFw R6XE4oleTIovlpnoGYLVSVqCkcmCU4tSUd+N7f+G2HUKoc+OLyRi4wmfsFQMBlNSqji6 e237gdYnFMKtssA+xmDdo/9dtvUMMBsN/swGMWGfYFYMv3gCliMRpfj7ehZHNoeCmVcd 0iF1AI1uvPTHGFWI/Q4ba2Rt3dqvo/Jk0ugTcVLRFCMb5qrJGMrV31y+qv86Uli6ls2d vFQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c0rAkQ25; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id y5si22501qvj.146.2020.05.27.07.57.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 07:57:29 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c0rAkQ25; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:54226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxUn-0005wL-6K for patch@linaro.org; Wed, 27 May 2020 10:57:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSV-0001oo-Dq for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:07 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:37084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSU-000899-1p for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:07 -0400 Received: by mail-wm1-x334.google.com with SMTP id f5so3334963wmh.2 for ; Wed, 27 May 2020 07:55:05 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=QvhGNTeRA8q78PxbK23cSE9XvqC4pZ+Nj6yuRj0xIqM=; b=c0rAkQ25bQMBk/E31Bg12O8rDqZwfBdYiMvt4incWMn/iOIhs7+cRub9+gW9Gezl+T OEheBLqKRZZK+b8q+/ZQTdglYAZ1hn11YlcGPp0FcF1iIBEqSvx2J9GOrhfJljVfxB22 WBInBC91cJG4y4n78mbpOMCm4QMFGebEM7wEZBYiUtQXxv01Ch/tZVA8WGv9WkASxo6e 8YdI/mdHv0HXDTHMAh7I8/a+XFyiCS6jsitVJVZU+xg97fogPjWXAKl7SLl1IQYbPvzk DEcgl9Gn2hQ77QW60c2bvV3Hg8ZgDNf00xkS/i67FDs2s1zS1Ct9cX4+7Q8vhepIGCAS Wfkw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=QvhGNTeRA8q78PxbK23cSE9XvqC4pZ+Nj6yuRj0xIqM=; b=KFTM2U25KSBWmUlbMdiRRmrm1iaiUh31tCGhk9oUTL/flDYKuhGleuY5umPYEnEIqK wYdSP5wR+d57M8jEqVeG1O9Xsaojx1BsBRaUeiSXBKwoaQqE14cTB3TxNm7uHsn8JHcB vPRIocxXxJ0fw4ZasHBe1dLST6aMn907pKMCwt4kVj3QJSSNi5JpwBOZy6AsIz/rNcSM ZEdKRdCFUxnrCm97Z4oB2PB5e4Kx6h2lzQ5Cu0LoyYNuyXDy2llhblmIlRRSFzX1Htnp 7lHFY6GE730fIoYAxJqP9YkaP0klvbBHQqy9DbJDEbAX2+tq4xA8iafnb250s7sFdBLK PxAA== X-Gm-Message-State: AOAM532eTqsvwx/madQtdYrFHSBv/MFD2oXnreh2xSXXHD3BSmU/AjLY SResbL4AIfY1D8ljjnW8+H2pfLympkA= X-Received: by 2002:a7b:c7d8:: with SMTP id z24mr4456676wmk.28.1590591304616; Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 23sm2862954wmg.10.2020.05.27.07.54.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:54:58 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9743D1FF92; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 06/12] tests/fp: split and audit the conversion tests Date: Wed, 27 May 2020 15:54:49 +0100 Message-Id: <20200527145455.2550-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Split the float conversion tests into separate groups and audit the tests to check what is still broken. I was able to enable a bunch of tests that had been missed before: all the float to float conversions ui32_to_extF80 ui64_to_extF80 extF80_to_ui32 extF80_to_ui32_r_minMag extF80_to_ui64 extF80_to_ui64_r_minMag Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200520140541.30256-7-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/Makefile.include b/tests/Makefile.include index e6d87fcbf0e..a00ccc94b8b 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -687,11 +687,26 @@ test-softfloat = $(call quiet-command, \ (cat $2.out && exit 1;), \ "FLOAT TEST", $2) -# Conversion Routines: +# Conversion Routines: Float to Float +# FIXME: f32_to_f128 (broken), f64_to_f128 (broken) +# FIXME: f128_to_f32(broken), f128_to_f64 (broken) +# FIXME: f128_to_extF80 (broken) +check-softfloat-conv-f2f: $(FP_TEST_BIN) + $(call test-softfloat, \ + f16_to_f32 f16_to_f64 \ + f16_to_extF80 f16_to_f128 \ + f32_to_f16 f32_to_f64 \ + f32_to_extF80 \ + f64_to_f16 f64_to_f32 \ + extF80_to_f16 extF80_to_f32 \ + extF80_to_f64 extF80_to_f128 \ + f128_to_f16, \ + float-to-float) + +# Conversion Routines: Int and Uint to Float # FIXME: i32_to_extF80 (broken), i64_to_extF80 (broken) -# ui32_to_f128 (not implemented), extF80_roundToInt (broken) -# -check-softfloat-conv: $(FP_TEST_BIN) +# ui32_to_f128 (not implemented) +check-softfloat-conv-to-float: $(FP_TEST_BIN) $(call test-softfloat, \ i32_to_f16 i64_to_f16 \ i32_to_f32 i64_to_f32 \ @@ -701,7 +716,12 @@ check-softfloat-conv: $(FP_TEST_BIN) ui32_to_f16 ui64_to_f16 \ ui32_to_f32 ui64_to_f32 \ ui32_to_f64 ui64_to_f64 \ + ui32_to_extF80 ui64_to_extF80 \ ui64_to_f128, uint-to-float) + +# Conversion Routines: Float to integers +# FIXME: extF80_roundToInt (broken) +check-softfloat-conv-to-int: $(FP_TEST_BIN) $(call test-softfloat, \ f16_to_i32 f16_to_i32_r_minMag \ f32_to_i32 f32_to_i32_r_minMag \ @@ -718,10 +738,12 @@ check-softfloat-conv: $(FP_TEST_BIN) f16_to_ui32 f16_to_ui32_r_minMag \ f32_to_ui32 f32_to_ui32_r_minMag \ f64_to_ui32 f64_to_ui32_r_minMag \ + extF80_to_ui32 extF80_to_ui32_r_minMag \ f128_to_ui32 f128_to_ui32_r_minMag \ f16_to_ui64 f16_to_ui64_r_minMag \ f32_to_ui64 f32_to_ui64_r_minMag \ f64_to_ui64 f64_to_ui64_r_minMag \ + extF80_to_ui64 extF80_to_ui64_r_minMag \ f128_to_ui64 f128_to_ui64_r_minMag, \ float-to-uint) $(call test-softfloat, \ @@ -729,9 +751,14 @@ check-softfloat-conv: $(FP_TEST_BIN) f64_roundToInt f128_roundToInt, \ round-to-integer) +.PHONY: check-softfloat-conv +check-softfloat-conv: check-softfloat-conv-f2f +check-softfloat-conv: check-softfloat-conv-to-float +check-softfloat-conv: check-softfloat-conv-to-int + # Generic rule for all float operations # -# Some patterns are overidden due to broken or missing tests. +# Some patterns are overridden due to broken or missing tests. # Hopefully these can be removed over time. check-softfloat-%: $(FP_TEST_BIN) From patchwork Wed May 27 14:54:50 2020 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: 187282 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1198065ilb; Wed, 27 May 2020 08:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx88f9+mR5Blsx6w30DAN37p7Z+J4k6D9tpPy73JsVzKTc7A/c15IzMjh6qgUkvvFTqUgkO X-Received: by 2002:a37:9c91:: with SMTP id f139mr4630568qke.371.1590591783585; Wed, 27 May 2020 08:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591783; cv=none; d=google.com; s=arc-20160816; b=xm7Rkg2LWayUWMupAjDfU4GayBYQa5K2ai1+h8huY8ez0HHuTo0hFTuO9tdv1/bn9I gqOXnDh0dV90pR9m6Gvqr+7W3tsTEkkurqi4CQM9G8MFoEkws4/uytrqY9miUFOHCA57 WjlxfD63AEK7zQ24EFeGT4FaVcelQbBYeyyDpKb9GKRHjl/LAn/ItgrkOv0W/OkCNy3u ndCf1vHSGri2JyaxLbaYs3R0mWpwUHjQ7CMdSJWkI/PBaL3kkmpJRuR8z3Iey6lYz0eu 3y51gIGrfZbbsa75VtGXZy425jVP0KujRjq+2wUFgtqA7arYafRpiUwXjT7cV8Qf/UEq 2vjQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=kYq+Iqo+cKi5UFcKLWoiaFCpkMVAa+BEZNXisFwmIpA=; b=jH1En5geL+k8HsTJcbXXq6swTV7qNxv/reTXsQ/PJYAeiDLNTaL9TR1a4QwI4lWNFx 2ZQaoUOe+rmS/g4u9b2vN7tnR+Nosr2HRDRDmPc934u38ZP9bciocH183On7rtAXg4SK sloL4oE4tIBld6m9b1qQtybFtM3eLas4iiZFHwaZbxMcK6bZDO95hgkc8XwAMjcZ0JvH DGyUNZ76ir8teKLAKdcQ2PuygfnbGPctDb/LSZkBVgKEuROMAz5QQiKdS+ZkE0sMndRS SrLm1C/c6cGWognhy/sM24tbjbTB/Le8r0vh6Ay5cV+hK9h7H4Jn8gL9SsPLf0hhPhka z9vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FYeYzNCy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id n17si1841950qkh.319.2020.05.27.08.03.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 08:03:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=FYeYzNCy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:45556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxaB-0005jn-5t for patch@linaro.org; Wed, 27 May 2020 11:03:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSY-0001rZ-Hv for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:10 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:46233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSV-0008B3-R4 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:10 -0400 Received: by mail-wr1-x42a.google.com with SMTP id x6so10675012wrm.13 for ; Wed, 27 May 2020 07:55: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=kYq+Iqo+cKi5UFcKLWoiaFCpkMVAa+BEZNXisFwmIpA=; b=FYeYzNCyCbTKOMRgCoghqQ7NbL+LGtxnqqP4nb2XQaThP37M1JgJTOcGjwxjXVXB3b +V9zTqkuipZ50eDBS7grJHTQaoGHAeqViIftxQD3+pjVu0BxdN9zabDgpJ+FGRIoPFXP xckGS4MschZeSWfFinyIIUD7BNztNCpXVCNtSv0VRFcuSXWFeeh/qwAwFmT7r5fQAWZb hxWO2z+nT7wJx5ksJ57qaK592TXhtV7Rl4ei1arBBtWBApn4oOGwuLtUm/GmD275WNuh LFg1fv7Jd84el5Kpy0ZRODGN5E27sCntkkBL0mV/KW0tBLSHXGSClVJzfLcD07oRq8lc FhbQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=kYq+Iqo+cKi5UFcKLWoiaFCpkMVAa+BEZNXisFwmIpA=; b=CB2B//8BfVyfyfT6BXZP+tLf64bqAQD3mcxAc/fFhREpfn+aQT+qhX7fHTVoaLtzkR oZiVuuB1jg5J1edqFPVORkgNhHiPSZBAv/9iw0fg1s0Bjj9NDPQd+TnG4bemoqQPo86D 2EU8TgPdi0Dt04RidMqbLdc0hTNJnP6EL64brrmIuFDHH6ViSFkBl1M45Vj1s0+ZbiVq SysEkZxORJE2TcKjXKl8O8XanD5/615WuKTYO5w83MO4YjrIL3gWm7NGLRrqlIP+6eED xHJS70ruHZBq5yYtElJyKYbROmGqy66XMEO+h+bR3RLmqg600VejHoYn/mMF/NJTlNfI Ny+A== X-Gm-Message-State: AOAM533Jbh8OZ4KbsxgyuyENKqiNMA58tWEf4uj43EW+UZZYsHFX2Z+W UQND5jQE5JSpwkS+WIqawJwewFq5QJg= X-Received: by 2002:adf:e381:: with SMTP id e1mr23933904wrm.320.1590591306344; Wed, 27 May 2020 07:55:06 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id u74sm3027545wmu.13.2020.05.27.07.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AB9B51FF93; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 07/12] tests/tcg: better detect confused gdb which can't connect Date: Wed, 27 May 2020 15:54:50 +0100 Message-Id: <20200527145455.2550-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Richard Henderson , =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" While we may gamely give the right information it can still confuse the wide range of GDBs out there. For example ppc64abi32-linux-user reports: warning: Selected architecture powerpc:common is not compatible with reported target architecture powerpc:common64 warning: Architecture rejected target-supplied description but still connects. Add a test for a 0 pc and exit early if that is the case. This may actually be a bug we need to fix? Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200520140541.30256-8-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/multiarch/gdbstub/sha1.py b/tests/tcg/multiarch/gdbstub/sha1.py index 734553b98bb..2bfde49633c 100644 --- a/tests/tcg/multiarch/gdbstub/sha1.py +++ b/tests/tcg/multiarch/gdbstub/sha1.py @@ -65,6 +65,10 @@ except (gdb.error, AttributeError): print("SKIPPING (not connected)", file=sys.stderr) exit(0) +if gdb.parse_and_eval('$pc') == 0: + print("SKIP: PC not set") + exit(0) + try: # These are not very useful in scripts gdb.execute("set pagination off") From patchwork Wed May 27 14:54:51 2020 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: 187283 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1198743ilb; Wed, 27 May 2020 08:03:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2kj0cKEIoK6+/3mWoICO2j8W51W16gSU2SwYtuS21ZKgl5r4x1M4EQ96/GKmU0IU0C27q X-Received: by 2002:aed:3789:: with SMTP id j9mr4502146qtb.91.1590591832427; Wed, 27 May 2020 08:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591832; cv=none; d=google.com; s=arc-20160816; b=ggwJJQfAZSgwqJ/jCF04gTG0hRwcRq6YiPCIh9093kBOldMdCupl6AUEXWgT7ZVBMs vZMHYpM/YPLwj20mz2QVKAl9EjAz0dpDi79rFbetpP5fdKofZyDU3+ZRzJDitTTs/qE1 9aMFCNyIwPyeEpYJE2EmLkFGMIrbZXAFLrISECqarBKvhGTqcfcVHOUd86z1tRacjVqf 8npG3NkKKCRPFLeDNgr+nK7ScQedyU46GSRMdtVjDO7j5hSmP21HhPl+QaamMSTL9OoC ACOs2YTUL7Q3QtiCiUcNRobsiGMgG4pJ6zR8ZPNkw9rCs7mAA8hdUp2+7svgZntAggQv 9aHw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=pdHJ03eUq17CH67wGlCY4jhES9SA8aqc6XGoB7RnGR8=; b=PKWubElfxArD5Y4eHcUoilfVCHsALxEwQ9HGczKVilN8yX9r4pdp4kIPZrSapDJlF8 4ID83KsfqHgLLFbaCNecbn3W+vOG/JZ7K5jHA4nEXvDS5PWtH3a8OEVyahXwgcM1yRw+ pgdsie9thM1M53XgXmBXRrs0KUmYVg6aFL5tcWCq4Yln4bK34oPePX+Xyn5caE+75Go+ 8w9tS+EQDk1aaUJg8VXGUO5A05NuhfM2M3DK5UEX7IlaQhho37++ydx39MjV4YCfiPFY 4MbIQsj06QTcwUnMa8CCjoOFR+ALhrflNlFvP36qe0x1efQ6zChRHE+vUmWYgr4Q067I vOVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dOf+EqVa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id s27si289692qkj.361.2020.05.27.08.03.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 08:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=dOf+EqVa; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:47680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxax-0006dO-VV for patch@linaro.org; Wed, 27 May 2020 11:03:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSZ-0001tX-CZ for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:11 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:56274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSY-0008CL-1s for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:10 -0400 Received: by mail-wm1-x32e.google.com with SMTP id c71so3314511wmd.5 for ; Wed, 27 May 2020 07:55:08 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=pdHJ03eUq17CH67wGlCY4jhES9SA8aqc6XGoB7RnGR8=; b=dOf+EqVaHBorjVSTNKWMMLwyFoC1UpitEfqqzHLZq1/JcrLdZc7unN9SCnovymMrEx wAdJxeXJ0oc2grPQGgHGsaUFGIUPp1OmWDryM+x1zsus8VLWWsFjr/+MfyAGqGVku7uE QQjGCCMPkH0DMwiiuH25IxM7IPKtkWuJIIDb2JA/HYjlk68gZ/XUXeH08NlsMcwMFA1+ 3jKNsFVHoJ/0sUh8xEmDpCKL7rrH7pYdso2QTlcCKwXnNjzQTLjB25QJgElLWLMr/Hnt D7q5iR0ieybK+dAMK72gDGx5TZETB0E9swzzSJ+FSHxmHgzj3j+He2Yjh+1Ys388sLU3 eZsQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=pdHJ03eUq17CH67wGlCY4jhES9SA8aqc6XGoB7RnGR8=; b=Xr8pJBZkBksItUVGwEUzAgEkKa1JmZysTB/tb3zEFWaeIiW/WVwQg5foibuFWzW56e 5jD/nez7u9EZwDwhSG6WRDPp+CRMAuehCK8qoJacCDz4TxOp90sYZMbsri2wKl7SYAhh tUHlIMjLGdo8SYFsOzoVPi/aIbSe3HLqz0QqKuwaUpKlPPWgcElKlzGVqrH+tO2qC1Q+ 0ZuHR2IGJ5xmkkHVYSwuZedtXTt8lgnhMCyeo5VA72x/T4mYsVv1P4nDFin0vVeJxme7 T8fK2ScacQB5ESTVzM1geKPxcBtsP6fpsQL+v7B+v/x7ornjoS4MauFhdio36XEiTNzy MnEA== X-Gm-Message-State: AOAM531EKrE8wNEkAn3WCBdCv2BMis0xeQwuLLN/OrhfQS5OUTDo6U72 c3gyFVqrvDzfUB2yDgfA5HwQHSnQVo0= X-Received: by 2002:a1c:2702:: with SMTP id n2mr4782561wmn.107.1590591307337; Wed, 27 May 2020 07:55:07 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id h196sm3116565wme.22.2020.05.27.07.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C169F1FF96; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 08/12] tests/docker: add debian11 base image Date: Wed, 27 May 2020 15:54:51 +0100 Message-Id: <20200527145455.2550-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Fam Zheng , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We won't use this for building QEMU but we do need newer GCC's and binutils for building some of our test cases. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200520140541.30256-10-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 43a86786882..3596b589307 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -7,7 +7,7 @@ HOST_ARCH = $(if $(ARCH),$(ARCH),$(shell uname -m)) DOCKER_SUFFIX := .docker DOCKER_FILES_DIR := $(SRC_PATH)/tests/docker/dockerfiles # we don't run tests on intermediate images (used as base by another image) -DOCKER_PARTIAL_IMAGES := debian9 debian10 +DOCKER_PARTIAL_IMAGES := debian9 debian10 debian11 DOCKER_PARTIAL_IMAGES += debian9-mxe debian-bootstrap DOCKER_IMAGES := $(sort $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker)))) DOCKER_TARGETS := $(patsubst %,docker-image-%,$(DOCKER_IMAGES)) diff --git a/tests/docker/dockerfiles/debian11.docker b/tests/docker/dockerfiles/debian11.docker new file mode 100644 index 00000000000..5adfd62d553 --- /dev/null +++ b/tests/docker/dockerfiles/debian11.docker @@ -0,0 +1,18 @@ +# +# Docker multiarch cross-compiler target +# +# This docker target uses the current development version of Debian as +# a base for cross compilers for building test binaries. We won't +# attempt to build QEMU on it yet given it is still in development. +# +# On its own you can't build much but the docker-foo-cross targets +# build on top of the base debian image. +# +FROM debian:bullseye-slim + +# Duplicate deb line as deb-src +RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list + +# Install common build utilities +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata From patchwork Wed May 27 14:54:52 2020 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: 187276 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1193064ilb; Wed, 27 May 2020 07:57:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkXFrKRv2yYjYjzlReGbCe7+f6KsudqfxkRgsafy9f8/B7LSi0GIbndHpxO5zm5O7+j1OE X-Received: by 2002:a25:8202:: with SMTP id q2mr10402347ybk.243.1590591448325; Wed, 27 May 2020 07:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591448; cv=none; d=google.com; s=arc-20160816; b=mHs05kut33V8W2OC1hTcLIimeFQzhDopaNIRTXHh2Vb7eG0Xe2+ngDo6Ah6GuzRH2q eX6m9dp4n0o8RCoLUSRxkjwxQxtEgN5WTe7D8gXJPgp55Xk0atCtZuyUzjcSmPJtcTqQ 6ncHuc7r/YSC8Yo0R1h5Bt/K9KOiyjpx25HEaQ0k3qZpV5w2PnFxHl2zoM9SN1dsUJ8z sRxZrR4iEf7yUi0zqWlicML3R8I1gExUvl/R/jLV8yuRxeLOZ9Z2dnsAXcDvV72fJ6Mw w0ww+/RdjwLubXn7xcsNBQud3hiKDb0PnCwFC1Xeg3DT+GNiQh8/XcGXkvyQ7a+PoQzb QRBQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Dm74SlTEnZyxd4hI8XjcLMpSfE87lkjOy5GE4QJMVNA=; b=ne3J703/Gjz2FtXzqj3p1uwR1BHSgoM/B1+vw+ph2niYgCsjhXhD8p6FTTZfr1kmac Ythxw3+o+Bx3sjkw87Zikf8kJ0KRNjLUGeXJ4fJDR83T1oaI+PJwKPUDuvgwRTWscfm7 L8X1vsa11hEylo7cnOXnNrSxX02DTZszPQqoEZNendOfAzjob/THyHZ2UeQQhMGEV41t IXPZlRogPE3XRQIRxCbyLOPgPU0DnPOYP62TVeemRw2Gk1gNIzY89+R2euWQymxmh8H0 +WiSXPRGFi6HFYO923smjHIrSkuUgYl1RcR22Kxo2d47JkEKD5RqoDAu9Ynk2YrXtOHu DGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=frz0aBzy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id i204si3098042ybb.158.2020.05.27.07.57.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 07:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=frz0aBzy; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:51446 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxUl-0004jO-PM for patch@linaro.org; Wed, 27 May 2020 10:57:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSa-0001vt-Dd for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:12 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:56277) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSZ-0008Dw-1Z for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:11 -0400 Received: by mail-wm1-x331.google.com with SMTP id c71so3314627wmd.5 for ; Wed, 27 May 2020 07:55:10 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Dm74SlTEnZyxd4hI8XjcLMpSfE87lkjOy5GE4QJMVNA=; b=frz0aBzywnSTSWGwvUWtphMoIDMAotS0DsPg7ncp+DhFTrjTtKSAzlUoLWbLLRs8Yk 2W1GH9QYRcxW8p2lzPbqoMtdtAmaeNlBMOiEgLDj7lSXtMbl54MyZ0of6Jy/fPwdh4Ft uuBD5RqVQcTu222W8BIoi0sl/vhy9NGFl2iC/hn79k7rYQ8cSEEvh9SNVBHz3vA4IgkB tmDitPqnHS15O9ORlmnoMGdjPLX2dK+NeQ8NRDKZgoy6bFeoAHg6iTH8DHui8rmY++bB K4cgjvGDHCDv3BcrvvlPZ8RrXZcbWxF1JQGRv4Wf6YKAaicsJBDLo6rGQHx13wGUxrYs d/4Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dm74SlTEnZyxd4hI8XjcLMpSfE87lkjOy5GE4QJMVNA=; b=WwItR8Ds60/6tGi7QTM1CYWpv4J+6Fm1FnkN7jBrX9lbhU4+RBh37GHeDiN66fgV3s QtoNk6zf/wSzTwtL3umhHv3inRWmFysYnDNjS3DVUwtyH/SkrNQXia/b3WJMkwDhOITE SjwvsKHaHZXDFfgk/ckj8sjdtTRQMcN1e2ut+J5QfQeRhlC4Out1GVxhPquESiNd3NXX 8040vQCyu1S5ONYeUyhQvYoxewhwbB6etNPGdE1LYz0bHZJArKAqAJajqQFOVMLKqMe2 DIOicRAhXqBHM7eNBe+452y+Otognyk3Y43FueQsKKKmUQxD2+4HTA8k0yj+ly/j3C7Y Tyjg== X-Gm-Message-State: AOAM532w8Yp4HHIMRTxb+7r99mI1AGTLD/XBI7JMPYz7EKdq42CLPcdE KjO+xV8gi05nfWyOrSgQYxMzDA== X-Received: by 2002:a1c:a905:: with SMTP id s5mr4540623wme.120.1590591309385; Wed, 27 May 2020 07:55:09 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id s19sm2869069wmj.21.2020.05.27.07.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DC4D61FF98; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 09/12] tests/docker: use a gcc-10 based image for arm64 tests Date: Wed, 27 May 2020 15:54:52 +0100 Message-Id: <20200527145455.2550-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Fam Zheng , Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" As we enable newer features that we want to test on arm64 targets we need newer compilers. Split off a new debian-arm64-test-cross image which we can use to build these new tests. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20200520140541.30256-11-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 3596b589307..ed46bd98eb5 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -131,9 +131,11 @@ docker-image-travis: NOUSER=1 # Specialist build images, sometimes very limited tools docker-image-tricore-cross: docker-image-debian9 +docker-image-debian-arm64-test-cross: docker-image-debian11 # These images may be good enough for building tests but not for test builds DOCKER_PARTIAL_IMAGES += debian-alpha-cross +DOCKER_PARTIAL_IMAGES += debian-arm64-test-cross DOCKER_PARTIAL_IMAGES += debian-hppa-cross DOCKER_PARTIAL_IMAGES += debian-m68k-cross debian-mips64-cross DOCKER_PARTIAL_IMAGES += debian-powerpc-cross debian-ppc64-cross diff --git a/tests/docker/dockerfiles/debian-arm64-test-cross.docker b/tests/docker/dockerfiles/debian-arm64-test-cross.docker new file mode 100644 index 00000000000..a44e76d9421 --- /dev/null +++ b/tests/docker/dockerfiles/debian-arm64-test-cross.docker @@ -0,0 +1,13 @@ +# +# Docker arm64 cross-compiler target (tests only) +# +# This docker target builds on the debian Bullseye base image. +# +FROM qemu:debian11 + +# Add the foreign architecture we want and install dependencies +RUN dpkg --add-architecture arm64 +RUN apt update && \ + DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends \ + crossbuild-essential-arm64 gcc-10-aarch64-linux-gnu diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh index eaaaff6233a..2326f978562 100755 --- a/tests/tcg/configure.sh +++ b/tests/tcg/configure.sh @@ -97,8 +97,8 @@ for target in $target_list; do case $target in aarch64-*) # We don't have any bigendian build tools so we only use this for AArch64 - container_image=debian-arm64-cross - container_cross_cc=aarch64-linux-gnu-gcc + container_image=debian-arm64-test-cross + container_cross_cc=aarch64-linux-gnu-gcc-10 ;; alpha-*) container_image=debian-alpha-cross From patchwork Wed May 27 14:54:53 2020 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: 187279 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1193734ilb; Wed, 27 May 2020 07:58:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/4RouGqIZoEp4RkI9MIzdRa9P/VeL0N7wRAZAbE1TYaxH1ZfvJznAAIjPJrqGpJ9zErly X-Received: by 2002:a25:76c5:: with SMTP id r188mr11630140ybc.71.1590591503146; Wed, 27 May 2020 07:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591503; cv=none; d=google.com; s=arc-20160816; b=NYbQj+SfzS8cIFg8PL+PA+OFEmHDiOGYiPcEQL4E5/gagtusCLgFocOB6x1WzkhUDD PoT2pbdvVZcnCJSjU6+HuR0c0OBXuxEF8I9xBaXhV0O+CF7I4ZnR8Azv6I9rYEF5//GN HAA6nszC4cBEJFhJbU8ppWyzNeJjxcxuzW8wvQXfqFwoSQrLNyIqd+t9I4l380uMERRb HkZD46bOpGY5WkI3LsQMS5GyKGocnZJ6j/VkgY1erJk8MgN4tXOoxLjol9TfnGDY19nl HJ85O0lbQhM3RivA1vCOQ2cA5qIAaOt1XIbbVUtcPjakjmJGGX1YojanJO47CUqOCk6c wq/g== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=aitRg9If761W1gcoFA+t9rMfX6i5VN1JLB5FFhcpUdo=; b=mU3Als9a8qy93HMtA6DEqWhAIOc9BUWeqxm9AlTFkYXurdo+3KaKNuL3Fw8dm2BPdA I3gHCCp7nnaVwqh5xNO/UQZwcMLlAhZE8jtQt5vbZJIArssy1wTlcpJgv5skwR2g78zc GkT32SS+DrriFf+bGUPq4sKu8CxH6WsLzKd/clVvOBanoPKeU1A9UtvsFZWfQj3XFp67 eTaOcrr6cDmunqCgJgEw4yMRXnKbl0RIShDcJHGHkwDzv8hvtc3cEp95mLDoohHLjx8b 8jrMuM7oF1P5mMVs54DWz1zxA36cUy9bZKB4RBTzUtncGHqObrUja42UNq4EmOSnBytt mDeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=sOuJUfkk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id x28si3040065ybi.330.2020.05.27.07.58.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 07:58:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=sOuJUfkk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:59936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxVe-0008Ey-Kv for patch@linaro.org; Wed, 27 May 2020 10:58:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSa-0001wZ-QZ for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:12 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:43627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSY-0008DY-2f for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:12 -0400 Received: by mail-wr1-x434.google.com with SMTP id l10so1538000wrr.10 for ; Wed, 27 May 2020 07:55:09 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=aitRg9If761W1gcoFA+t9rMfX6i5VN1JLB5FFhcpUdo=; b=sOuJUfkkKq21pQOAkTABGqsTn0BnRJRVoham3SoPFFyazh1d0/l6Kt1j7KNJpSJCnA vsO3UNMZmR+0AfTd4CPnSro5JLqPSPVxNoJn1aBHPjDF6WABOwl+xfbc4CmCSCtnPMfs ayHL27lqrTE94Jo1Cm7MCUOkTuC94SDZjqi3DdfpAc4ks5HYAZ15fa3+k26zZhyIqK4z jdzArH3sJW1PLIRAMQgJ+x1h+nRd4xb+sNM1Vs8999uoK18LNKAgkbTwZc5R/VgLxaAU rH4TZS2K63EO0CG61vMUKdziakvYrBrfIELPmFfdnrqoSIF7YSFMOHIUDrUHDGaScQk4 dOhA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=aitRg9If761W1gcoFA+t9rMfX6i5VN1JLB5FFhcpUdo=; b=B8+V4fHzQoZtSUe+bSTuzB7I8ilkNrDffOCugTnPdp4c804nxQ42bDTYCswwuAgOwR 2svUDjRWl9fPWKOY3i2pX1XscRaxWfgieDGzgaF5SZxBmyeAX0l7yqdH6aWwXkPrIfsD nXXFAMvFSIRwxfnkYpaPCy9JSWS1VSOjfcb+jleGRKBSi/QwoJgOlGAytu/0e5nGxpO8 8YwLs9+aGyLnuAKOLqKMB+t4Qjh4EOsQYF2DW8aS1GyNHLmBzDFmM3TaVm6vHuHDWheM mkHauKE9IqR5rUGICMii8j+TtsDI5u1pSJQAN0G2Tmu/bI0c84ywJyvWbc60n8dkLLkw z2xA== X-Gm-Message-State: AOAM533dUys3LWqjEtVEBItG5bNYpMTCPU8Mi38SeqOjg/sxahIMPqkL IWpO0tKAoAYSNvrjW0/U22FI3A== X-Received: by 2002:adf:a399:: with SMTP id l25mr24502400wrb.212.1590591308201; Wed, 27 May 2020 07:55:08 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id x186sm3268618wmg.8.2020.05.27.07.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 001111FF99; Wed, 27 May 2020 15:54:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 10/12] cpus-common: ensure auto-assigned cpu_indexes don't clash Date: Wed, 27 May 2020 15:54:53 +0100 Message-Id: <20200527145455.2550-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: Eduardo Habkost , Nikolay Igotti , Richard Henderson , qemu-devel@nongnu.org, Igor Mammedow , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Basing the cpu_index on the number of currently allocated vCPUs fails when vCPUs aren't removed in a LIFO manner. This is especially true when we are allocating a cpu_index for each guest thread in linux-user where there is no ordering constraint on their allocation and de-allocation. [I've dropped the assert which is there to guard against out-of-order removal as this should probably be caught higher up the stack. Maybe we could just ifdef CONFIG_SOFTTMU it?] Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Acked-by: Igor Mammedow Cc: Nikolay Igotti Cc: Paolo Bonzini Cc: Eduardo Habkost Message-Id: <20200520140541.30256-13-alex.bennee@linaro.org> -- 2.20.1 diff --git a/cpus-common.c b/cpus-common.c index 55d5df89237..70a9d12981a 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -61,13 +61,15 @@ static bool cpu_index_auto_assigned; static int cpu_get_free_index(void) { CPUState *some_cpu; - int cpu_index = 0; + int max_cpu_index = 0; cpu_index_auto_assigned = true; CPU_FOREACH(some_cpu) { - cpu_index++; + if (some_cpu->cpu_index >= max_cpu_index) { + max_cpu_index = some_cpu->cpu_index + 1; + } } - return cpu_index; + return max_cpu_index; } void cpu_list_add(CPUState *cpu) @@ -90,8 +92,6 @@ void cpu_list_remove(CPUState *cpu) return; } - assert(!(cpu_index_auto_assigned && cpu != QTAILQ_LAST(&cpus))); - QTAILQ_REMOVE_RCU(&cpus, cpu, node); cpu->cpu_index = UNASSIGNED_CPU_INDEX; } From patchwork Wed May 27 14:54:54 2020 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: 187284 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1199843ilb; Wed, 27 May 2020 08:05:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPOsIoyxlBfwULuqETAwwdvMgFS3Zli6Un3PZgLYRAposfcGl7oMlh1yUlvkeus93nkbTY X-Received: by 2002:a37:6244:: with SMTP id w65mr4445132qkb.348.1590591902113; Wed, 27 May 2020 08:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591901; cv=none; d=google.com; s=arc-20160816; b=S3t2/0PEuY2axCAWGvTe1U8XfQVULUIqRubycz+M6gZzReIvskjm8Juqct0oK+gaxG qUSNDISqrcpVblMVoz+JIv2P4kENb2MBkPDedq7sAOa8dc73AiUmMYoqG0qhNL4Vb1gs 9sdX53I1+b7Sth3lSR24QKp2XK7K9OEi0j6eZZ+1ft9SMdUFk+u+B5H/VNAyENuoVEX8 0uVXIe0FlnwI+5yZTCKb29xVOlBmgipbka+gu+aZL8eEIlkiY/zAcwr9i0pwPjGKviEK 9fJcIUCuiVSra42ScS/phMYcg2sR3Z2p4cZkXfjNieR557DPyqtlOwpVn9cmXc+YJcBc 8e3g== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=O14rdwBIfGRpuBDr9I2ETfU73nIhdtOBuqe+I2h5Fx0=; b=KdoG6FEHYFGmHp/0hJuFNdLMqa2tK3k9a3YpbyDpSfRjghBOuS/zn0eATRVV5qp/Dq +lSx4MP2fzHp7rTkGhl5I0UUuDcrvcbsIgd7EdbMZQmCM/vRSnmQftTTqqTwxXY84HQc fgnUI3icPZ4SgWVaOYvbjVLX3fGqQeGFp4g7SzxtnQkgFR01hfcbubTtT7KFxygfCvG9 dTZpayzYNk+8CJ0e47kjd4/hzi42HfQYIZUubSbT9rmqZ86dGxaaWVH8+ZYbHvbWZFg1 6clGBWCS5O4jEOwh9ZVHi45lEH+mOWaC6KQDnkvEGrzsZSanyIZsxdhhpZkzBDnhXT+Q oCWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CbyLBUnv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id l20si1709050qtb.194.2020.05.27.08.05.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 08:05:01 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CbyLBUnv; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:49972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxc5-0007bW-BS for patch@linaro.org; Wed, 27 May 2020 11:05:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSc-00020J-FP for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:14 -0400 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:54101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSa-0008FY-K5 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:14 -0400 Received: by mail-wm1-x341.google.com with SMTP id l26so3322211wme.3 for ; Wed, 27 May 2020 07:55:12 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=O14rdwBIfGRpuBDr9I2ETfU73nIhdtOBuqe+I2h5Fx0=; b=CbyLBUnvLVk7vdoH626HCWP6G+l08I9ZsdW26iA2YbqsfQ9K03Q/X/ELDuMmcCLTZK y/MyE3XJdGZYEHk7cjHY+QJH6JuqRmKytepkgjaG/tZL5Tmhre6ghGxmWQD/hXTuF40l k+yZEP0Yoid+wLU5l67xStImgqjsqcu1LoxELQPE8ClcVj1U+uKQMAHlu/mgwR4AXR+r XBLfCWJuXPEAg+EavnAAVWAzHO/wo1DNAhTDN1EsadkmBmJmsTX0MinrgSN3WwcmEXOu DXtmudFqNKLLwwHEeDzwZjGkfLp7k/K6kYCVwmMhjErbEl4qPNLHat+NCTNlx086jhgE L4gA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=O14rdwBIfGRpuBDr9I2ETfU73nIhdtOBuqe+I2h5Fx0=; b=D149rrGpID8f1LTOz3WRdzKmw+B/lVILjVakx668Ujus9qRqDHo/IvaE1ENkPjqnon C47tjIRyZDGp4eW2pr/Z9mic3qmtDB1V9M8qqTDA8hfY1TQ8dgaMAxfIUDYihJr1SYZ9 gpnIzMyd3ysyI4IrvWDBI/UDek045aWYZAepzoTHmiOxZoG3lPoVc70/C6lMPu4PuE30 41W6gxeBvwV3uGnGrBkores2FYJ5VXxRB9qp2vC+BWE3U+NZNxyiz4wFBtcAZfC7l++y uoBCxPRViJ1oMz3y+TnXi1TknyOMMUqm10ge4Knazr3UfjgbwrjTH7m9+kmvLEisaWeZ RZ2Q== X-Gm-Message-State: AOAM532QQTAI2BMR2Q4YpVirkkpOMYmqyPqOZ2t5eyJ/zxCGr7cM5Tzz 7cmY9z+b9qpmNPxc+SPJ6BId8g== X-Received: by 2002:a1c:4e0c:: with SMTP id g12mr4770362wmh.25.1590591311115; Wed, 27 May 2020 07:55:11 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id y4sm3103534wro.91.2020.05.27.07.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1507F1FF9A; Wed, 27 May 2020 15:54:57 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 11/12] linux-user: properly "unrealize" vCPU object Date: Wed, 27 May 2020 15:54:54 +0100 Message-Id: <20200527145455.2550-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::341; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x341.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: "Daniel P . Berrange" , Eduardo Habkost , Nikolay Igotti , Markus Armbruster , Riku Voipio , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Paolo Bonzini , =?utf-8?q?Alex_Benn=C3=A9e?= , Laurent Vivier Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We shouldn't be messing around with the CPU list in linux-user save for the very special case of do_fork(). When threads end we need to properly follow QOM object lifetime handling and allow the eventual cpu_common_unrealizefn to both remove the CPU and ensure any clean-up actions are taken place, for example calling plugin exit hooks. There is still a race condition to avoid so use the linux-user specific clone_lock instead of the cpu_list_lock to avoid it. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Cc: Nikolay Igotti Cc: Paolo Bonzini Cc: Daniel P. Berrange Cc: Eduardo Habkost Cc: Markus Armbruster Message-Id: <20200520140541.30256-14-alex.bennee@linaro.org> -- 2.20.1 diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 05f03919ff0..7f6700c54e3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -7635,30 +7635,33 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1, return -TARGET_ERESTARTSYS; } - cpu_list_lock(); + pthread_mutex_lock(&clone_lock); if (CPU_NEXT(first_cpu)) { - TaskState *ts; + TaskState *ts = cpu->opaque; - /* Remove the CPU from the list. */ - QTAILQ_REMOVE_RCU(&cpus, cpu, node); + object_property_set_bool(OBJECT(cpu), false, "realized", NULL); + object_unref(OBJECT(cpu)); + /* + * At this point the CPU should be unrealized and removed + * from cpu lists. We can clean-up the rest of the thread + * data without the lock held. + */ - cpu_list_unlock(); + pthread_mutex_unlock(&clone_lock); - ts = cpu->opaque; if (ts->child_tidptr) { put_user_u32(0, ts->child_tidptr); do_sys_futex(g2h(ts->child_tidptr), FUTEX_WAKE, INT_MAX, NULL, NULL, 0); } thread_cpu = NULL; - object_unref(OBJECT(cpu)); g_free(ts); rcu_unregister_thread(); pthread_exit(NULL); } - cpu_list_unlock(); + pthread_mutex_unlock(&clone_lock); preexit_cleanup(cpu_env, arg1); _exit(arg1); return 0; /* avoid warning */ From patchwork Wed May 27 14:54:55 2020 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: 187285 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1200557ilb; Wed, 27 May 2020 08:05:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJCTNqocx7mOUIjCis6OWlAf98CEzIZ3GBZE3fGQ2HmOku700oqcd8sxzZKG7GeSYlqLg/ X-Received: by 2002:ad4:588c:: with SMTP id dz12mr25633204qvb.196.1590591946640; Wed, 27 May 2020 08:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590591946; cv=none; d=google.com; s=arc-20160816; b=p/cJ+VPNNRLNTfMrOF7wggObBfjNrUhZcUy2Uwin7D3phgqmFqiXcC3FapIYUwllJN 2/iVHYH1aYZjbwshj2claFMMyoo+MSYsjvpff1YhGtKXB/ZMmhDSHnbjICus7s1Wt9Gx XR8h70mUdlSMuBIpvvQFrZyC0z1HAENf897u433Ea5x9Zuwaa0g4SKBBI0GAQ6Yw53T3 m+dMva2cwrTerW9CJZvAg/AQy0CjVimDL347nEtVfQGSIYXabZjtTzfj5n65hXSisvlE qPqlSG8HozDQHtHpM0P4TEJuTuIdJKSZZxdIkFAPBELBZQ/VMi16LtcZMgLJ8QsOFcJb se+Q== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Hyh91ojyztqE2sZmXe5ULEmyNIFPWUmO5p3g1DDRWRY=; b=W4mh2sX9es8LH7d/ppaRG88B1YkkkkwsODc/fdqn+eHj4bi9u7W89GHv7J3MtN9ItL jG4qOBvFH83Nu70XcJTut/0Fs/YqIeYedCOM6eTIRzZ7t/PAi2Bx7AjLI02aseTF4/mZ EqADN9yD9Ruajp7gHnbMQvS9Z9B7HS4wS+zyPZwfJqE+hZAqFusbQVbDYbCZBMHR3+he iGxfjHOwZF40XbJeSZsO1BqP8T50QSHcE7FKndqMoOT6X5jShgK+8sjEl7N9NBHjTJ6A ZuAXR+0BpdyM+odq2fNu5uQJmQn9vsInpq5EwhMweF2MtmQajARGUojkZoRJWUlu1/uS Q/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Y4aApPJX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id g68si1901204qkd.227.2020.05.27.08.05.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 May 2020 08:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=Y4aApPJX; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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]:52128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdxco-0008W0-6e for patch@linaro.org; Wed, 27 May 2020 11:05:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdxSc-00021U-W0 for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:15 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:51171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jdxSb-0008G4-KM for qemu-devel@nongnu.org; Wed, 27 May 2020 10:55:14 -0400 Received: by mail-wm1-x32a.google.com with SMTP id v19so3351786wmj.0 for ; Wed, 27 May 2020 07:55:13 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hyh91ojyztqE2sZmXe5ULEmyNIFPWUmO5p3g1DDRWRY=; b=Y4aApPJXQcXVbJh6nUI63OeAs6XKVLi3Kiv4CXNqDbxgoxzp235vX/ZSRCSgkKh4Kg AGSaU3AvdznhIDAnnKg0VB7CjLpFTePwxXLRqNJK0QFNT2utBEoLpqp2o88TqnqsClx5 O/6Q97yt21LonmIdgN7UFp824zRn79wu6bFAYp+8KpNtN9NBCi/QS0ZiW1I8gbkZIwVz pAXwYjTBSdhVuwNBOcT+LvJacf9qjDy2xOQ8/7Z/wL4X4NUFg9HFl8zXmfiniXg3DKvW CT6jOCYBKYka5YpFSN+dyFahiQqNy84VibWzA0AYCvIVwk7wUTpD1TuW38e9ZzuBXaQv F1ZQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Hyh91ojyztqE2sZmXe5ULEmyNIFPWUmO5p3g1DDRWRY=; b=WhhG8e3UT8eH6Au8zQO3T+5oQy5gLba8FpnBabzMm6+DzBFdeM+gUrv0ZtJ2ju+oXP XxLY9BSoxV4zybr2MrNRRMcWNfneTDsHTfV8maX8A+P20KvZk1O3BsKNshVtGswoP/zX 5sKbR+YIwxoZ16LOMtSGz7PVaSbkcDyRy/9UFEaiY3YrXtRcdl0TiUC8YTTqYCO9GKp5 in/8C2oy2Ni3WNfx5S4kBGKQ5Ap0wGjTOBCYoRTfYLHDyIfdEhQgz5ecX8Yj2mYO7JIk nJbMUhPdeOemELBbRqfvPD4ngC/0kUcdaQSE5/So07NtvTfHRo+rNKDLO/1/b0hbNidq HVuw== X-Gm-Message-State: AOAM531MVy1Pqx6pR5+HmPYfM1xT6A+pXpwc2ozY5/CKHayZ2WntjgUv fvDETxbl0kIIuKjar+oRHy87qA== X-Received: by 2002:a1c:a3c1:: with SMTP id m184mr5003912wme.91.1590591312078; Wed, 27 May 2020 07:55:12 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r5sm3194036wrq.0.2020.05.27.07.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 07:55:04 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2B7C51FF9B; Wed, 27 May 2020 15:54:57 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 12/12] tests/tcg: add new threadcount test Date: Wed, 27 May 2020 15:54:55 +0100 Message-Id: <20200527145455.2550-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200527145455.2550-1-alex.bennee@linaro.org> References: <20200527145455.2550-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, Nikolay Igotti Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Based on the original testcase by Nikolay Igotti. Message-ID: Signed-off-by: Nikolay Igotti Signed-off-by: Alex Bennée Message-Id: <20200520140541.30256-15-alex.bennee@linaro.org> -- 2.20.1 diff --git a/tests/tcg/multiarch/threadcount.c b/tests/tcg/multiarch/threadcount.c new file mode 100644 index 00000000000..545a1c81466 --- /dev/null +++ b/tests/tcg/multiarch/threadcount.c @@ -0,0 +1,64 @@ +/* + * Thread Exerciser + * + * Unlike testthread which is mainly concerned about testing thread + * semantics this test is used to exercise the thread creation and + * accounting. A version of this test found a problem with clashing + * cpu_indexes which caused a break in plugin handling. + * + * Based on the original test case by Nikolay Igotti. + * + * Copyright (c) 2020 Linaro Ltd + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include +#include +#include +#include +#include + +int max_threads = 10; + +typedef struct { + int delay; +} ThreadArg; + +static void *thread_fn(void* varg) +{ + ThreadArg *arg = varg; + usleep(arg->delay); + free(arg); + return NULL; +} + +int main(int argc, char **argv) +{ + int i; + pthread_t *threads; + + if (argc > 1) { + max_threads = atoi(argv[1]); + } + threads = calloc(sizeof(pthread_t), max_threads); + + for (i = 0; i < max_threads; i++) { + ThreadArg *arg = calloc(sizeof(ThreadArg), 1); + arg->delay = i * 100; + pthread_create(threads + i, NULL, thread_fn, arg); + } + + printf("Created %d threads\n", max_threads); + + /* sleep until roughly half the threads have "finished" */ + usleep(max_threads * 50); + + for (i = 0; i < max_threads; i++) { + pthread_join(threads[i], NULL); + } + + printf("Done\n"); + + return 0; +} diff --git a/tests/tcg/multiarch/Makefile.target b/tests/tcg/multiarch/Makefile.target index 51fb75ecfdd..cb49cc9ccb2 100644 --- a/tests/tcg/multiarch/Makefile.target +++ b/tests/tcg/multiarch/Makefile.target @@ -28,6 +28,8 @@ run-float_%: float_% testthread: LDFLAGS+=-lpthread +threadcount: LDFLAGS+=-lpthread + # We define the runner for test-mmap after the individual # architectures have defined their supported pages sizes. If no # additional page sizes are defined we only run the default test.