From patchwork Fri Jun 28 12:42:35 2024 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: 808246 Delivered-To: patch@linaro.org Received: by 2002:adf:fe0a:0:b0:362:4979:7f74 with SMTP id n10csp340819wrr; Fri, 28 Jun 2024 05:43:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVFfZ4lf08z29qo6QMdsAJUWOokwbRRVcUUtW0dxQ0NVfjiYnY02k+2jrBb68xOxre7Nbp1XkcVI0650FTo8o2v X-Google-Smtp-Source: AGHT+IF0LFC2Tg/jpSv8bH+6jopqsF2kQVefB0XbwpE1LmkMVC30Ywlfux2JCNALDlXM5mHFWxVI X-Received: by 2002:ad4:5508:0:b0:6b5:7e0b:eafb with SMTP id 6a1803df08f44-6b57e0bed5dmr73168366d6.24.1719578596764; Fri, 28 Jun 2024 05:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719578596; cv=none; d=google.com; s=arc-20160816; b=nbCp7Zfws5HP9m1wkh/Pl+Q5ydgCuSK/TGMgHUhOeIzbLq4XYhHBZrllSGDUAO5s+m RbvwUWdsagRCxBaGWYn/mcVYTXdBxdRFDkOxG6SmcH2bwDt2R6inaDwTTx0VPm6TFL/g 9tasGUXrSmD2RxSM518B2XyNZmgHOjsCtVZOlRxhIGfb/7z06l01Akj/Q0xHJ66UDrAT nMcibAGp3qkanEqn6/1veMFNRa4fa+oe7hnrs48AuxIqQanYpe3UOwUoOhcPdcrfX7ll OeBJpXrfJY4hKVqdKJclGD43Pky/RR03f/a44TsxygtOXbA3ExPJAnyP+samYYkRXWp/ G1KA== 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=950bvrnXU/W+RliUBgLvg0wluQPzz+2hnnbWsXrLYh8=; fh=lYprE3b3djWrX1RXaKNWYtBM0py2TEOcoYTFuPEPQVw=; b=c+Oz56ta9WiFrFobzoQ/nvdWy4Z6lrQRMD/j98L/DJ9zU03JafVeIGxgAmki/IwCcl PPw7nbQTyL9f/e2+eQtEAasLFLwTn1l3zzWvsNSkybx/6U7cEu5eeWZ96ZZdKgLWdkTl 6b9pAtXHU9AAG+6nIQNb52ulhdMasuqwvpt9QdDblVSvAC41XTQ4XUoy2l5jUxIxauKR LqIN3Am8CmT2WCRtlakS7tf8njyIBdKNnbrdYt+gE6KHud2sFQaYZMU/j1VXwZTEhtKc hfDDrmu0Onr3670x97Zna+Q1T8bOuu3jW0j0isWZKn305ESy+uBLePn0EUH2FnoGSA64 Sl7A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DudtucJd; 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 6a1803df08f44-6b59e5f274bsi18846726d6.425.2024.06.28.05.43.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Jun 2024 05:43:16 -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=DudtucJd; 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 1sNAwW-0004oA-85; Fri, 28 Jun 2024 08:43:08 -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 1sNAwU-0004n3-F0 for qemu-devel@nongnu.org; Fri, 28 Jun 2024 08:43:06 -0400 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sNAwQ-0005eh-Rj for qemu-devel@nongnu.org; Fri, 28 Jun 2024 08:43:06 -0400 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-57d15b85a34so664338a12.3 for ; Fri, 28 Jun 2024 05:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719578581; x=1720183381; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=950bvrnXU/W+RliUBgLvg0wluQPzz+2hnnbWsXrLYh8=; b=DudtucJdgnQBiwoA5B/LkdTrkHLLYamTWchdKw7nBhBtQibpX/Ai6x8P/FvdRWn8AG EBppPQILNyzmYH/iKEt9F0KSFCxlQ6pUJFu6+KQ66yzDI6Ig9LY0OaK4qTAMPoFecmVp gY4Z25rhALdIacatVDJUbT7rabII2nauuykVLOMuY5XJXc94elFcCYNes1J7FvrRE+rZ /nQ5mDxydkb34P1gD1DxOS5JaSFd0yZ5KnQnwqm7e+yhU8vSRFb8in8LqQbMrmDCNKKz w8yJusbOwJbl8vK5bTzdnuBDZ48Zgw7zpWSBhYblRDp1UeMzzd0Y+jDaG84gPBigMGUn ci0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719578581; x=1720183381; 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=950bvrnXU/W+RliUBgLvg0wluQPzz+2hnnbWsXrLYh8=; b=SoznFpWQURhFP8Gfk07b+CeMKZiNqrcm0ZlMjTS4SUg7uMclKgcaePwV6YPDNxkQwO ZUaCrMBEqOM+WxB949nf42EcvlehoTfe8OezC7TsUIDBXpE5THes59ZEO0GYE4/rifmS KkgZqvTujtAmZPtlDJF8pjlXTrymTmYzrjdglBkwwXCWkKipz8oXB+ZzTSVmobeAqeOo IHCdfrLyLTDskm5kn0GvfQrttferBuAB7warwiyoLgmfZ5UC+hcRSppBbWZOh8SGv1Eu vhN3Bus40agS0F/ZS7r9ET4WEsEiMkNFZG4U4XqhrBWrF750Q7g6PajOmrg1L6A3I+Q6 XzRQ== X-Gm-Message-State: AOJu0YyXJ0Q4I3NkvXFOL5VFfOH6Ll+U6V1jfEDupBKCvYtP6n1mYB3E zCTHEGbmsZFqU40L5NbipvZn7t2wakut91cbJ3Fb00nk4m2tS2RCJZbPKfW0VwI= X-Received: by 2002:a17:907:d311:b0:a72:762a:eee1 with SMTP id a640c23a62f3a-a72762af002mr777017766b.10.1719578580414; Fri, 28 Jun 2024 05:43:00 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab090575sm75776466b.184.2024.06.28.05.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 05:42:59 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 002B55F7A1; Fri, 28 Jun 2024 13:42:58 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: David Hildenbrand , Beraldo Leal , Eduardo Habkost , =?utf-8?q?Alex_Benn=C3=A9e?= , Wainer dos Santos Moschetta , qemu-arm@nongnu.org, Peter Xu , Mads Ynddal , Mahmoud Mandour , Pierrick Bouvier , Laurent Vivier , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Alexandre Iooss , Stefan Hajnoczi , Peter Maydell , Richard Henderson , Thomas Huth Subject: [PATCH 00/23] July maintainer updates (32bit, testing, plugins, gdbstub) Date: Fri, 28 Jun 2024 13:42:35 +0100 Message-Id: <20240628124258.832466-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::52d; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52d.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 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 Hi, This is a grab bag of fixes and clean-ups as we swiftly approach the soft freeze deadline. The i386 TCG fix came about when re-enabling the 32 bit host build and finding a regression which was masked by KVM's presence. As a result I decided to disable KVM in the build anyway as its TCG most likely to get tripped up by 32/64 bit issues. The plugins fixes are mostly tweaks I made while hunting the above bug. I've also included Gustavo's gdbstub MTE support. The following still need review: tests/tcg/aarch64: Add MTE gdbstub tests gdbstub: Add support for MTE in user mode gdbstub: Use true to set cmd_startswith plugins/lockstep: clean-up output plugins/lockstep: mention the one-insn-per-tb option plugins/lockstep: make mixed-mode safe plugins/lockstep: preserve sock_path test/plugins: preserve the instruction record over translations test/plugin: make insn plugin less noisy by default tracepoints: move physmem trace points testing: restore some testing for i686 target/i386: fix gen_prepare_size_nz condition tests/lcitool: fix debian-i686-cross toolchain prefix Akihiko Odaki (2): tests/docker: Specify --userns keep-id for Podman tests/tcg/arm: Fix fcvt result messages Alex Bennée (10): tests/lcitool: fix debian-i686-cross toolchain prefix target/i386: fix gen_prepare_size_nz condition testing: restore some testing for i686 tracepoints: move physmem trace points test/plugin: make insn plugin less noisy by default test/plugins: preserve the instruction record over translations plugins/lockstep: preserve sock_path plugins/lockstep: make mixed-mode safe plugins/lockstep: mention the one-insn-per-tb option plugins/lockstep: clean-up output Gustavo Romero (11): gdbstub: Clean up process_string_cmd gdbstub: Move GdbCmdParseEntry into a new header file gdbstub: Add support for target-specific stubs target/arm: Fix exception case in allocation_tag_mem_probe target/arm: Make some MTE helpers widely available target/arm: Factor out code for setting MTE TCF0 field gdbstub: Make hex conversion function non-internal gdbstub: Pass CPU context to command handler gdbstub: Use true to set cmd_startswith gdbstub: Add support for MTE in user mode tests/tcg/aarch64: Add MTE gdbstub tests configure | 4 + configs/targets/aarch64-linux-user.mak | 2 +- gdbstub/internals.h | 23 - include/gdbstub/commands.h | 103 +++ linux-user/aarch64/mte_user_helper.h | 32 + linux-user/aarch64/target_prctl.h | 22 +- target/arm/internals.h | 6 + target/arm/tcg/mte_helper.h | 66 ++ contrib/plugins/lockstep.c | 23 +- gdbstub/gdbstub.c | 341 ++++++---- gdbstub/syscalls.c | 7 +- gdbstub/system.c | 7 +- gdbstub/user-target.c | 25 +- gdbstub/user.c | 7 +- linux-user/aarch64/mte_user_helper.c | 35 + linux-user/syscall.c | 9 - system/physmem.c | 6 +- target/arm/cpu.c | 1 + target/arm/gdbstub.c | 46 ++ target/arm/gdbstub64.c | 223 +++++++ target/arm/tcg/mte_helper.c | 48 +- target/i386/tcg/translate.c | 2 +- tests/plugin/insn.c | 112 +++- tests/tcg/aarch64/mte-8.c | 98 +++ tests/tcg/arm/fcvt.c | 2 +- .gitlab-ci.d/crossbuilds.yml | 11 + gdb-xml/aarch64-mte.xml | 11 + linux-user/aarch64/meson.build | 2 + system/trace-events | 6 + tests/docker/Makefile.include | 7 +- .../dockerfiles/debian-i686-cross.docker | 2 +- tests/lcitool/refresh | 2 +- tests/tcg/aarch64/Makefile.target | 14 +- tests/tcg/aarch64/fcvt.ref | 604 +++++++++--------- tests/tcg/aarch64/gdbstub/test-mte.py | 86 +++ trace-events | 5 - 36 files changed, 1401 insertions(+), 599 deletions(-) create mode 100644 include/gdbstub/commands.h create mode 100644 linux-user/aarch64/mte_user_helper.h create mode 100644 target/arm/tcg/mte_helper.h create mode 100644 linux-user/aarch64/mte_user_helper.c create mode 100644 tests/tcg/aarch64/mte-8.c create mode 100644 gdb-xml/aarch64-mte.xml create mode 100644 tests/tcg/aarch64/gdbstub/test-mte.py