From patchwork Wed Nov 20 10:57:57 2019 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: 1198022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="YPuLurvi"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47J08z0LwZz9sPL for ; Wed, 20 Nov 2019 22:00:35 +1100 (AEDT) Received: from localhost ([::1]:56300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNiq-0000az-Io for incoming@patchwork.ozlabs.org; Wed, 20 Nov 2019 06:00:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34115) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNgW-0006yk-ER for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXNgV-0006sa-7Q for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:08 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:38602) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXNgU-0006qh-Us for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:07 -0500 Received: by mail-wr1-x436.google.com with SMTP id i12so27602225wro.5 for ; Wed, 20 Nov 2019 02:58:06 -0800 (PST) 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=8t5kqmOG1TchdK98D192qu2xreWTn22UibKxxRh5FTw=; b=YPuLurvi0pYCdiGZsXvJHM0FRTDktG+pTHbzeQinSm+2cZm22+hS70vW5M5VeFliAi uwoaifoRo1XMjYz9C59Q+osvTq6jrf8Ans87c0+pk4Wx8Z7GmrR+B2uLPl7Mscdoyakl WMp7dDh6CadEPX9w7icT9gBUTtdX2S+SW13o+NUa5QzWbAhGJVM7TISAxAsjlBX8sEWk 5o2djDLn/EiuFoK3lldy6NOYbBKRRBCjOf94mJbgN4IvLMaumNsHkuhtqCa4n1HDREbY yfd1zdaqyavOZJb3d5T2ZQq5AAIqAu/5Jy91DOG5RX2/L9L9HVq270pYZf1BeMRD+iNd rbpA== 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=8t5kqmOG1TchdK98D192qu2xreWTn22UibKxxRh5FTw=; b=UF/zoUzRgRqL0R2eey80KOciIaEm9KIn/Vh5YoVzXQV/5PdSYxXsgmo0+i0UfBYSoy 4mFjU8CD1TkK08XnCFCv0WQ28l2CMPlZ4nAVZwP/JFZ+reWqtkrKPmGCm5HA0N9ohTSY fRoghZ6UfvkJV/vIGVJTlxOhX3wh3mDeHp7du0P0PLE8mKUiiAB0rkT2ZHKSafbfZtUn v4WOJpNLythSE8rsxyJ7tTOKGZNFyhU7OofQQt4iWBTUgVbRQ0ppVXBpRi9tGPO4oPt/ tMll/IplVA9duw1baSh3vyXUwGzbYNWD99HCBzOkRXszwowgZylmHaWHH4rhezbxZhN0 Okbg== X-Gm-Message-State: APjAAAUic60fos0735b18C32OVVl85v2PluKgHAHcyni1VIwMi5XxRUE /Ahqxa702+44jKK7tXdhf7rLIFFlulQ= X-Google-Smtp-Source: APXvYqxNGbL73gVjdhchKqXq5hJO8cLBiI7FPmoqid7MDkA8sXXV9QWAwK+vG74ayD/hfmpuWQGJpw== X-Received: by 2002:adf:f4c9:: with SMTP id h9mr2408400wrp.354.1574247485817; Wed, 20 Nov 2019 02:58:05 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id h124sm6644615wmf.30.2019.11.20.02.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:58:02 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 58E4C1FF8C; Wed, 20 Nov 2019 10:58:01 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 1/5] tests/vm: make --interactive (and therefore DEBUG=1) unconditional Date: Wed, 20 Nov 2019 10:57:57 +0000 Message-Id: <20191120105801.2735-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120105801.2735-1-alex.bennee@linaro.org> References: <20191120105801.2735-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::436 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" While the concept of only dropping to ssh if a test fails is nice it is more useful for this to be unconditional. You usually just want to get the build up and running and then noodle around debugging or attempting to replicate. Cc: Peter Maydell Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 91a9226026d..0b8c1b26576 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -403,7 +403,7 @@ def main(vmcls): exitcode = 0 if vm.ssh(*cmd) != 0: exitcode = 3 - if exitcode != 0 and args.interactive: + if args.interactive: vm.ssh() if not args.snapshot: From patchwork Wed Nov 20 10:57:58 2019 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: 1198026 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="zTC4yWUx"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47J0D74nnkz9sPL for ; Wed, 20 Nov 2019 22:03:19 +1100 (AEDT) Received: from localhost ([::1]:56358 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNlV-0002m4-Dj for incoming@patchwork.ozlabs.org; Wed, 20 Nov 2019 06:03:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34082) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNgU-0006x7-1b for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXNgS-0006oL-Tg for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:05 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:40727) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXNgS-0006lO-Lx for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:04 -0500 Received: by mail-wm1-x32e.google.com with SMTP id y5so1112570wmi.5 for ; Wed, 20 Nov 2019 02:58:04 -0800 (PST) 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=LEjZwaiT7NBJ0U3NNZiqFvcTWTL2UsFeD0o79C2EwzQ=; b=zTC4yWUxqeWCnJqA0H3IRgfLvT5O6yOXqylifZo9LGaCgYndaPjJMpD89L7r6XvTF0 I0NohXoJr9Xp38EiBObtq0TeQq6G87MajE3BbqTt0gSMA31nvGUBPpaNJaTtiYUjRR6B KtNGWLNXCIW1KGbJMPTAU5/3tKFcOAs+BKzjJcbjfZw8pNzgxDIB5tP5f5HJNGICio4w ndapbhq+Reh7/X2de5vX7yonNgmDHJDbOWYOLwm64rXQBSLZliE2uzKaHPecvfN5yzFF 5j4A7ZJa7ekJRIwY3CTl+KV/m7+TtcDjgi43I2ajeycMFjnAUBRoJytr7fTpJTCaSVhg A++g== 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=LEjZwaiT7NBJ0U3NNZiqFvcTWTL2UsFeD0o79C2EwzQ=; b=HMBFSElsPGfIM7+T4ZG8upaCNN3XyDyvCpHMbUeqUvFaXU0OG0TuLfzO609lT23ASi jUSZFD3Ni0+Zi94RieY6DkAZ7oqXBK6TVC65o3ggAY20R2zt1/zAP7Alme7mu0bvXceJ LFLNTQLFzU1PuLZSQqi3Ta4OJR4Gd55odW0kmeS1WV6fuRVLKmWy7QVQ8rThaqx9ngKk Yo1B1LPglH/y5Xyt+AUVx1KNEfjd3m9E01V5JTXoGi2Anjd16sId+UFwm0z9D6WUZLcD ytzQwVjVtHf1bsApUemYHd1h6jKM8H8U5H0MEdo1zgU78ArGVJZGDmrPX6rjubKllZy9 h5Bw== X-Gm-Message-State: APjAAAWmbvpOkCdoTp13DuUW96XaGx+9yih4DSs1ywnIv6VlPIoeuS/N OtublmS0wxfafM4WNJR5J+7JmA== X-Google-Smtp-Source: APXvYqyP+CFTveu0lm4GmCYX4yxoJ8MQY/mySiWc8A0w2ddlTvjP77ZoCJBXTtNNJ77+800auE2Q3g== X-Received: by 2002:a1c:6486:: with SMTP id y128mr2285036wmb.148.1574247483165; Wed, 20 Nov 2019 02:58:03 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id z4sm6258708wmf.36.2019.11.20.02.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:58:02 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6F9711FF8F; Wed, 20 Nov 2019 10:58:01 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 2/5] docs/devel: rename plugins.rst to tcg-plugins.rst Date: Wed, 20 Nov 2019 10:57:58 +0000 Message-Id: <20191120105801.2735-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120105801.2735-1-alex.bennee@linaro.org> References: <20191120105801.2735-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32e 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?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This makes it a bit clearer what this is about. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/docs/devel/index.rst b/docs/devel/index.rst index 2ff058bae38..c86a3cdff2f 100644 --- a/docs/devel/index.rst +++ b/docs/devel/index.rst @@ -22,4 +22,4 @@ Contents: decodetree secure-coding-practices tcg - plugins + tcg-plugins diff --git a/docs/devel/plugins.rst b/docs/devel/tcg-plugins.rst similarity index 100% rename from docs/devel/plugins.rst rename to docs/devel/tcg-plugins.rst diff --git a/MAINTAINERS b/MAINTAINERS index dfb7932608d..5e5e3e52d61 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2371,6 +2371,7 @@ F: tcg/ TCG Plugins M: Alex Bennée S: Maintained +F: docs/devel/tcg-plugins.rst F: plugins/ F: tests/plugin From patchwork Wed Nov 20 10:57:59 2019 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: 1198027 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Oe5fUASk"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47J0GM2Z9Nz9sPc for ; Wed, 20 Nov 2019 22:05:15 +1100 (AEDT) Received: from localhost ([::1]:56400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNnN-0005FT-7m for incoming@patchwork.ozlabs.org; Wed, 20 Nov 2019 06:05:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34151) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNgX-000702-Md for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXNgW-0006w0-KF for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:09 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:55350) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXNgW-0006tP-Dy for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:08 -0500 Received: by mail-wm1-x329.google.com with SMTP id b11so6474129wmb.5 for ; Wed, 20 Nov 2019 02:58:08 -0800 (PST) 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=oWcIQ/2bWz6obkCCFTgR8jDb7UZS56VNJ8y1/fSAgYM=; b=Oe5fUASkYLzvvtdtEtmJbLRU+Ym8z48MF65yA0mvfud5gYE46G3mPC5T/5DBFH6GrJ aNWmTdUOFpoDR7RVY36Jlhhq+MMM2gN1vyL6pJm5dsCuWkMr6ubWXrmCKyZv1SL1Jd4S +pPUYCjkOnxCDFOctffRdhL4FuQpo/DbNpsGUyBDMppaFwCbubCfX7l/sDidzlw/nVtn 5E4oztFYHKn/IA/q+aant9okp39c/o0HNX7RLDjeB33DDARD/RuUKRexPSZ2IBLXWZZ2 nU9/SpNLphOei6Wu10UIoJr1d42LmVD6M7X7Bz12Vu1Tk5E6dGKEHJDJBl0PIxr1SyD6 Osig== 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=oWcIQ/2bWz6obkCCFTgR8jDb7UZS56VNJ8y1/fSAgYM=; b=IwlJDs40shifc3IZ33NilcdyUOu+F6gYW0yzJgEwxM863Txk2u6d+7eVYrq3iLnKdr yXiz61L2q3GG7iNzkYRwiCi40e7PA4vcnwW79p3SDK0z29KtmswLk5Q+LIrdDWpQrvLc E0AQ85WfEjgkukxr4IGpLxfJwVp9rQqcqjT6nWBVXzlyMnFdF9r7DtzY5T6V+1W1EP3T pntfZ6xeJCEyjK9wlrz+5iVfmY3khiMccu6JwA9QbZS+CvaKoSng+Ur5M8qtSQdV2bps hArPIsTk3EHidLWaGAjBAX6QorpDhHlzVbd/s2JT4sY2doJDWKQNBUfGqLBQGEOAdGSG v44w== X-Gm-Message-State: APjAAAXsn/V11KCeFzx6hUUY5zwnifpSolr2KkHAuIxU4ez60Mo99DjX qEB1D5BxVGqPFklyKxfg8vTaIQ== X-Google-Smtp-Source: APXvYqwV9aIVVfqf3DQPUQ+/OdJhLqs9w+WIxyLdFYj1tJC9ku+bzwDIHZ6P4xdUiBII9ysjuJ7ylw== X-Received: by 2002:a05:600c:22cb:: with SMTP id 11mr2428072wmg.117.1574247487115; Wed, 20 Nov 2019 02:58:07 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id j63sm6434509wmj.46.2019.11.20.02.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:58:02 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 83A921FF90; Wed, 20 Nov 2019 10:58:01 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 3/5] docs/devel: update tcg-plugins.rst with API versioning details Date: Wed, 20 Nov 2019 10:57:59 +0000 Message-Id: <20191120105801.2735-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120105801.2735-1-alex.bennee@linaro.org> References: <20191120105801.2735-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::329 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" While we are at it fix up the quoted code sections with the inline :: approach. Signed-off-by: Alex Bennée Reviewed-by: Robert Foley diff --git a/docs/devel/tcg-plugins.rst b/docs/devel/tcg-plugins.rst index b18fb6729e3..718eef00f22 100644 --- a/docs/devel/tcg-plugins.rst +++ b/docs/devel/tcg-plugins.rst @@ -25,6 +25,23 @@ process. However the project reserves the right to change or break the API should it need to do so. The best way to avoid this is to submit your plugin upstream so they can be updated if/when the API changes. +API versioning +-------------- + +All plugins need to declare a symbol which exports the plugin API +version they were built against. This can be done simply by:: + + QEMU_PLUGIN_EXPORT int qemu_plugin_version = QEMU_PLUGIN_VERSION; + +The core code will refuse to load a plugin that doesn't export a +`qemu_plugin_version` symbol or if plugin version is outside of QEMU's +supported range of API versions. + +Additionally the `qemu_info_t` structure which is passed to the +`qemu_plugin_install` method of a plugin will detail the minimum and +current API versions supported by QEMU. The API version will be +incremented if new APIs are added. The minimum API version will be +incremented if existing APIs are changed or removed. Exposure of QEMU internals -------------------------- @@ -40,16 +57,14 @@ instructions and events are opaque to the plugins themselves. Usage ===== -The QEMU binary needs to be compiled for plugin support: +The QEMU binary needs to be compiled for plugin support:: -:: - configure --enable-plugins + configure --enable-plugins Once built a program can be run with multiple plugins loaded each with -their own arguments: +their own arguments:: -:: - $QEMU $OTHER_QEMU_ARGS \ + $QEMU $OTHER_QEMU_ARGS \ -plugin tests/plugin/libhowvec.so,arg=inline,arg=hint \ -plugin tests/plugin/libhotblocks.so From patchwork Wed Nov 20 10:58:00 2019 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: 1198021 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="D6Xw/GXA"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47J07H0tP1z9sPc for ; Wed, 20 Nov 2019 21:59:06 +1100 (AEDT) Received: from localhost ([::1]:56282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNhQ-00078c-1e for incoming@patchwork.ozlabs.org; Wed, 20 Nov 2019 05:59:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34169) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNgY-00070C-Lb for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXNgX-0006yD-KB for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:10 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:43872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXNgX-0006wn-Dr for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:09 -0500 Received: by mail-wr1-x430.google.com with SMTP id n1so27555780wra.10 for ; Wed, 20 Nov 2019 02:58:09 -0800 (PST) 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=6jNVg48ILdOHUBfDag+r3nY2uNv57Ins0s145E0Rdjc=; b=D6Xw/GXAJr99E6Z5h4w/PzEwPAptn6kZBU1eDhiEI31WLiaRsmosYV6atZG96SImNK PrPRDdRf+jmBomWeShD47a6fL3Aihr+9HzoKMko9GMhgayRas80okuFuj3erx5hydWGM WfgTBTb6RMaexAkygLW+d4OfMIP+k3DvW5pDaW8PqRF4YVe5xJPWWhwMYqtdifwZdmVw lQOEuZ75wIDAuziLtwVDlqBLe68mQvkGheFy1mcCRm/y2zEiLJccBOB6KpHX2XrgHNVi z54n9bIm0nfILhWjdJgxael5MOWxfyGmlGUi9+zJTbV6pFPcTCKgHKt6idRTsRqFfysw gvQA== 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=6jNVg48ILdOHUBfDag+r3nY2uNv57Ins0s145E0Rdjc=; b=pV4GxM0q8CqiQICD5E2uzX9oCos/hVKOt21UbakhHUcrfqDAqeJ9gmQedKpKEiIyMR 8xZhGSihjxA16qHFQKXW4HNbone2CGf4YxMBK8F9vBO0t/cWrbILz/9ZGAOaHD/cYF9J RdrJlGvslLBJjJqU7/Tsuhpf12fwXESP2s40FSe8BUFTfMIIqFOJVib/JQMCOzfuOtyP 5bp8cjmf6HYFbwyDihG4AvkuiM331LBEVbANAueDbWUSN43yM2RpmOqhtesqaM6SRTNR 7J6aAkd0XwkILeWJGA9PtijxwKqR7U5u1wW/l4B6ZRUv7wOBg+1LK+Ntv/q8O6cYNLEk z52A== X-Gm-Message-State: APjAAAXbMnnIi6ZcZT1Xvw/1MjuYEPIADE+yW7nwlp5QXFnyalPt+nFW /M4HBlVPhSU3Vl+xHuKBSXYdjA== X-Google-Smtp-Source: APXvYqzm6i1qzhOmeIh0wrFUkLQMLTJ2u2VVmaSrOxS7vBsy//KuPi7BP0nvcbtIyIFSYAiaYPnmAw== X-Received: by 2002:adf:e8cf:: with SMTP id k15mr2565912wrn.256.1574247488296; Wed, 20 Nov 2019 02:58:08 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id p25sm6162574wma.20.2019.11.20.02.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:58:07 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 972771FF91; Wed, 20 Nov 2019 10:58:01 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 4/5] .travis.yml: drop 32 bit systems from MAIN_SOFTMMU_TARGETS Date: Wed, 20 Nov 2019 10:58:00 +0000 Message-Id: <20191120105801.2735-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120105801.2735-1-alex.bennee@linaro.org> References: <20191120105801.2735-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::430 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" The older clangs are still struggling to build and run everything withing the 50 minute timeout so lets lighten the load a bit more. We still have coverage for GCC and hopefully no obscure 32 bit guest only breakages slip through the cracks. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth diff --git a/.travis.yml b/.travis.yml index b9a026c8eeb..c09b6a00143 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,7 +79,7 @@ env: - BASE_CONFIG="--disable-docs --disable-tools" - TEST_CMD="make check V=1" # This is broadly a list of "mainline" softmmu targets which have support across the major distros - - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" + - MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" - CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime" - CCACHE_MAXSIZE=1G From patchwork Wed Nov 20 10:58:01 2019 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: 1198023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ZEvSkosH"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47J0CR4PJVz9sPL for ; Wed, 20 Nov 2019 22:02:42 +1100 (AEDT) Received: from localhost ([::1]:56342 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNku-0002SN-9R for incoming@patchwork.ozlabs.org; Wed, 20 Nov 2019 06:02:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34192) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXNga-00070O-LC for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXNgZ-00072B-9d for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:12 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:38598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXNgY-0006zw-Sp for qemu-devel@nongnu.org; Wed, 20 Nov 2019 05:58:11 -0500 Received: by mail-wr1-x431.google.com with SMTP id i12so27602461wro.5 for ; Wed, 20 Nov 2019 02:58:10 -0800 (PST) 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=NY5Huuw32tJm6WEnS0WeU/lG0oOqGgFOecOoWzPIhZo=; b=ZEvSkosHC7vUHeaLNNN7RqZlililn2T3fnn78bfdiNfg2sW3OVdvY2T9wf8mDBDtHg JiKgyN0RyCJSYgpDcqxA/XZ/FUJFPlpKLVJmtJGoIm0IF4VWGGmZMxLT8wG8r/IuysEN kYrc0of9n/3lPNM0Y65PKarqJLnOHu0srpikaLWSlFy3dBHJY01iyLtOntpbdrcrYrpL bixs5MaNhl4heP89N41Ak5foapD8Jc515jA+m0SvDa2ZdEpnEIRBRGT9vKwn8nQhV8n5 i23DhON90gbGMYVKZMs1M3zWb74xkxlcoz4WXGEO3g/e0yQIVquGDIrGJOgNDgkzHsk2 UfPQ== 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=NY5Huuw32tJm6WEnS0WeU/lG0oOqGgFOecOoWzPIhZo=; b=s6SCTve6o6DvNuJDbDwUKL+t4D+A1m9r1+2puQ3oau7thKC7ROWhWx7XiouKP2BnS6 X0H3qxJN+OAAQtI5PYwYNprFhAJIQ/57vkF6rdvRmpjAvOUaI4WWXefrSLC6QE7hhESo U91jfrwsoL83oaT/dWvL9+AGhGsHcwQ7MRGAqnfHZ9yNi7wWQL1nZRe4P2xHVuaEAL3q yVgwrogrwY7csCFwSp05WHzkR0CHC/AK9OPH+OcCbFlaAa+J4IDqrgQmWC8WnCRDZk8i XrwqBoxoGqM9X2v+zijyhm9FOi81RAd6BPgmpXh5XlUXWTf7WpJxC8i4pl9Bau47mlT0 YWXQ== X-Gm-Message-State: APjAAAVOIgYRsMKH0NDo4a/gtsL9mFFOOCfqbNVfCFPfamFLIf/oA/n5 Q+91gN5m3ziU33tVNoivm5nx8Q== X-Google-Smtp-Source: APXvYqxnv/2FgHZt7VA/2JAtfQXJKzJKtd47ErMD70FSydoD6//nmKlDE1JITg/rhnEjo8j0Xy82Kw== X-Received: by 2002:a5d:6789:: with SMTP id v9mr2428093wru.344.1574247489614; Wed, 20 Nov 2019 02:58:09 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id l4sm6198890wml.33.2019.11.20.02.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2019 02:58:07 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AE5021FF92; Wed, 20 Nov 2019 10:58:01 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 5/5] tests/tcg: modify multiarch tests to work with clang Date: Wed, 20 Nov 2019 10:58:01 +0000 Message-Id: <20191120105801.2735-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191120105801.2735-1-alex.bennee@linaro.org> References: <20191120105801.2735-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 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: Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , Taylor Simpson , Richard Henderson , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Taylor Simpson Signed-off-by: Taylor Simpson Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <1574032465-12186-1-git-send-email-tsimpson@quicinc.com> [AJB: tweak header line] Signed-off-by: Alex Bennée diff --git a/tests/tcg/multiarch/float_helpers.c b/tests/tcg/multiarch/float_helpers.c index 8ee7903c785..bc530e5732d 100644 --- a/tests/tcg/multiarch/float_helpers.c +++ b/tests/tcg/multiarch/float_helpers.c @@ -79,11 +79,9 @@ char *fmt_16(uint16_t num) #ifndef SNANF /* Signaling NaN macros, if supported. */ -# if __GNUC_PREREQ(3, 3) # define SNANF (__builtin_nansf ("")) # define SNAN (__builtin_nans ("")) # define SNANL (__builtin_nansl ("")) -# endif #endif static float f32_numbers[] = { diff --git a/tests/tcg/multiarch/linux-test.c b/tests/tcg/multiarch/linux-test.c index 673d7c8a1c2..8a7c15cd312 100644 --- a/tests/tcg/multiarch/linux-test.c +++ b/tests/tcg/multiarch/linux-test.c @@ -485,7 +485,11 @@ static void test_signal(void) act.sa_flags = SA_SIGINFO; chk_error(sigaction(SIGSEGV, &act, NULL)); if (setjmp(jmp_env) == 0) { - *(uint8_t *)0 = 0; + /* + * clang requires volatile or it will turn this into a + * call to abort() instead of forcing a SIGSEGV. + */ + *(volatile uint8_t *)0 = 0; } act.sa_handler = SIG_DFL;