From patchwork Thu Jan 19 10:05:37 2023 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: 644059 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp128031pvb; Thu, 19 Jan 2023 02:16:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRjcOZ2bccWeaaBbosvTLJh3EEJeHR7sgHgcvMadipEBV8Xmmm1rYSXOOhtyVakS0CN9mW X-Received: by 2002:a05:6214:4413:b0:535:1c41:35d9 with SMTP id oj19-20020a056214441300b005351c4135d9mr15718901qvb.18.1674123406166; Thu, 19 Jan 2023 02:16:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674123406; cv=none; d=google.com; s=arc-20160816; b=sqoOPrsTSNnr/3K5bUpHZX9tZrxoZH5IVMgfimuYXpfLxI2c5wRJJ1tmnaCYNPb2fz JE4SupSzv3UAjz83twemGKWtxgmfq2cOwQAEuwQ+WqUJmLNOPN9H9sCs2su/nIlfQEWq Xo+JC93b0LmGPSfjBG7voTq4vCT8kHXn+bmcDSFopo5nViMRY9uWODimgTa/X4Qjb0eB B4nMJds49pnCT8BHcHRMCGDIq6Xgt0oY0PN2f/uvOCD7FYWfs+iTrWxFcjnvWpx2q/pn cKrEHkZVDcnuuBClPGVDWwOJj2FIf5lwqPfCGEW3RBYn90HE/vTrDbjx3nVaRE0+Vr5V vmVw== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tLwGuTl8bFyv/J/EkEe4pO8+RMjvvODUvba2H4Ltn/w=; b=SymtTFvcdkFYjMVl1j4yJlGyNLFUAjjL9s9FqnMjnHEmoS8dzXgqZtQX+BkhmP8LbI 1Lf0U3AeV4AxIoy6moUfjGHkDlVAaT/tXTfl9je4Z8NgVoU5N0jQsghBwp77nKCEVFzu C+E2CNiC+yRClpwsoMBXYfj5NiiacplBmPRwatOvAMr0fzeSYuvg1ft35qQ5GcLwrbvv 86joQ6YuvVYs5Qzgc97uIpntCLDAP+h8TTh6vmo5JcwC29JnJ5AlRUir4RP9AKfLJIGF GEZTp0W7hdd3n9d/2zzfHzNtX5nyeYmrT109B6eaAIkzWJ611SagHtrCvhLrewYIpxDm AIXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=epe6N7EK; 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 kj2-20020a056214528200b00531b8525701si20699390qvb.371.2023.01.19.02.16.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Jan 2023 02:16:46 -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=epe6N7EK; 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 1pIRou-0004ai-Bk; Thu, 19 Jan 2023 05:06:56 -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 1pIRoN-00047h-Up for qemu-devel@nongnu.org; Thu, 19 Jan 2023 05:06:27 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pIRoM-0005Iv-Bx for qemu-devel@nongnu.org; Thu, 19 Jan 2023 05:06:23 -0500 Received: by mail-wr1-x42d.google.com with SMTP id b5so1363098wrn.0 for ; Thu, 19 Jan 2023 02:06:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=tLwGuTl8bFyv/J/EkEe4pO8+RMjvvODUvba2H4Ltn/w=; b=epe6N7EKDuPqfmzoHL/51kuAnQZSSLwXtAc7yW8a4O28igvEgHUViuzZ5DvTZYYld4 NeUkksS6L553DGeBoqLqvv9gRh5De7zXNy18tc/YWHdtwkFerkX80yuc979CB6c5GrEW qvl4rXFPyMeof/rb9y4St5cpiSWW1FCdJm+T2gYUzbzYybOa1xd1dR/33chXEEa87eZt CPZFSyKtNi42ijKA4mKYttHg5FEqFzasqV7rOIhVx2zVdKbK8bd0xTf9K/KGa3yRfre7 eMgDKYvqRKz1TCIsONTMW7LESzDuuuWzLyByHXIc2F8ds54XhkEL9bqyGcpv9mc8lElZ MJ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=tLwGuTl8bFyv/J/EkEe4pO8+RMjvvODUvba2H4Ltn/w=; b=oyT05RvWNz9n26zX4G7lerBKSOml+NJht5dR++oPbt04fJR5dvsr/9Mnfy+5WrsUwt 2Db/5Tn93W0YeuzaFjGu4ySsB0Q0nj8THN5xcxXPjLOAlYpbq2RBYwLcR1ySTM6OK77s Xb4Kkjcp+1wytier4ztl4pIUzeDUJQ5N0NFwLSD9lDv25/JPwriHl4mUSdl2bpMyxA02 mns9PlAsYa/5af7OCRk4Q2eXu4ju/H3NFtVmNAHqnH6wRC1Cplgi383OIFujfQgvl7iW MAUeccsB/f3UelTSzrldYYSZWwI51vXpz1FAKLsJwbIpqcGgIDvRoGkA6l4dXMDMXSiP Ywpg== X-Gm-Message-State: AFqh2krjRMaXkkLoIZK0AbWu1UzZxqOZWbTwl+npul5+DdAA6uqcAwCK ldmICvqGjlzj6Hup/tfjZOrQGpnaIFWz2oKX X-Received: by 2002:a5d:6e42:0:b0:2bd:fcd3:44c7 with SMTP id j2-20020a5d6e42000000b002bdfcd344c7mr8542787wrz.29.1674122779596; Thu, 19 Jan 2023 02:06:19 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id o15-20020a5d62cf000000b002bbedd60a9asm27608453wrv.77.2023.01.19.02.06.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Jan 2023 02:06:19 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Laurent Vivier , Fabiano Rosas , Juan Quintela , "Dr. David Alan Gilbert" , Thomas Huth , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= Subject: [PATCH 8/8] tests/qtest/migration-test: Allow running with HVF Date: Thu, 19 Jan 2023 11:05:37 +0100 Message-Id: <20230119100537.5114-9-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230119100537.5114-1-philmd@linaro.org> References: <20230119100537.5114-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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=unavailable 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 Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/migration-test.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index 1e7f1ea162..7a0fcfb81d 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -47,6 +47,7 @@ unsigned start_address; unsigned end_address; static bool has_tcg; static bool has_kvm; +static bool has_hvf; static bool uffd_feature_thread_id; /* @@ -614,6 +615,9 @@ static int test_migrate_start(QTestState **from, QTestState **to, args->use_dirty_ring ? ",dirty-ring-size=4096" : ""); } + if (has_hvf) { + g_string_append(cmd_common, "-accel hvf "); + } bootpath = g_strdup_printf("%s/bootsect", tmpfs); if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { @@ -2472,6 +2476,7 @@ int main(int argc, char **argv) has_tcg = qtest_has_accel("tcg"); has_kvm = qtest_has_accel("kvm"); + has_hvf = qtest_has_accel("hvf"); g_test_init(&argc, &argv, NULL);