From patchwork Tue Jan 28 13:54:27 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: 860399 Delivered-To: patch@linaro.org Received: by 2002:a5d:6b8c:0:b0:385:e875:8a9e with SMTP id n12csp361089wrx; Tue, 28 Jan 2025 05:56:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXr5JO95v6ymqgWrToTxCq49Qz6tS53zHJQbu4WAtobiynljNLpRajOiPCrWV3/TcnzE+AGBg==@linaro.org X-Google-Smtp-Source: AGHT+IEiTa/fzPIzF7fm4ZMCmwz9iisKIi+LIIIffcIiQJsj8Scx/DqW52GjiKSKHLZE2DEjrDp/ X-Received: by 2002:a05:6214:2585:b0:6d8:8874:2127 with SMTP id 6a1803df08f44-6e1b216f38cmr655482576d6.5.1738072594662; Tue, 28 Jan 2025 05:56:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738072594; cv=none; d=google.com; s=arc-20240605; b=ADz4TmiuZZ0efKq6x0inXjCLjcxax5BdH2w7jFflM70YsIpM7RZ+GugaxXo+8f/3xI TZquSfFuikTMIv7tlvjiQoifSn4nCNiT3Ep2oldZM94vKXWnvfB5GbEHTB12o+3AdUdP Tft8hMxovhDw0rypktolWTNwreR6KabmzMKr8PbbfZWJ378QsVm/14c/bOyYaan+ndg4 IjCIC58hgoQYQDpddJi4Smp/8lY7TZa3/Kc9XGbTat+YFWlY2Gjr/n1JoZCUODOuX/XU VQDE+sl9hCUDHYPkvqkbsGtzx/sS67TzpXdEzZJYtLVKHZEmvFpQqSk8aWxcWl8EwHNI MRnQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sHTZdSk34mjGYxV+5W6LTI1L6AwP2TGsJTRkRZPId30=; fh=he6qF/KMP6eFixTgylxvrlgxhBxgGRgoUCHyk8cWuiE=; b=NtBto7ApbhoL15KF2253d7A4nJ7YBqGFDcxYbY8YYqyxxfZuNjK18Hj4/mEm34BTaA TmQfPMFcXiV1OKW1LhC6j1m0gXWUZTe+UpUbIz9uN33MqzNju0oTnxg4YvkZwbMCxlkB Br9o04t7Eqaj+d6SILmR7mjs3qmS0RHedOpCt2WsitpBbK+Dljp68WnA8NbkLQP4wrXK LZj82dvAAI8Wf1FwRL9r2jAqWJw0beJ9EkrzuN5PpevaBRyTJgqIV1hvbe67ZGUAHJ9j Ek716JO8kdoT9Z4TEzxt/lVHHeDa0ohrhBkPZgw8LzrrNU/hUQlt+3XQjXxu8NqAFEXE exnQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I6+cN42I; 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 6a1803df08f44-6e20525c53bsi131467346d6.36.2025.01.28.05.56.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2025 05:56: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=I6+cN42I; 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 1tcm3d-0004nb-IW; Tue, 28 Jan 2025 08:55:13 -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 1tcm3Q-0004aj-1j for qemu-devel@nongnu.org; Tue, 28 Jan 2025 08:55:06 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcm3N-0006bx-JP for qemu-devel@nongnu.org; Tue, 28 Jan 2025 08:54:58 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-436281c8a38so39833745e9.3 for ; Tue, 28 Jan 2025 05:54:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738072495; x=1738677295; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sHTZdSk34mjGYxV+5W6LTI1L6AwP2TGsJTRkRZPId30=; b=I6+cN42Ic3NNltT4lzPMeS2CHPf+hkvEmiSho1CRoBjz+jrWPAYgf7laPJD5mUrJvD 86SxBB/MruLeKGOUhtb0Nhk3ArVEGTfpOIay/sV0H69loTkHB977OvvAOVVzuFvS+ZQI 9UbG7/pXG4nyVpeSPmh/5LqFvLrbL4Ndek18Fco7pWP3dJJZIcoztOhaAE00b3lYzXhj MhB7XhjAEhRs+Ec1ovp2wK1KYXsE7eK5qNWlgBX1N41wtINrFHJss0+Uz4hRGb6CPx3k co+dU3uQB7Og2gNGPo3pGxIq3gMb938Md7zUS+w7E3Jaye5qOZOryfVIE4kION/vq2sX 2UiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738072495; x=1738677295; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sHTZdSk34mjGYxV+5W6LTI1L6AwP2TGsJTRkRZPId30=; b=qPKzqUIK86ZVtDWT4SgOt712NU8/WCtXxO7wGt/OS6WYrnYJUVoWHgQ+s/V93VCL46 YVelrh+6kRcCcYTquH1OxZrdHnzizNZpzCU1dwWuIb4OWRkSLndpzcxFIBLJJ2W3At99 Wt6Ik8o1CbMaUpEG3j8JXqoQJTKQjs7aSiGzJY1GhSdmkvnzG3ASe1pEM59lCe5Idu0o 6tLhv4tI3UuW0XC7Zmm8/xOxhdei7ARzXWpXA4N+UscwAv46X0vwZvuTw8l/AOyXHWSq WShjl200vBk9rohvUVoBy98Xtz8C6zawxlHEshdInF2qPG7M7UjkS8a9dZrULqFiM/t+ ZesA== X-Gm-Message-State: AOJu0YzasxNsAf4BmpYeyLv0NjUkdPdxj8jymwgsBvN3BjbFCMDimLpw O5fhAw/KACORDtwICGmEa/l0qbEGemtAAAJ69/+ujR6rF/JUEpg4vgz8HnhIrrsQbVHl4SVVXBE sgBw= X-Gm-Gg: ASbGncvp6kkAzeSkcfmDWPnA5NORkdZmy+dKgf0VTWNEN4Sg7F6c1H22D4PCxwjZwVk mYNJXR6jh5nEgzUjCGLRZPLwsMnlsyn2ZnMn5V12cKIRy20B90ZYrps7oJAB5IRjvMurt1emZ70 UmM5Z1BG5/XJ8eTh3b/MOR7a+0p3q9UhvGtAEYnY62ZTzt54Q0UDGP2uffjOPLgFPII9byIzlGI k/kW3LQI6crMIyqBap/PT99ym2b0nOxtTvzoua0PSdPgYXEdWOkaYfS5hPu1QpKaoHlw+pma0ju xzOc6wECXljsoQktUGZ/rGE7XilszQKfOo9twE53b9pvFRUgqXjQ50uqMH7gqtzf0Q== X-Received: by 2002:a05:600c:1987:b0:436:faf1:9da with SMTP id 5b1f17b1804b1-438913c68ebmr397739205e9.2.1738072495662; Tue, 28 Jan 2025 05:54:55 -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-438bd507dc9sm172973355e9.19.2025.01.28.05.54.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Jan 2025 05:54:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Paolo Bonzini , Laurent Vivier , Thomas Huth , Hyman Huang , Phil Dennis-Jordan , Peter Xu , Akihiko Odaki , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 5/7] tests/qtest/migration: Add MigrationTestEnv::has_hvf field Date: Tue, 28 Jan 2025 14:54:27 +0100 Message-ID: <20250128135429.8500-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250128135429.8500-1-philmd@linaro.org> References: <20250128135429.8500-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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 Allow tests to tune their parameters when running on HVF. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Fabiano Rosas Reviewed-by: Richard Henderson --- tests/qtest/migration/framework.h | 1 + tests/qtest/migration/framework.c | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/qtest/migration/framework.h b/tests/qtest/migration/framework.h index 7991ee56b6f..76bd4dc1a95 100644 --- a/tests/qtest/migration/framework.h +++ b/tests/qtest/migration/framework.h @@ -19,6 +19,7 @@ typedef struct MigrationTestEnv { bool has_kvm; + bool has_hvf; bool has_tcg; bool has_uffd; bool uffd_feature_thread_id; diff --git a/tests/qtest/migration/framework.c b/tests/qtest/migration/framework.c index e567296b014..5629b8ba4e3 100644 --- a/tests/qtest/migration/framework.c +++ b/tests/qtest/migration/framework.c @@ -945,6 +945,7 @@ MigrationTestEnv *migration_get_env(void) env->arch = qtest_get_arch(); env->has_kvm = qtest_has_accel("kvm"); + env->has_hvf = qtest_has_accel("hvf"); env->has_tcg = qtest_has_accel("tcg"); if (!env->has_tcg && !env->has_kvm) {