From patchwork Thu Jan 30 10:37:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 860847 Delivered-To: patch@linaro.org Received: by 2002:adf:fb05:0:b0:385:e875:8a9e with SMTP id c5csp82171wrr; Thu, 30 Jan 2025 02:38:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVK85ctay2D7lQylNy7azrASN4rjn8xzxuO23A5K6U+bnO1yy0qMPFtBjkPDmLx18iXfIoXRA==@linaro.org X-Google-Smtp-Source: AGHT+IHKB/Q4Dqrf/ZvvDC7zy3akCXzY/vi4PVI2B4+8mlaQhPzoPiBqsYnmg1c4mrLWvdYM/MBE X-Received: by 2002:ac8:7fca:0:b0:46c:870f:f625 with SMTP id d75a77b69052e-46fd0accc0dmr90886651cf.29.1738233514318; Thu, 30 Jan 2025 02:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738233514; cv=none; d=google.com; s=arc-20240605; b=QZR4A4Zrt9oJGZCZ5zp589OKQdS1uUEFlEipQy1C/XNPgLo60VR3hPZeECPnmHXQlq bYWIfzxp0l7b6vk4ZDJu9fjfAavftxXK4ixpx1U4idfGr9BS1rYsb2GWJSg0yOK7mjbG 5xQOjwbsuPBFQ8busC1ih3yGpxDFWAviqnG3+cSwlZgz2LJqM7mpgHy0eiX0eg27Hhsy TLO8Q8JwRRPXti2nGfGBoP2MetDTMlotR6VKY0gYRjiBWmE2wQALzIDUn9oE2YB5NTeD QrVOX/vv3wPvRnz5aIK8QHiPKnvBj3CKDzHHA0RoYDYt3/TpwmyZwnGm7oZz1DIRCj2n ocxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=vJAhgdvuaUzoP5rhYvCoy1R4+PFzIiikeM9bnH6e+vE=; fh=jWq+StUBowRqzgqQgreZPWKUBmJUIgV2nbCMIW9nPeM=; b=KaqkpQxIdE+rUXzvrBmWM2dtJn3WbRU3Ywsqrbtcvo/vlJizGCbo1z67IePphl82C6 Jz+GdOFozcMBw9I/VvofeGlFw5iAHmHdUjEFrf2arjLCzjg39G3eYvM4vfYSAel/NVJq Lgg4yTaVJjojS2QNE8QUj5w3I23svUilJoF1j9AJGBq0svHNLrKmnbkNEeTUuhf32rsO 4mcQnm+kbJzG6TjqLWjeO61bfbDdFRDjW59aA2UrYRSRK8W3g7HifImBfN2t/TW/xUr7 TVwWX5bexyLPvg46+NeeFQ2YwPznTQ95xBMpPsrpyShPt4oebuEjmOVMa0d9GHbE6kco C1Uw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f+0Twg3o; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46fdf1d0a5csi15323041cf.354.2025.01.30.02.38.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Jan 2025 02:38:34 -0800 (PST) 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=f+0Twg3o; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tdRvT-0003ca-TQ; Thu, 30 Jan 2025 05:37:36 -0500 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 1tdRvS-0003c0-Gc for qemu-devel@nongnu.org; Thu, 30 Jan 2025 05:37:34 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tdRvQ-0002YE-OJ for qemu-devel@nongnu.org; Thu, 30 Jan 2025 05:37:34 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43635796b48so3581935e9.0 for ; Thu, 30 Jan 2025 02:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738233450; x=1738838250; 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=vJAhgdvuaUzoP5rhYvCoy1R4+PFzIiikeM9bnH6e+vE=; b=f+0Twg3oO/F5bz92eCoxLm1Xo/2Ybc3vnJ0BY7wle6CTPYFQyZdRzRJgx7SWRhFiQD 31+pZg4TfBvOdohMQscblHARw+Nc/plmOrTdhW3mkw8SGQf7ataID1MOZO2PLjraa9DV azrLNREyp3ilMkMVv96iaEnBTXQuXCdstCo3Fw2Hr2p9ktdlki8DzJXpxrTKBd3+c2o7 I49nOwsI3RaoL1UMHc8nAFcO17TXx66OZX5I1+GOhLgu6FgbGXJeg4JAZuDi7bgd4ruz ex8Fdp8lR/8s4RxDt7ziq+dlB4og2Iq6IGlzFxHbmq/a++p2GDbC3rstRSw77kkDaW06 kJQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738233450; x=1738838250; 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=vJAhgdvuaUzoP5rhYvCoy1R4+PFzIiikeM9bnH6e+vE=; b=PJB7ZXjvonffc4QCpX6YutqG5VeNDtMBTr8pN+0aL/AnwCEGIUdAbD6aaxFkd9E1/i peTbIr6Va5lXpDrFO6hq6rgrx33VUuGHwpDTjxKeaEhLfrF0Cz5f9qxNKjtjE3qUqLb6 8gGqIpZ4CX+7d1lp14HJxp90bK+Whh7ueqc6QAtN5tU28dMaXXzpugUu7r/nhRovWTyT EcJsYPqAwLJz3btuADGKwhVbxPXVNFP1jgRtCISJLlUyCp23FV0wEvj+5FgIoRBOaXPP AhG+hOKoFxjAbn9lRRWcRbzJXsRab6Y5z41IiBjpc+nVi/ikIpuUllJbyhMyfklK5PyN fQ8A== X-Gm-Message-State: AOJu0YxiHMJejUbou0/WEBIFmViZk9ip5P4S5I7SUlBYs0/LiQgrpf5z QaHb1qDzW8pF+1Qy9pnl16mCFMvwolFskiEnRW9o/9JrtQgZS0GJ+GKR1TQa3BPfRjYqVos7aHd kkW0= X-Gm-Gg: ASbGnctPFK4HHbCwFO2NiJncFHuHYWTPqztFQa0hRlO1r4cV5aJ++wTsKznfbCwHoeS eABjhk0IPmNN6rVCg7HcMVQGYcIkFh0hI5QwbNFhmTmUtFeROR30hTUhx/Ekz10QPRPrcDW5UiM dYVvDoHLM4B+iRgvraqVy/vquiJkm2NiX78B8Fv8Jtu20lPIEskCpO9VAIEufu9Lye5wUkEcK5m nmXKU4M5Un+4bgO7h7hOi0UWOAiWw+N9UY8b4DIMIqOFEeyScRnNJGuH17Lx0lk0TXh92XlUb5Q BcPuylLNoLN58hvVMoOImvPHoBL7QMMVVYD/vmSNoeFQw29DGquzc+zOAGs5UUDWEA== X-Received: by 2002:a05:600c:3d0d:b0:434:ff08:202e with SMTP id 5b1f17b1804b1-438e15ee1cemr21636335e9.8.1738233450329; Thu, 30 Jan 2025 02:37:30 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-438e23dea58sm18398835e9.15.2025.01.30.02.37.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 30 Jan 2025 02:37:29 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , Paolo Bonzini , Bernhard Beschow , Thomas Huth , Markus Armbruster , Akihiko Odaki , Fabiano Rosas , Phil Dennis-Jordan , xen-devel@lists.xenproject.org, Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/2] tests/qtest: Make qtest_has_accel() generic Date: Thu, 30 Jan 2025 11:37:26 +0100 Message-ID: <20250130103728.536-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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 (Series fully reviewed) Since v1: - Use g_strconcat (Akihiko) In preparation of running QTests using HVF on Darwin, make qtest_has_accel() generic. Note, this also allow running other accelerators such Xen, WHPX, ... Philippe Mathieu-Daudé (2): tests/qtest: Extract qtest_qom_has_concrete_type() helper tests/qtest: Make qtest_has_accel() generic tests/qtest/libqtest.c | 110 +++++++++++++++++++++++------------------ 1 file changed, 61 insertions(+), 49 deletions(-)