From patchwork Fri Oct 25 06:36:10 2019 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: 177620 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3235078ill; Thu, 24 Oct 2019 23:41:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWzKNzz3EPvueabtGxvkYhh5VLhdxsrw7fSDLuCe0Y7JobT9sJDejDJawZr36OMFbgx8ED X-Received: by 2002:a50:8969:: with SMTP id f38mr2110149edf.211.1571985711796; Thu, 24 Oct 2019 23:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571985711; cv=none; d=google.com; s=arc-20160816; b=hjYfzCB9azxKzCRo8R6y2J7Mgt1IT1gK1YEcIZZPQVn99nHgUPNKq5Sj3wbQ6NxdXN pPtk+KOK1z/AcyKYMuaSo1gjc/pJAQE5nqlg0u5yFPUibl5/sSiGHE4gSOQjqzoTA9pz LCPdEfV1H5Tbc/joCemAtXkE52/6JMEKaFxMit2a2qMtj8GfChDTPB1D6dUbBZK/34tU 9fRfE0sxFxMUlTbRcTvvql0vp7oUycBqktozwgb3j12F2PH7tIEtGkJProD1lb49I7zN uI2NeKiRhzTIipjfv25Oj7jOYgCflJVM5SNaV3KQxAavebcCDSSnplSHJX3OA65l4A68 8r/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=7lImME4yU8lQjHY3wQXqs44DBkoFK3uSqvZ6R7jQMW0=; b=pu4QfvN4bNRSoO32OMuqXAevDY0lanDLy8PR0T/xMvD8adIcFSlKPO/5HVcc8hXEtW TYY/UPqpmNZEW5+iq+3yq0b/AXT/J7DtjY3SDsKPyeg9SJT0D7rA1+5ND1DHJXNIdTcx EOcA72hzjzxJUIRaVEfhIiLGoJbgcuYLvb3zW1z1itqmqAW/qmEzlyULhvcGdEz20Cvm NZv860Og5+71An/NLy1SEgCbKOvWlv47Nr3MT0i51CvV1WJQyLaWKa5uoN4Vr1Wdun9b nNJ8yjx86e1QeFXp6gXw/IHHIqhxmFpGG6u66DSgxolvzb2LR2HUPUF8HQ8FtOQRohgb LbfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=gdwQ7JDc; 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=fail (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 gz25si689272ejb.81.2019.10.24.23.41.51 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Oct 2019 23:41:51 -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=fail header.i=@linaro.org header.s=google header.b=gdwQ7JDc; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNtIE-0004t2-CD for patch@linaro.org; Fri, 25 Oct 2019 02:41:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35434) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNtDv-000347-8P for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:37:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNtDu-0008Nt-8e for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:37:23 -0400 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:50775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNtDu-0008NU-2Q for qemu-devel@nongnu.org; Fri, 25 Oct 2019 02:37:22 -0400 Received: by mail-wm1-x343.google.com with SMTP id 11so770392wmk.0 for ; Thu, 24 Oct 2019 23:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7lImME4yU8lQjHY3wQXqs44DBkoFK3uSqvZ6R7jQMW0=; b=gdwQ7JDcWrA0gpmlZx20c6JON2HQJ+vy1mn/tvvxbCuO0QfvZblL0ezEI/fbMZv6xI 2pOK3C6IqYZv8POQeR1ax/4kzYZ19IcuywSaqBqOwUz5uaFj+i26O2efRFBkOx1w7JCA lPgYhPVjYCzOqDMSrnqyLTpia9f0ufZyEjtaoJI4GljwaHWvrbQkczfb490Uw412EkYi PZGeyOFg4z1ILZ1lMBQg+NFcQvQtwDgHtANFMvG70szuYy8xdGKSpFU8z+ACeaUGkzKQ a8HUnfruIPgRl18eYe6JgJRgJyZDK2zEbTGKQtzbn6Kcjjm8Yi7KIULB1Tz/I1YDAPUK SW4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7lImME4yU8lQjHY3wQXqs44DBkoFK3uSqvZ6R7jQMW0=; b=J0KsjES6dqLLBDZi4SOZYCcXZ5Iwn9Al/QWfRBNUqzOgH99EGMmvtZ+9rPRtKz+n5y XUcyBGd8D8vBTMlCGVoNdpTIaO9grz1kNIrXSgbVRiYND6wMXkCDfRA0jvN1xBl9mzj9 aMjoDHh4vFwTTX0wwZwzya8DS2w7wdl7Kl1T0+MDB79oFec86zvQ1VrTowj0WwxWbmT9 sKcTp4kwIEwCFUj69XfX0W0MI9H0l7YRDO1UvTs+JPbDOVfEkNNmeuDyfUp77uXH4zqC eAIPQVAakwoVkq0BoRWbrZGL1Xepwa3RmWSqe9RrJw8hGtmy95OQ3Lx7f56N2N79DPCP 7aCA== X-Gm-Message-State: APjAAAXOCUQI8oXDIBbjWsCj4lj7+zxYw9vr5/6vLfH6JWBEJIFTpEB0 o2wcB3H2dUThAvaSQItv8RZfdQ== X-Received: by 2002:a1c:610b:: with SMTP id v11mr1823629wmb.156.1571985440911; Thu, 24 Oct 2019 23:37:20 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f20sm1069070wmb.6.2019.10.24.23.37.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 23:37:20 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9BE3B1FF9A; Fri, 25 Oct 2019 07:37:14 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL v2 10/73] tests/vm: Let subclasses disable IPv6 Date: Fri, 25 Oct 2019 07:36:10 +0100 Message-Id: <20191025063713.23374-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191025063713.23374-1-alex.bennee@linaro.org> References: <20191025063713.23374-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Thomas Huth , Eduardo Habkost , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Eduardo Habkost The mechanism will be used to work around issues related to IPv6 on the netbsd image builder. Signed-off-by: Eduardo Habkost Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20191018181705.17957-3-ehabkost@redhat.com> Signed-off-by: Alex Bennée -- 2.20.1 diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 4921e47f9f2..59bd1d31fbe 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -57,6 +57,8 @@ class BaseVM(object): arch = "#arch" # command to halt the guest, can be overridden by subclasses poweroff = "poweroff" + # enable IPv6 networking + ipv6 = True def __init__(self, debug=False, vcpus=None): self._guest = None self._tmpdir = os.path.realpath(tempfile.mkdtemp(prefix="vm-test-", @@ -81,7 +83,8 @@ class BaseVM(object): self._args = [ \ "-nodefaults", "-m", "4G", "-cpu", "max", - "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22", + "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22" + + (",ipv6=no" if not self.ipv6 else ""), "-device", "virtio-net-pci,netdev=vnet", "-vnc", "127.0.0.1:0,to=20"] if vcpus and vcpus > 1: