From patchwork Tue Aug 13 20:23:22 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: 818846 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp430237wrm; Tue, 13 Aug 2024 13:24:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUsTHJoqCfCo0xlg4RH+Vp96sTfl9zOO2fUUm/fn1SrL0EKsj6TlSgCVob6Qcum0hFPHJws5p4tUag8bXCT/Ps7 X-Google-Smtp-Source: AGHT+IHLHohUFgHTMXYcQHg6SQjySB7tW9pZm5McXKS6RAnDfzkZp2SEKYtZOo8EV7try+1GBVhY X-Received: by 2002:a05:620a:3723:b0:79c:b8c:8e1f with SMTP id af79cd13be357-7a4ee3abb25mr99586485a.48.1723580682911; Tue, 13 Aug 2024 13:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723580682; cv=none; d=google.com; s=arc-20160816; b=k6RMZxWV3WzI2a5h2qLQsY+H3bAMXPxjr1K1Q23kjkE+uSuZY2r/P1hwQmVNMW2pKH pi8mJCM4dMMceO7dvb6dDMFHWR4d0e3YmDgPZyZGP4P9yOj+PTVJmpnAUbUFU7RKRKSx GGpY2HjEvm3kKDowKRp0yPbv4P8Fo/gSiGWrU2t2J5mF6iBSWnlj4SnmA+dSG1yckEJw k4aaoqJuJ2j14BXZMXVISuagEOeZjXvclWB6vq/HgZ2M9pT7gY2u1Wab4RfhPJUgOToU 3ivrBSVTfdEgzOMClvj8e8Xmwg09o9vGxxNwr2leYLw2Qzgfc9buY687FLbftvHG25Mq xhgQ== 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=adw5jgjlcSpxCkpQ0j60omHvD1nnW2G6iyfdsNi8jbw=; fh=2Uj2tGQCTXopsDH26iMBTwdsgctwEBjqGya0Hcf7oYs=; b=CSlz2CFKmyT14NTAtFxyV4njtsVagNbaHsISJRDuWotOqfJ3cEvZ8DtxdnlxrNn39V r10/ho06dy1JuxqS1A6NzF4utCa7g7ZyL/C0hAmVwdqdQKNeTYBMK6hdlvKuxggSYURv jUfeF/RLsVdPsapCtICHR65UMmjWpTJ05iq3ROBgDzGUEEKscDnD1zOTRrmOlWAJfnBd P5v0y6szs+VjMJkf4AF8Rx9v1POOyRd2w+CXPJ/HnHSW7jlLf5CYdAh5HgD7y2nG0mMe URpB7hZO4gHcOuAiv/Mt55z8h3FaqVNvWK31EC63j5X/x8OAgKtY8Xu6+WOItE73gARe xcwQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="MYkkzsH/"; 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 af79cd13be357-7a4c7df5b3bsi905211985a.255.2024.08.13.13.24.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Aug 2024 13:24:42 -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="MYkkzsH/"; 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 1sdy49-0007PM-VN; Tue, 13 Aug 2024 16:24:25 -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 1sdy3y-0006SU-Qx for qemu-devel@nongnu.org; Tue, 13 Aug 2024 16:24:16 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdy3W-0006JO-KE for qemu-devel@nongnu.org; Tue, 13 Aug 2024 16:24:13 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-428e3129851so43533685e9.3 for ; Tue, 13 Aug 2024 13:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723580624; x=1724185424; 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=adw5jgjlcSpxCkpQ0j60omHvD1nnW2G6iyfdsNi8jbw=; b=MYkkzsH/E/Qb2UFxTysypbI9nFuNmx9kCmmoleBeS09BLk4xtYylR7RdOcxO6jhZrD SuKU6ueXJMk1se/OHjjZMQJniwHVAedEYJwsiJKxMq2fAloJzvr8Br4ex9PzH0ZD6hTQ I2DRfi1bI6MbIDJF7TrsAioJVGSqNr9W5JlLFuOSC3bujZZSvaOkB0t0R23q7c5kzUrg cDiTtn6+0I2J4J4ZsmO9qtb+Dn1KHCUrR/YgBGXIbqquyeWeAYCRPrwDckPzrHLm8eTZ Y4unkdv17TC05RcFJzoOht2V2LZWJD4EjU+z5vvPMf02sitHtr2zGqsIB1h8vkKRb/VL p9jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723580624; x=1724185424; 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=adw5jgjlcSpxCkpQ0j60omHvD1nnW2G6iyfdsNi8jbw=; b=RzWTBCXxsO6KATMCqRIrXXmRlkdUld+yBHE5bf48TR2R8dIkMmEV787p3mJJpM0ahB Ji9tE3826+h7uhNeIVAO1UwjssmbF3YgPxJYeMywJr0rdlvVUPQVxiU65ED+5eOvhwaJ km9KmAbHL+2EA6p1+Fq0duX5vrkiYK5RPW6DgFESEHqAog2GBuCxohqul/90BGK1gzcD ARendNhQgowRAvi58It58vcm4TLSSQWL3fuzVw23v64OqjNh9yquSN03voULk71HRoVL X+iJNC28iX3VsGSjFp0cUlYigJaA/Ten7p0zpmJfMjITWNTFTSkK6clbEKAj+CozkOPt GlFA== X-Gm-Message-State: AOJu0YxbtO89/pNcu7Er0MM5qheKMcYajmzxYfOh+RyMTaP0Fs5DXIM9 bB101cbFDtl6zND/0BGD74bpcfkcGW8IiXg0TY9tsWPZ7GG5+ywZaDdRYmQ8pdM= X-Received: by 2002:a05:600c:1f13:b0:427:fa39:b0db with SMTP id 5b1f17b1804b1-429dd264962mr4344725e9.27.1723580624219; Tue, 13 Aug 2024 13:23:44 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-429c750e57fsm151122575e9.12.2024.08.13.13.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 13:23:38 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BEC405FE27; Tue, 13 Aug 2024 21:23:30 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Alistair Francis , Michael Roth , Palmer Dabbelt , Mahmoud Mandour , Pavel Dovgalyuk , Yoshinori Sato , Weiwei Li , Eduardo Habkost , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Markus Armbruster , David Hildenbrand , Beraldo Leal , Liu Zhiwei , Eric Auger , Song Gao , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, Peter Xu , Jiri Pirko , Eric Blake , Fabiano Rosas , qemu-s390x@nongnu.org, Peter Maydell , "Michael S. Tsirkin" , Daniel Henrique Barboza , John Snow , Alexandre Iooss , Konstantin Kostiuk , Pierrick Bouvier , Cleber Rosa , Ilya Leoshkevich , qemu-riscv@nongnu.org, Thomas Huth , Paolo Bonzini , Richard Henderson , Jason Wang , Bin Meng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Nicholas Piggin Subject: [PATCH v2 14/21] tests/avocado: replay_kernel.py add x86-64 q35 machine test Date: Tue, 13 Aug 2024 21:23:22 +0100 Message-Id: <20240813202329.1237572-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240813202329.1237572-1-alex.bennee@linaro.org> References: <20240813202329.1237572-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.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 From: Nicholas Piggin The x86-64 pc machine is flaky with record/replay, but q35 is more stable. Add a q35 test to replay_kernel.py. Reviewed-by: Alex Bennée Tested-by: Alex Bennée Signed-off-by: Nicholas Piggin Message-Id: <20240813050638.446172-7-npiggin@gmail.com> Signed-off-by: Alex Bennée --- tests/avocado/replay_kernel.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py index a668af9d36..e22c200a36 100644 --- a/tests/avocado/replay_kernel.py +++ b/tests/avocado/replay_kernel.py @@ -110,7 +110,7 @@ def test_i386_pc(self): self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5) # See https://gitlab.com/qemu-project/qemu/-/issues/2094 - @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck') + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'pc machine is unstable with replay') def test_x86_64_pc(self): """ :avocado: tags=arch:x86_64 @@ -128,6 +128,22 @@ def test_x86_64_pc(self): self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5) + def test_x86_64_q35(self): + """ + :avocado: tags=arch:x86_64 + :avocado: tags=machine:q35 + """ + kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora' + '/linux/releases/29/Everything/x86_64/os/images/pxeboot' + '/vmlinuz') + kernel_hash = '23bebd2680757891cf7adedb033532163a792495' + kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) + + kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0' + console_pattern = 'VFS: Cannot open root device' + + self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5) + def test_mips_malta(self): """ :avocado: tags=arch:mips