From patchwork Thu Oct 24 10:22:34 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: 177405 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp2006454ill; Thu, 24 Oct 2019 03:52:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKTNDy9nrvLubcXalRUUUlxxwVjnIq/9TG5iG3lE1h1vlBOJfWaNSVkOioOToR+H30vyqA X-Received: by 2002:a17:906:6011:: with SMTP id o17mr36088032ejj.172.1571914364550; Thu, 24 Oct 2019 03:52:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571914364; cv=none; d=google.com; s=arc-20160816; b=bcHuDiWyi87/IMerEIAKJFhPv0zEgAN27FMl2gV8aBSFF5x+dILDTLw6vT0NfGKJcp OL7zm3ezVdo2y9uogts/vp2+aYyHErHJJ8qhtSrFAcUYi7TnooeuxgNsAepxj5oCNIgN 7xZsSCvKfVlorQrcLdJmj9CpxRPxmDlswYYC68Daw+8EkWKOegT6AwWzuxWi/2xTyQF9 1YTS4G1M/HFN/UWxsnQhHuK9QrJIDfzwAGEWeWPvHNjR+S1txmJUNrKONOtfYbTr2Pj4 q2+oPsgbYMdUF0GGDlW+IoSMGbUKK8Ugl18dbTB6ISmpgIN4ekDaf37T3sUVR+SNnYIe g/vg== 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=LCT1K/2OiXLK+sTXPCr/NET3LvI/G1FjiB1V/FI9VtrPX6NmKEtaiBerdeGm0/+lDO 25IJOS7xEVlJ9H0c4/I7yghurHX8KdqnNAOtKFmunYI/Kif3uNkp+49jowhcVg1oiGQl CnL0pT+aJCirtTRthWqeHH9d+0qL3zpHssGW4K7Umf1FoLEy41pdchPeWC6U8WSyKGKw MDHzLs5KxoYLo0A9mwdB3cmd7wnYmwEhatP0np4A8Gu1ZMX0SVNwYVn+OoUjvyQWIkd+ ylLoZkXJ9epunHHvIUu6ao7kjBoPpLC1uTWlp2OMRYLUrD0Eaw8Bd3I7077Aeika9u75 1rZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IynQ4FYD; 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 p16si14873575ejj.360.2019.10.24.03.52.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Oct 2019 03:52:44 -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=IynQ4FYD; 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]:38590 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNajS-0002Yr-Vp for patch@linaro.org; Thu, 24 Oct 2019 06:52:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55276) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNaOy-0000fm-Cc for qemu-devel@nongnu.org; Thu, 24 Oct 2019 06:31:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNaOx-0007o8-56 for qemu-devel@nongnu.org; Thu, 24 Oct 2019 06:31:32 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:44278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNaOw-0007nk-UU for qemu-devel@nongnu.org; Thu, 24 Oct 2019 06:31:31 -0400 Received: by mail-wr1-x432.google.com with SMTP id z11so2088849wro.11 for ; Thu, 24 Oct 2019 03:31:30 -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=IynQ4FYDONnMsz5gtrp5ovvxHbeVxB7m8vuB+mf4wn5MzvMIZxYCzsmk9MhK9kQGr9 ZUOonUGnATWnZ0xgR5uADH7Q9tG2VWvZnXqkF2gselrAzZ4uviTsFB4vBHgbbvdHfOed hwkiqVe2Om2PVTqonOkOYdiNqQ7c/Ql7Ddcr7xlQrGJEdwnkYVALxyVsn/U4Bp5kJv4E BdFWuWZNUYidrX+YqNSXwng995edJEA7ax5j8u1Bw5zc9NXU5qC61jleN6zB6hKCIJu/ /+3Z2PNj9jLZv5e+5k+a04QvmQlUOHx/4mJF3TLhEZrunF640NnzTyuS4pUOy0+CWtz8 0Uew== 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=gfCKZbUUnOCYodVCm+DdQfr8+CIYnb4zfoCliCJkv3672yK6TMKuFVMVdl0xdfCwff TdRMsJgUlTvpQcNX/hRZqCJkYi8CSvU5RCCiZesjus4FqFN2E2p3xZ9M8LDH4k8VTPZI a/hmB/VwxEk+QIPWXFZqiUIfby9J6SS4+ySjIexujM2R3GZsE1y6jo5LyAWf+Iy9SYFf 45m1RWwhnXVdKDq2rK502pNlBOHAh7S0G/iG5aQjOQSqe1eQvV6WRP2gcRNUDwLR+2HN OtjxQa1ThX80RcbmcIYclRPxDoruUdBoCaTApfYkJYNQAu2cGEGQYML9W79MshC6UaBp Qh/w== X-Gm-Message-State: APjAAAWGW4X3X4k0T7rn2JbgmZ1ZURHCJU1RBVz+1DyM0payperddL95 3CN6MGS2Ocv7j9QMLWJHLgMBFQ== X-Received: by 2002:a5d:49cf:: with SMTP id t15mr3135437wrs.63.1571913089602; Thu, 24 Oct 2019 03:31:29 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q14sm28691194wre.27.2019.10.24.03.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 03:31:27 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 568D11FF9B; Thu, 24 Oct 2019 11:22:41 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v2 11/17] tests/vm: Let subclasses disable IPv6 Date: Thu, 24 Oct 2019 11:22:34 +0100 Message-Id: <20191024102240.2778-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191024102240.2778-1-alex.bennee@linaro.org> References: <20191024102240.2778-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::432 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: