From patchwork Tue Mar 17 17:50:25 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: 184636 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4431293ile; Tue, 17 Mar 2020 10:51:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuaFefMh/gB2gtCAX3R+aVs88jTdrjO3YO6xiaL6uxL0JiR2eIGTUboi+2cbyxKt7Akuulu X-Received: by 2002:a0c:ffd3:: with SMTP id h19mr343648qvv.166.1584467484322; Tue, 17 Mar 2020 10:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584467484; cv=none; d=google.com; s=arc-20160816; b=Ye5OXQdw+EBAInOGn34Vj/cTKW53JKAtuNdJgjLCHbpj59xyL3k4Iq1r0HqiTNxO/z jIevm8wdvD3XDi3qADhHkNObSkTsBuBY4uuboZpTi3epgD84p68WBWCUAk/upPDHuAH7 LVQYOUlHmT+T+A2KEjSnwZj5l8n/pcpkTbJw2gvmC/5BFWB5edRkT3obozmLcceyJtIM jHGIilf9HUzc7C5gquOCqxKglwngljG/J9bE4uSxqLE1x+4lb/c1GfbTdeDYIU0Ms4Gx +gPHKqxFtzQUFlKpILFAm7gKOQTxwpktZVVA0/95IkKNSv9sQ1NkBAFUYXFfNC2YFMxf hSsA== 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:message-id:date:subject:to:from:dkim-signature; bh=qSLczt+gDAdBi4LDjw24bYcBV5MQ/AraFikb8wO4XTY=; b=SkMSvUl4FTHkt4G4BCfFcjiendvgdq5KUbeBodLZULggM6PtTNg/RdoDoJZXipHzlO YRz1GzkAQ5G5JjxZiF1CN79Ja9kAOzHrcLUD3iwzCnVXgjPNciltrf8fZCpkjohqwmc0 TtabGJxQJt5y6BgysfJvS4ZSYK99Byp8hK5gkCwrmdVos++jfX4pn4KYnxEOvTFw2QkP FsVAxJxUG6q+0Qp0wpDp2DcW1Zb5zkYSjwhEEOYlily6Q5NP8TCZHg5GKM5nxumWtVoi +Um36TTZan7iCQMrISaW227iEVTborGxpiZ8SsezVt5/B2xZgXtUlUEjqpRTAI2kO8NE BDvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=KfGCU4e5; 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 s10si2585357qke.286.2020.03.17.10.51.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Mar 2020 10:51:24 -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=KfGCU4e5; 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]:37888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEGN9-0000IF-PB for patch@linaro.org; Tue, 17 Mar 2020 13:51:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56852) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEGMl-0000FD-5I for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:51:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEGMj-0001Tr-2N for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:50:58 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:37619) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jEGMi-0001K1-Q5 for qemu-devel@nongnu.org; Tue, 17 Mar 2020 13:50:57 -0400 Received: by mail-wr1-x42b.google.com with SMTP id 6so26871150wre.4 for ; Tue, 17 Mar 2020 10:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qSLczt+gDAdBi4LDjw24bYcBV5MQ/AraFikb8wO4XTY=; b=KfGCU4e51O3k5UpAnIZkaWDPh94/1tXUaKVL2nE12YGKLV4+3YgWI0YlFZ22QUbgKy 4tlxvXHvsHtPM6E/hb8Mlux9sf2DrQwgT+bETq/gV5WVU7IUCqiIM8XzhuwaLtBFfoX7 jvdxVFDa0L88AZ2wiB7YGAy1FsijIVUVgU5tmmAuQEO2a4Vr3z0YowuIzQ7qTwirAzxz pZ/zgEvx8tr0L1B6RiBSjFkFLFtnPtMuX9rUAChU7aVM6q+fYVko6FiJf5j3VKIrevtO aShCQiOidqQudOH/YWXSeigzaFeiUzYW6KCfldqsE/b5Gc5hcLS4O1DVtUcgSAHHyakm tw2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qSLczt+gDAdBi4LDjw24bYcBV5MQ/AraFikb8wO4XTY=; b=KLqvAbuXBz6pPcbqtXsFMREs6vEE0j1E1kDF6ceSQI9exJVei2g8k6Rb+ZUCICRSiM 0JnCJRF+ZUsu184ZWtAZvxoZcCV6ITTtfoB+esxw+wxH5A7Z7QPUveXyOabfJSb0XQQo K/F0rhgYdI4Wcu3VhtmhYX700V3sB/pFfUe71TGffOXlMqoXDSEmwocib/N/WHNX61vh RPDL/zCtBTLRz1TK4WMFMElWWBvJJswvmtuJEajgLr/MpFrCIPTULyptuMPRQt37VoQw iEXNqLNWnWLMKWbnsrrCNlgMfqukIGGxT3gcBH5fxKdWf3o6/MLEp3vV/A+JXqGRgZIm pr6g== X-Gm-Message-State: ANhLgQ2nACbHLXo9MZG/HwF+/iyZFhO8prPG9C2RZe9Evvp3iDFRRCxg RtPFi073nhSCKmkOGRAv6LNpDg== X-Received: by 2002:adf:8023:: with SMTP id 32mr143293wrk.189.1584467455416; Tue, 17 Mar 2020 10:50:55 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id c85sm173188wmd.48.2020.03.17.10.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 10:50:54 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 406271FF7E; Tue, 17 Mar 2020 17:50:53 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 00/28 for 5.0] testing and gdbstub updates Date: Tue, 17 Mar 2020 17:50:25 +0000 Message-Id: <20200317175053.5278-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 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::42b 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 Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The following changes since commit 6fb1603aa24d9212493e4819d7b685be9c9aad7a: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200317' into staging (2020-03-17 14:44:50 +0000) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-testing-and-gdbstub-170320-1 for you to fetch changes up to 3bc2609d478779be600fd66744eb4e3730ec5e33: gdbstub: Fix single-step issue by confirming 'vContSupported+' feature to gdb (2020-03-17 17:38:52 +0000) ---------------------------------------------------------------- Testing and gdbstub updates: - docker updates for VirGL - re-factor gdbstub for static GDBState - re-factor gdbstub for dynamic arrays - add SVE support to arm gdbstub - add some guest debug tests to check-tcg - add aarch64 userspace register tests - remove packet size limit to gdbstub - simplify gdbstub monitor code - report vContSupported in gdbstub to use proper single-step ---------------------------------------------------------------- Alex Bennée (20): gdbstub: make GDBState static and have common init function gdbstub: stop passing GDBState * around and use global gdbstub: move str_buf to GDBState and use GString gdbstub: move mem_buf to GDBState and use GByteArray gdbstub: add helper for 128 bit registers target/arm: use gdb_get_reg helpers target/m68k: use gdb_get_reg helpers target/i386: use gdb_get_reg helpers gdbstub: extend GByteArray to read register helpers target/arm: prepare for multiple dynamic XMLs target/arm: explicitly encode regnum in our XML target/arm: default SVE length to 64 bytes for linux-user target/arm: generate xml description of our SVE registers target/arm: don't bother with id_aa64pfr0_read for USER_ONLY tests/tcg/aarch64: userspace system register test configure: allow user to specify what gdb to use tests/guest-debug: add a simple test runner tests/tcg/aarch64: add a gdbstub testcase for SVE registers tests/tcg/aarch64: add SVE iotcl test tests/tcg/aarch64: add test-sve-ioctl guest-debug test Changbin Du (1): gdbstub: Fix single-step issue by confirming 'vContSupported+' feature to gdb Damien Hedde (2): gdbstub: change GDBState.last_packet to GByteArray gdbstub: do not split gdb_monitor_write payload Philippe Mathieu-Daudé (5): tests/docker: Install tools to cross-debug and build Linux kernels tests/docker: Update VirGL git repository URL tests/docker: Remove obsolete VirGL --with-glx configure option tests/docker: Update VirGL to v0.8.0 travis.yml: Set G_MESSAGES_DEBUG do report GLib errors configure | 9 + include/exec/gdbstub.h | 62 +- include/hw/core/cpu.h | 2 +- target/alpha/cpu.h | 2 +- target/arm/cpu.h | 31 +- target/cris/cpu.h | 4 +- target/hppa/cpu.h | 2 +- target/i386/cpu.h | 2 +- target/lm32/cpu.h | 2 +- target/m68k/cpu.h | 2 +- target/microblaze/cpu.h | 2 +- target/mips/internal.h | 2 +- target/openrisc/cpu.h | 2 +- target/ppc/cpu.h | 4 +- target/riscv/cpu.h | 2 +- target/s390x/internal.h | 2 +- target/sh4/cpu.h | 2 +- target/sparc/cpu.h | 2 +- target/xtensa/cpu.h | 2 +- gdbstub.c | 936 +++++++++++++-------------- hw/core/cpu.c | 2 +- target/alpha/gdbstub.c | 2 +- target/arm/cpu.c | 7 +- target/arm/gdbstub.c | 173 ++++- target/arm/gdbstub64.c | 2 +- target/arm/helper.c | 186 +++++- target/cris/gdbstub.c | 4 +- target/hppa/gdbstub.c | 2 +- target/i386/gdbstub.c | 29 +- target/lm32/gdbstub.c | 2 +- target/m68k/gdbstub.c | 2 +- target/m68k/helper.c | 33 +- target/microblaze/gdbstub.c | 2 +- target/mips/gdbstub.c | 2 +- target/nios2/cpu.c | 2 +- target/openrisc/gdbstub.c | 2 +- target/ppc/gdbstub.c | 48 +- target/ppc/translate_init.inc.c | 54 +- target/riscv/gdbstub.c | 20 +- target/s390x/gdbstub.c | 30 +- target/sh4/gdbstub.c | 2 +- target/sparc/gdbstub.c | 2 +- target/xtensa/gdbstub.c | 2 +- tests/tcg/aarch64/sve-ioctls.c | 70 ++ tests/tcg/aarch64/sysregs.c | 172 +++++ .travis.yml | 1 + tests/.gitignore | 1 + tests/docker/dockerfiles/debian-amd64.docker | 6 +- tests/docker/dockerfiles/debian10.docker | 3 + tests/docker/dockerfiles/debian9.docker | 3 + tests/guest-debug/run-test.py | 57 ++ tests/tcg/aarch64/Makefile.target | 32 + tests/tcg/aarch64/gdbstub/test-sve-ioctl.py | 85 +++ tests/tcg/aarch64/gdbstub/test-sve.py | 84 +++ 54 files changed, 1497 insertions(+), 701 deletions(-) create mode 100644 tests/tcg/aarch64/sve-ioctls.c create mode 100644 tests/tcg/aarch64/sysregs.c create mode 100755 tests/guest-debug/run-test.py create mode 100644 tests/tcg/aarch64/gdbstub/test-sve-ioctl.py create mode 100644 tests/tcg/aarch64/gdbstub/test-sve.py -- 2.20.1