From patchwork Fri Jan 12 11:04:15 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: 762191 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2843281wrz; Fri, 12 Jan 2024 03:05:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiPTUt9i/UNrRbAL+i5gtOmagf7cBbgjkceZIV3APGncJwHt/+THrRO9EFqJkYZkoBxTyo X-Received: by 2002:a05:620a:983:b0:783:e82:6cd3 with SMTP id x3-20020a05620a098300b007830e826cd3mr1325129qkx.153.1705057524736; Fri, 12 Jan 2024 03:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705057524; cv=none; d=google.com; s=arc-20160816; b=mPVDUBVIfMAfTE/jcI7UvHab8JdngUCOOyk1hbCcrOjW6jbZPlpAYuNy21c8aMe4He TTyNVOR6r32ptx2pQ+5qsz4huIhJvJ8xnO4mOi6IZxj4gqtPhWfol7dKJpA9tesnDRFP 9Ueqa99XGc7ULKkgcOHNro3nfqU/e8ZxjkqUHuET+jAHxgA3vMeZGfQbncp7gse5pBkd aLcnR9DdY159U83eYhhtR/N1kMukSiAPdSXhFSIOGbE4WdWI8HAza5zM5TJdr+2WnHrV 4vX6OtA83S8deq8Yk78M/oNMotLR2FCWXq2GxzJshcHcKoJPfJD7sX4MOUb4I9AzSP7z Jcog== 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=PuBv+tjjYyX/4wybca/v00Vtc3kwStjz3AWoQ1ArRxc=; fh=BJ5Cja4eMMbPK0/aPO04zpMD0RBZP47NvTDCIhGoiO8=; b=LfrCWWU0edEYdFbEF1fb69sY0hJU8IawUHdAKp26qQtpR6QnrfPKVizeWv3oIJgcJT 4XNUePnAlyfu3uhc6P1+BfMyegIFz/jPCoVUxSh+dvFoAyfdlnhkgPLlnYC+xEQaN1JC 9fVdV5Ues8cZCuuic3AaGcey5Tu4iiqqGDWLYVE9VyH1R4dhKN1fp2O3/JhKlV9qv5up 3Q1TTkA+wffn+0zjIAHwKaBZL3fh0ZlSiXu0mDshVvOMvmbPO7zEmW577qJw8hBf5sFF UbPSai16svgZYR2MgYC2BTLPc8C+RtmaSTAz8hJVv5ro0jKnLy5CIUfqzRZq9pgkV9Wj N2+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wyq/oX6e"; 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 h5-20020a05620a13e500b007812e5a9151si2600314qkl.549.2024.01.12.03.05.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jan 2024 03:05:24 -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="wyq/oX6e"; 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 1rOFLE-0005fR-Ec; Fri, 12 Jan 2024 06:04:48 -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 1rOFLA-0005YZ-Le for qemu-devel@nongnu.org; Fri, 12 Jan 2024 06:04:44 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOFL7-0008Tz-E3 for qemu-devel@nongnu.org; Fri, 12 Jan 2024 06:04:44 -0500 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-33765009941so4991698f8f.3 for ; Fri, 12 Jan 2024 03:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705057478; x=1705662278; 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=PuBv+tjjYyX/4wybca/v00Vtc3kwStjz3AWoQ1ArRxc=; b=wyq/oX6eKbho+QbKQ1rxwnncg/pI+1uD5liFjVTRg5cCy+NGazvHmBGXKSP5EcXjpM UeAvaeCsupZ4V4ww0SDHL2dfSjKxYpEMqn+7z7n24JYlWYl/MbnREqdZjaWxKdiOkAm1 g+y+SAZj2vVwnYzknLT0YxZcFrUq6audBUAlBczykdkSrdyaIXYierXnAtO3H5DKCNyk x0VxhmVUgYkC6esrr8Hm3rx9ISxHetudTJG20xe+pJGFKZe/bRPZlfPlimxot6f9liQL yKnRYOUDa9IITL9JAmyHvKHixvj77mA92L58np06rFuoLrQrCNAZDwX0Pw230SfXRa5S SdDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705057478; x=1705662278; 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=PuBv+tjjYyX/4wybca/v00Vtc3kwStjz3AWoQ1ArRxc=; b=AbFN7C5NRUUQffIVs5iMGr0U2uwbZOOWWrKTuxWiQyoy6vinkFGwSa2H/wzbOzWIYg s0+rZuIrlsQ3LUql0szI2HSSCMleoociNd3KiBW+ctfbZpZumUsdiT4ZwJcpn9XxAaJ0 Fw4uns/imt4nzIc/+3B6vUijOU3oBqeNbWipuE6hEFVJ9qcQjDk+Yj1g4a8/zCDOGkIz UDTcQzTQBW1KZLCkD0cw0OVXiIa6PkJmefQTFtUlL1jEn6oVgbL3TfM2o5nvFo748e21 RQOsdm0Hc/vIcw/+FeRQPOEwVymIcDmFnVFI8FFx3UfOueyxHtzm7l/ufHiCxI8Jmg4x mIKw== X-Gm-Message-State: AOJu0Yyj70jSYsrmpQRm0mCXC7N6pqLlPq3BLi4LlQ4Mipg5jejdeo6J 91GaLB/XareKzZAWgP1kf+fe7XZoxQV5Mw== X-Received: by 2002:a5d:65c7:0:b0:337:767f:c989 with SMTP id e7-20020a5d65c7000000b00337767fc989mr636755wrw.12.1705057478759; Fri, 12 Jan 2024 03:04:38 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s27-20020adfa29b000000b003366cf8bda4sm3566784wra.41.2024.01.12.03.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 03:04:35 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 3C0005F7AE; Fri, 12 Jan 2024 11:04:35 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philipp?= =?utf-8?q?e_Mathieu-Daud=C3=A9?= , David Woodhouse , Paul Durrant , Cleber Rosa , Wainer dos Santos Moschetta , Beraldo Leal , Paolo Bonzini , kvm@vger.kernel.org (open list:Overall KVM CPUs) Subject: [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest Date: Fri, 12 Jan 2024 11:04:15 +0000 Message-Id: <20240112110435.3801068-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240112110435.3801068-1-alex.bennee@linaro.org> References: <20240112110435.3801068-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.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 This ensures the rootfs is never permanently changed as we don't need persistence between tests anyway. Message-Id: <20240103173349.398526-3-alex.bennee@linaro.org> Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/avocado/kvm_xen_guest.py b/tests/avocado/kvm_xen_guest.py index 5391283113e..f8cb458d5db 100644 --- a/tests/avocado/kvm_xen_guest.py +++ b/tests/avocado/kvm_xen_guest.py @@ -59,7 +59,7 @@ def common_vm_setup(self): def run_and_check(self): self.vm.add_args('-kernel', self.kernel_path, '-append', self.kernel_params, - '-drive', f"file={self.rootfs},if=none,format=raw,id=drv0", + '-drive', f"file={self.rootfs},if=none,snapshot=on,format=raw,id=drv0", '-device', 'xen-disk,drive=drv0,vdev=xvda', '-device', 'virtio-net-pci,netdev=unet', '-netdev', 'user,id=unet,hostfwd=:127.0.0.1:0-:22')