From patchwork Fri May 29 20:34:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 187319 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp928203ilb; Fri, 29 May 2020 13:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS03FcbkuCHrKn1a3g6lw4MgPqL0mawhTqOy0OofMMLWvovgFi2oR9GmUTAF18KMxeVd58 X-Received: by 2002:a25:6c41:: with SMTP id h62mr16688458ybc.82.1590785002871; Fri, 29 May 2020 13:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590785002; cv=none; d=google.com; s=arc-20160816; b=rwTiQ+zAgf6l/ROX5XzZSS4gOfdf4+sMWTzc+Lbq1kETwknlzRjnYDBaqI0H/pGJs0 ubmyB87Gw2zXo3221loTas4ANoXSlAY+nCoNNyDWz1relAqe5NWNzn/PD6WizcPNs7kc E58V/mUGtwchaN2urKRbRS5rF/KlHz9A8XQoUTeUodnsYM+9GUfdpFVj91aDrmsuJ/Q3 Fjey0l7urxpNzgbmy9CrnuLmyjCXDMRlQhQvNGHPIqaCH86K0tU2AlQfWmOb6lWW6Tl1 GD13fJ2Awetiz66gOHQ36FcL+aJxh0TwRenAbTePxyBcHR0g5mv8gHNyR345OVnj3+CR yJpw== 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:message-id:date:subject:to:from:dkim-signature; bh=OpkqySJ2UWknivaVvWru7lRhHenDyIjLkmIyDYeODKY=; b=gW45aIBYc2nYnFlsHVG51vZ5nG2UNKYa2oLHzvT3tHK/FyueY9D4u221oNCgoUQsMB GoZLdYmHoiJRXhhfBMQYnwsyU3OvfLDgDKhYq5zYTgF3a2ideS5hm7mqQ99if1tH5M9r weAC2jCga1he9BrBs/sBNHtsSKZWOba0y4nzSzzzL4Q5pvOI0be6ohuqI7OjNFw8FNm3 6yo/HDE60W0W4iylhA8GINJn6Ou/eB/PjpmsyuD7W8HtIEqTLqWMVUh3bQOBTWNQBbZb l+yKspOaFgo2Q8VOdqqebSWsy46t9oCm7CLrL3EtiosSCFtsyG7VUDa3YCeH+agX9Qxs dirg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="Ih3a/Vbq"; 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 r68si9121601ybr.57.2020.05.29.13.43.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 May 2020 13:43:22 -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="Ih3a/Vbq"; 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]:37180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jelqc-0005Hk-Aq for patch@linaro.org; Fri, 29 May 2020 16:43:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46442) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jelqG-0005CL-OU for qemu-devel@nongnu.org; Fri, 29 May 2020 16:43:00 -0400 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:37851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jelqF-0000V8-Cz for qemu-devel@nongnu.org; Fri, 29 May 2020 16:43:00 -0400 Received: by mail-pg1-x542.google.com with SMTP id d10so477720pgn.4 for ; Fri, 29 May 2020 13:42:58 -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:mime-version :content-transfer-encoding; bh=OpkqySJ2UWknivaVvWru7lRhHenDyIjLkmIyDYeODKY=; b=Ih3a/VbqvNCorNFDtAaBsYYrCADdVUE0sfaXIG2/3LUFIDlbEH9IwEvtpAMI0v1GqH reHVplAGTfrF583XNxmhAQxuzaaD7mdWl/gRJoqWiwdDO42j3KJ3qOsFS5kLDafntkHc XChUf+ebR+fLrQfGQ4DtFdRg0PHI9Fj7TjMviFQrlB/wS3k9RodwRlVWFPNng2KLWwba lFg2xA5dS5SeYbAlP8648mMrFx1UKI3taspLX/SiQbZ1xbF3isoA29yztkF8q3VCfNzB Xv6MEXEzvvpjClqa9lIWjHesSn9AJrCde+BS4jB9ekHLQGENYAG+yijhUV6uswXsuFtH XBfw== 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:mime-version :content-transfer-encoding; bh=OpkqySJ2UWknivaVvWru7lRhHenDyIjLkmIyDYeODKY=; b=sA0YdPGneGXo0K5jQOqrmd0fM6WnvMWgVFut7jOqvFCrVH2gmmzjZvjO3IPmmVu/Dl skkxXpgjFqS0+NCBB+xMdqt26kXvtJJvQ+VZ+ZF1gjSE8GLpm/tZ1nI9JmAi3O9/zkXt /gcgUB319oaartaoBWAZwXx6YpdjMMW8sP+pa93cVK6fE1l8XymVohqlASuf0uFdK303 CCz6vzSqKbT6WEvi3mHq8+Mc9WGy6AnWa6GruSKlY7zBwOQCJzEjedV1mSXydTUySVcp 8TIcRX8HO4oj4+y9UCgP+vc4LFjmMaAQD70IeYY0eeLMutMGYp8+APIaPm8yZWLxUdFV 4bfA== X-Gm-Message-State: AOAM530ByP7zcpgvnOGqansYDMpO4qpCL6S7NekJhYxVQqjrxrtPuX7p TX8jLfo3ClJh+VE7nbAHdRgeZQEAYKj1UA== X-Received: by 2002:a63:cd0d:: with SMTP id i13mr9987873pgg.292.1590784977367; Fri, 29 May 2020 13:42:57 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:75ac:d268:da04:dde4]) by smtp.gmail.com with ESMTPSA id t12sm282839pjf.3.2020.05.29.13.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2020 13:42:56 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v8 00/12] tests/vm: Add support for aarch64 VMs Date: Fri, 29 May 2020 16:34:46 -0400 Message-Id: <20200529203458.1038-1-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::542; envelope-from=robert.foley@linaro.org; helo=mail-pg1-x542.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: philmd@redhat.com, alex.bennee@linaro.org, robert.foley@linaro.org, peter.puhov@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is version 8 of the patch series to add support for aarch64 VMs in the vm-build infrastructure. - Ubuntu 18.04 aarch64 VM - CentOS 8 aarch64 VM v7: https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg05286.html Changes in v8: - Added Ubuntu common module in tests/vm. - Changed ubuntu.i386 and ubuntu.aarch64 to use new common module. - Split out ConsoleSocket addition (python/qemu) to separate patch from changes to use it in tests/vm. - Adjustments in configure when checking for aarch64 efi images. - Remove use of QEMU_LOCAL in basevm.py.  We will use the   presence of the --build-path argument instead. Robert Foley (12): tests/vm: pass args through to BaseVM's __init__ tests/vm: Add configuration to basevm.py tests/vm: Added configuration file support tests/vm: Pass --debug through for vm-boot-ssh. tests/vm: Add ability to select QEMU from current build. tests/vm: allow wait_ssh() to specify command tests/vm: Add common Ubuntu python module tests/vm: Added a new script for ubuntu.aarch64. tests/vm: Added a new script for centos.aarch64. tests/vm: change scripts to use self._config python/qemu: Add ConsoleSocket for optional use in QEMUMachine tests/vm: Add workaround to consume console configure | 29 +++ python/qemu/console_socket.py | 118 +++++++++++++ python/qemu/machine.py | 23 ++- tests/vm/Makefile.include | 27 +++ tests/vm/aarch64vm.py | 106 +++++++++++ tests/vm/basevm.py | 284 +++++++++++++++++++++++------- tests/vm/centos-8-aarch64.ks | 51 ++++++ tests/vm/centos.aarch64 | 227 ++++++++++++++++++++++++ tests/vm/conf_example_aarch64.yml | 51 ++++++ tests/vm/conf_example_x86.yml | 50 ++++++ tests/vm/fedora | 17 +- tests/vm/freebsd | 16 +- tests/vm/netbsd | 19 +- tests/vm/openbsd | 17 +- tests/vm/ubuntu.aarch64 | 68 +++++++ tests/vm/ubuntu.i386 | 46 ++--- tests/vm/ubuntuvm.py | 58 ++++++ 17 files changed, 1077 insertions(+), 130 deletions(-) create mode 100644 python/qemu/console_socket.py create mode 100644 tests/vm/aarch64vm.py create mode 100644 tests/vm/centos-8-aarch64.ks create mode 100755 tests/vm/centos.aarch64 create mode 100644 tests/vm/conf_example_aarch64.yml create mode 100644 tests/vm/conf_example_x86.yml create mode 100755 tests/vm/ubuntu.aarch64 create mode 100644 tests/vm/ubuntuvm.py -- 2.17.1