From patchwork Tue Oct 22 19:16:56 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: 177217 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp5298834ill; Tue, 22 Oct 2019 12:23:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVSxiIX4pTK2DitXz+GZfhM8dQ9qGH5+IqouGvVfUbY4xLB0dL2enTvlicMfIMNdvmjSju X-Received: by 2002:aa7:d955:: with SMTP id l21mr24197205eds.179.1571772222127; Tue, 22 Oct 2019 12:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571772222; cv=none; d=google.com; s=arc-20160816; b=kjdp//iJnSBtfGXBPpa1loNjITpdrC+Zd77UFEuzJALdONs5a18gZvFUfyi+0Q/98u zLXKDrdShc1FB1l3TilYvQrw7uuoXTuw1eypviIDpnwzHf9FZQuo/Ni/NXML3AFe8pK9 cSz+eaNh2kqNLov27lP6Gp7jDtEDNq2So0PjtWW26JzWlWaAMxxm6+ZpDKO9TIhELhq3 xI22rMQF6MN8yflhDQp2l/KrAsCYjvHJx8HfdxxcboN8/AapxdltSgWzOUQc9L8a1h20 I5uVHZKyVJicq5qQOPvgIS/lgCeNmgGM3OsvumQIZVDwPqk/Mw1lS6582Hrqh/n0HaIL MztA== 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=vLJ2YSmOllt3Q5f6C9bffaEhtm/oTDIY5U5spBdjavA=; b=MgAnWKqeMvl8yXicraqLJUKwCjEcjbEGNot9bj8BbMJcA0E8Ysen/SNpSi7pacIb30 RRu7VD2HS1tbUawaEvfsAwAntVyiNAXVUtF9eOL0s7688T7zeaVo/0Z5yhRJ9VG04XyE OhQwm9xD8uU6PPR33dAI8GTyhwRjmmyoNABFYmamD0faE94jOhUbDYeVZIMgqeDPg61x JKy9lhNd3iHmqYi9Z5O8omXBnp3NvoQE8CvWAQtsWSfG7A8CCkeTdUG71HixgdhSVW/U IcNyddkSak0ckObUI0VvSnHK7c5wBn0kjELJVaa+oVOePYbUf34449jI/kS8NDnpHnj+ BU8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GreiRrDr; 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 h52si8523941eda.21.2019.10.22.12.23.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Oct 2019 12:23: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=fail header.i=@linaro.org header.s=google header.b=GreiRrDr; 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]:42094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMzkq-0001mo-Af for patch@linaro.org; Tue, 22 Oct 2019 15:23:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36379) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMzeg-0002RH-8Z for qemu-devel@nongnu.org; Tue, 22 Oct 2019 15:17:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMzee-0005MG-Vh for qemu-devel@nongnu.org; Tue, 22 Oct 2019 15:17:18 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:44858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMzee-0005Ku-Oi for qemu-devel@nongnu.org; Tue, 22 Oct 2019 15:17:16 -0400 Received: by mail-wr1-x434.google.com with SMTP id z9so19298818wrl.11 for ; Tue, 22 Oct 2019 12:17:16 -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=vLJ2YSmOllt3Q5f6C9bffaEhtm/oTDIY5U5spBdjavA=; b=GreiRrDrn1dTZvi+EVPtSfZ2qeMn4Q1x/1sQt24uacUchA3poE31MCxyLvMX2LalGH goenCo2T7vnVJBeIQ4wNLz3Uxf0wKVOnuZj34sTjXDoqbY2FWRza+Ksq1jeCDsQ2/ORR vj8qJN+5U5BVBoVvudHtmcRnfX7iHXLtYOE3NYd3pLb4AN9BXXxsRko4yeA5F3D7aTjT ZLDhrajPKcx84Lfu9nMx+8SE1E9JF5ewdmaYV+nHRYhqErJVBrlsW1L3AKn7bewTtWgV xtRbspt8Nn4PIBgecefaSOD5nnfR2pmUdYB6cnznEdybTG0GNwORqekj3N+CPxPqcCr4 bang== 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=vLJ2YSmOllt3Q5f6C9bffaEhtm/oTDIY5U5spBdjavA=; b=PDnB4uyQLTKxnlZQaAIEYOEBW32ilSB084YzDUrORXHikyWhJd/T6+eo8ea2PrRkbx 6BY4jnTXHDKOVVvmFMGoymQQFlwCQ647R9WaeLyswzyJrfsLYizuYQPwIjevTkW4VP61 poOT+wQgJ4H0u6K5erCLxmd8zo6zsCIAOh9WJfp+t9jw2RQZbxhW+4RfPhg4dv/HfLPW 2KHGxdbBtiRMWFj/FWqKIXDDVqHMYYIPAIEkpotMkAsbTqqIKhYD25G7NdMMEr7k4D6p RONX31HOzgV5fB0Mbxi/L9qI298/EGtQNGFnNLDjugy58+6A8TdOrq5K5cmbgjo3sJPL kE/w== X-Gm-Message-State: APjAAAXeo76oZQ/RbzORBKsOt6ItR2E3rLd20BslwZCV9HgC+we0f+4b SLOWHadxEWq/7hwQMEaUleYuhw== X-Received: by 2002:a5d:4003:: with SMTP id n3mr4596124wrp.95.1571771835578; Tue, 22 Oct 2019 12:17:15 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id e3sm17592237wme.39.2019.10.22.12.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 12:17:11 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 3CAC81FF9B; Tue, 22 Oct 2019 20:17:05 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 11/19] tests/vm: Let subclasses disable IPv6 Date: Tue, 22 Oct 2019 20:16:56 +0100 Message-Id: <20191022191704.6134-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191022191704.6134-1-alex.bennee@linaro.org> References: <20191022191704.6134-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::434 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@euphon.net, Thomas Huth , berrange@redhat.com, Eduardo Habkost , stefanb@linux.vnet.ibm.com, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , richard.henderson@linaro.org, f4bug@amsat.org, =?utf-8?q?Alex_Benn?= =?utf-8?b?w6ll?= , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net 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 --- tests/vm/basevm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 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: