From patchwork Fri Jun 23 12:20:34 2023 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: 695231 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp1919848wrm; Fri, 23 Jun 2023 05:22:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7KghqOGUNhqZqsxAXkWBgZf2JbDaTeCyfs9BCH3j62z28iInFyGdJHEYvX6vhtKYuD2I+A X-Received: by 2002:a05:6214:1bc9:b0:5f1:606b:a9c8 with SMTP id m9-20020a0562141bc900b005f1606ba9c8mr16075084qvc.22.1687522931401; Fri, 23 Jun 2023 05:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687522931; cv=none; d=google.com; s=arc-20160816; b=EQqiKfK0Mvim+hluRHK706pLc1wMImajS+odpSYs0mJSSxt/tRtJFk2fiCGTIs9vuv s0BSZdYuE7ue6pqLfDO9ScXXEcH4TASolni+kAqm0cHMgsLV38gkYqNC4Dm6IxsZCi/G LFeU1HmL8FF2sHpYQc1Wac+LK8aYNVxuazEGpgXGSuiM4idEntjj44zjawEe73mBJiN8 HjXpBtcMRgNjcinn9PWJfLpRFKW8VJDcsmucdPTMKutvmSTqpNApAhNLRhsqzi93+d7J uCn6xwWgqpK3bcI+atujfWF5gVRWawfEwk4isW9JXxjtB1Ak7Fb84Ydch7edzbcBWo+L Sh2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=j/vIHDwzFrIfz7Vm9fv4XCwyKtM7op7qmDeBZqPYxDg=; b=z+OKPxOmS+54G04r7r96qcAKtQ/rVnK9qpgYBxXu6zLOo/St8tlKuxahtXHsOvYX4A 089IIzzoHFgxd80COAdzE0CSGZoZ4QfCrqRPE5mCi/2RcAUENqWN64TvPIcMfQu18caj wziPZAn+q8q5fJ0Em3X+bRwhuS5AWWvdpv39YUlskz/Cp7eFVL3PVeejeoeVVcG/aAZC 2ckVGFDhRzlGsgIV1LZMV9pFNiMdtQq84/i2Tr1cPzcwFooEYE//R0RZeCIfvzNTDcaQ OIA2MATJyR3iCTnpJuhpKLocWMKRVmFpzfhUZbvpp6Ojx+LKAsGKzXuvRv9hCk7UXQtU 5ktw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UZsjfxWw; 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=pass (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 pt11-20020a056214048b00b006260b52a5c4si3587673qvb.389.2023.06.23.05.22.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Jun 2023 05:22:11 -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=pass header.i=@linaro.org header.s=google header.b=UZsjfxWw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCfnD-0003s1-75; Fri, 23 Jun 2023 08:21:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCfmo-0003kW-Mu for qemu-devel@nongnu.org; Fri, 23 Jun 2023 08:21:12 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCfmh-0003g0-Rn for qemu-devel@nongnu.org; Fri, 23 Jun 2023 08:21:08 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f86a7a5499so712044e87.2 for ; Fri, 23 Jun 2023 05:21:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687522861; x=1690114861; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=j/vIHDwzFrIfz7Vm9fv4XCwyKtM7op7qmDeBZqPYxDg=; b=UZsjfxWwQvhGk54oTi9Lvnr77Q2tGBdwoViKoVm9SC054lTJKGUyyBaGo4CMiW0bjb Q2vxGES5epGE2mZ2WmcsWsR/+CmOwMaEzQENEZjuX2Sd9AQXeBcPzOQ8tFIkGfQwlSj4 pPVuDAX7TpcvJPA/jBkq9CD87r3ES6ni1pH241P3TwcZ8/gsewvDt/9QqO2nF6n6CRru PEwNHrG5H1z+7zmoW9zAHxBrWiz4YD6PmlYj0bdXJYlSCEQS7rRKzmft6K/PtDiLMyaS YUDoZq8Xr3/tjAJTzLrhDhCC17vBMGikuvQ/a+Msn/9o5W5gbqgShLR0fOyeP7dIr+Of DLqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687522861; x=1690114861; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=j/vIHDwzFrIfz7Vm9fv4XCwyKtM7op7qmDeBZqPYxDg=; b=fbnWNjqgLYTxeikwe8gExTP3s3MfklDwTbV9xuS4mZ7ZLGjGcC45XXcl4SxdJufdaZ 6aaaRbdQekOfW0WHAIL+SLSmbjRwEI4Ma07cOqQWLvB04x/S5wJDT/ekTnECsQcJb8K+ ++0EHB31ED5UAbOP6r+Dp68wmDcNhnkKfqO8BEuQTidUjdlfmrDZvXPDMm4voP68FH/j MDhKSiBmuD1r/+a9TpfU6Zo19rqbDaPINtUKBVoSGu9JPjRSPj+/AfMd+2h+ihTt0JcO GMYuJOSfedEvzppWDggo98wurJo108AlugznGJDXTezGxJuFLH0hQdVhAEhhcUoqqYwx wppw== X-Gm-Message-State: AC+VfDzhYNhaIuoF3hGLorlRxyH0i4uSYD7msnFsh83uwRaPtadpr03p Vxs7TxHi71uRyZldfu3TaMF38A== X-Received: by 2002:a05:6512:1319:b0:4f8:661f:60a4 with SMTP id x25-20020a056512131900b004f8661f60a4mr10427129lfu.41.1687522861361; Fri, 23 Jun 2023 05:21:01 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n12-20020a1c720c000000b003f90b58df65sm2177937wmc.29.2023.06.23.05.21.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 05:21:01 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 841341FFBB; Fri, 23 Jun 2023 13:21:00 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Richard Henderson , Juan Quintela , Peter Maydell , Cleber Rosa , Darren Kenny , Alexandre Iooss , Peter Xu , qemu-arm@nongnu.org, Eduardo Habkost , Riku Voipio , Mahmoud Mandour , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Paolo Bonzini , Bandan Das , Marcin Juszkiewicz , Radoslaw Biernacki , Alexander Bulekov , Leif Lindholm , Qiuhao Li , Wainer dos Santos Moschetta , Marcel Apfelbaum , Leonardo Bras , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Stefan Hajnoczi , Bin Meng , Thomas Huth , Beraldo Leal , Laurent Vivier , Yanan Wang , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH 00/26] maintainer omnibus: testing, fuzz, plugins, documentation Date: Fri, 23 Jun 2023 13:20:34 +0100 Message-Id: <20230623122100.1640995-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=alex.bennee@linaro.org; helo=mail-lf1-x12b.google.com 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_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org As softfreeze is fast approaching I thought it would be work combining my various trees into an omnibus series to ease the review and merging. The testing updates exposed a number of latent leaks that confused the oss-fuzz jobs (hence the test-fuzz addition to help debug that). This also includes some minor plugin updates and finally some documentation updates that clean-up and expose the QOM and QDEV APIs which are so core to emulating anything in QEMU. Please review. Alex Bennée (20): gitlab: reduce testing scope of check-gcov tests/tcg: add mechanism to handle plugin arguments qemu-keymap: use modern name for Arabic keymap qemu-keymap: properly check return from xkb_keymap_mod_get_index scripts/oss-fuzz: add a suppression for keymap tests/qtests: clean-up and fix leak in generic_fuzz tests/docker: add test-fuzz Makefile: add lcitool-refresh to UNCHECKED_GOALS tests/lcitool: update to latest version tests/lcitool: add an explicit gcc-native package tests/lcitool: introduce qemu-minimal tests/docker: convert riscv64-cross to lcitool plugins: force slow path when plugins instrument memory ops plugins: fix memory leak while parsing options plugins: update lockstep to use g_memdup2 docs/devel: add some front matter to the devel index include/migration: mark vmstate_register() as a legacy function include/hw/qdev-core: fixup kerneldoc annotations docs/devel: split qom-api reference into new file docs/devel: introduce some key concepts for QOM development Ani Sinha (1): docs/devel: remind developers to run CI container pipeline when updating images Daniel P. Berrangé (2): gitlab: explicit set artifacts publishing criteria gitlab: ensure coverage job also publishes meson log Erik Skultety (1): tests/lcitool: Bump fedora container versions Marcin Juszkiewicz (1): tests/avocado: update firmware to enable sbsa-ref/max Philippe Mathieu-Daudé (1): docs/devel/qom.rst: Correct code style docs/devel/index-api.rst | 2 + docs/devel/index-process.rst | 2 + docs/devel/index-tcg.rst | 2 + docs/devel/index.rst | 24 +- docs/devel/qdev-api.rst | 7 + docs/devel/qom-api.rst | 9 + docs/devel/qom.rst | 54 ++- docs/devel/tcg.rst | 2 + docs/devel/testing.rst | 6 + Makefile | 2 +- include/exec/cpu-all.h | 2 +- include/hw/core/cpu.h | 17 + include/hw/qdev-core.h | 365 ++++++++++++------ include/migration/vmstate.h | 9 +- accel/tcg/cputlb.c | 4 +- accel/tcg/user-exec.c | 6 +- contrib/plugins/cache.c | 2 +- contrib/plugins/drcov.c | 2 +- contrib/plugins/execlog.c | 2 +- contrib/plugins/hotblocks.c | 2 +- contrib/plugins/hotpages.c | 2 +- contrib/plugins/howvec.c | 2 +- contrib/plugins/hwprofile.c | 2 +- contrib/plugins/lockstep.c | 4 +- qemu-keymap.c | 24 +- target/arm/tcg/sve_helper.c | 4 - tests/plugin/bb.c | 2 +- tests/plugin/insn.c | 2 +- tests/plugin/mem.c | 2 +- tests/plugin/syscall.c | 2 +- tests/qtest/fuzz/generic_fuzz.c | 11 +- .gitlab-ci.d/buildtest-template.yml | 4 +- .gitlab-ci.d/buildtest.yml | 7 +- .gitlab-ci.d/crossbuild-template.yml | 1 + .gitlab-ci.d/crossbuilds.yml | 2 + .gitlab-ci.d/opensbi.yml | 1 + pc-bios/keymaps/meson.build | 2 +- scripts/oss-fuzz/lsan_suppressions.txt | 3 + tests/avocado/machine_aarch64_sbsaref.py | 22 +- tests/docker/dockerfiles/alpine.docker | 4 +- .../dockerfiles/debian-amd64-cross.docker | 1 + .../dockerfiles/debian-arm64-cross.docker | 1 + .../dockerfiles/debian-armel-cross.docker | 1 + .../dockerfiles/debian-armhf-cross.docker | 1 + .../dockerfiles/debian-mips64el-cross.docker | 1 + .../dockerfiles/debian-mipsel-cross.docker | 1 + .../dockerfiles/debian-ppc64el-cross.docker | 1 + .../dockerfiles/debian-riscv64-cross.docker | 119 +++--- .../dockerfiles/debian-s390x-cross.docker | 1 + .../dockerfiles/fedora-win32-cross.docker | 5 +- .../dockerfiles/fedora-win64-cross.docker | 5 +- tests/docker/dockerfiles/fedora.docker | 4 +- tests/docker/test-fuzz | 28 ++ tests/lcitool/libvirt-ci | 2 +- tests/lcitool/projects/qemu-minimal.yml | 27 ++ tests/lcitool/projects/qemu.yml | 1 + tests/lcitool/refresh | 18 +- tests/tcg/Makefile.target | 8 +- tests/tcg/aarch64/Makefile.target | 8 + 59 files changed, 627 insertions(+), 230 deletions(-) create mode 100644 docs/devel/qdev-api.rst create mode 100644 docs/devel/qom-api.rst create mode 100755 tests/docker/test-fuzz create mode 100644 tests/lcitool/projects/qemu-minimal.yml