From patchwork Mon Jun 1 21:14:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 187347 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp3382937ilb; Mon, 1 Jun 2020 14:16:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7ePPI99MrWfr3+G0ne6f/7udDNrvNMS2XHIX7WhqwOXCiokGDiNaBAQnh6F0ogOemJ4/Y X-Received: by 2002:a25:3295:: with SMTP id y143mr27731528yby.321.1591046197722; Mon, 01 Jun 2020 14:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591046197; cv=none; d=google.com; s=arc-20160816; b=NqLa2+tEkRR/91g3We/ME2SGRvPYWfzl3bEGfe3vhhzCfko9VtgrBfl9Wkn7HEIFi8 uiTgFoJnRlWw8e7pcBTCbWm4Ynx02AszQaAq+cGfiESjtJ47Wqo4FkZFvGaucydgLtOI l8LNU6fScJrxIm8x42MX9oRRaC7lEv07TJq5B6o2Pq9ZUsUXsfHSikQVBCLWTfraDbzv X0CDGVyNoWJxl5JYDGzQV9QTFUEGE+uAJbgdMf6jHgHZRUW7mpg1BJllYiNAYUNKr5P4 6Htfk5Vq/x1xe0+kaG5AY0Cx+blvlUOXky+uNEq5EU7fsBIsN3wxf8S5H/xoGDMYiGSK 3mlw== 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=Gw5m1x5Xbx58fV+wiK/fT00tZsNBDwX2ki+9aHXy5lw=; b=S/rlq2Yo8ugxqwv0BZakuubkkV/hpSKO8xjDKfhTjOedtJw+HvRZQaRJpWn2fTlYVu kO8MF4Z3Fn9wYi8IqB97dh59FHnJTpCcIyOOIR+DtKD1bEaC0tbuhO4ciVlT7gdOb/yK 3z1XaNqh3unl6GUL6XVwECvPlDwbTSnKiiSQbswkymsiq4sUqprX416IIxkCsLRoDIor fQeXRsXm7aKlMNkkJ/szMUqDT1IS4V2u4mUpiGzSTloD669K+b4AWIVOlwwk67UDzRx/ 3stMLr3dEUo6EhNCIu5hM4ijD3HwzMmCOi55QR5mFfhpmhHoDRndlgL6XFz4NoJy7lLz Za3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=szQjvNPR; 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 125si411275ybh.403.2020.06.01.14.16.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jun 2020 14:16:37 -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=szQjvNPR; 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]:36554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jfrnR-0001c1-78 for patch@linaro.org; Mon, 01 Jun 2020 17:16:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jfrmO-0001bu-2k for qemu-devel@nongnu.org; Mon, 01 Jun 2020 17:15:32 -0400 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:39295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jfrmM-0006SP-8W for qemu-devel@nongnu.org; Mon, 01 Jun 2020 17:15:31 -0400 Received: by mail-pj1-x102e.google.com with SMTP id h95so389922pje.4 for ; Mon, 01 Jun 2020 14:15:29 -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=Gw5m1x5Xbx58fV+wiK/fT00tZsNBDwX2ki+9aHXy5lw=; b=szQjvNPROIFpzZ+hAg6ifcsU1NrSdRftp9A9GejNYGsE1RRIwZeF0JAWjqmtoCTrzA GWgSL+g/MK7gWorSIUXEKEAmSCS0YhMbKZuDZzQrh6HO459brh5C77SvhSi8t0+uVPUR SWqtats+tFzDn6cFLr3fXA57N1pJNit3xWZdfXyKuWDQPohU15Q6y588B4HT1t9Vabtp 8aDWwW4hFv78d7zC5r1ytKNf0DrJCiYnwZUqh0i0FMQNWZ+VtZq6riLMviyniB7KQ4T6 RJjgkJXS7Yvx/vTpOuQeGtyZrwHOACK+xHfUYj5dZsGnFEk6Fx01BIF+E3m7EnU1sq01 k5Kw== 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=Gw5m1x5Xbx58fV+wiK/fT00tZsNBDwX2ki+9aHXy5lw=; b=RdPQ69Dbe5zFFmdU8zxNErqw4nHAllWoJ7PCJYET81gzImDilib/I4pgz2Y6HVuifK Ca2kYO6X6GFqvY+VUYkiRcuwgbYDvSVPONHpsu7MYFnmVyPtuxiCsHDBxDx+pYgaolz+ C0TO4CVElW1TZ3OjWQ7LI+gszuO5HObGanE7my1TeWv0nd2b1skqajxw48rH68RWxy2p ozZ9JmxofWqK+TGquJ7n4hdjjCTUomR/2L048+Kx8ryP8DZXjeFtaGQAMi8+VJUKBFeE hYwIlSRQcjBhZPQw9BVDCLylqkh7vgXxOj0AgccImZJnUKh57mkFRB6gMmw7naO3ZeGt 841Q== X-Gm-Message-State: AOAM531qbrDnfljWDmlfoiLFvsT+dXV3h9Gmv4irUGfp8IhpgFP6k4Sw 4cj6NxiATUh6nJt3y9bv27f8n4g2WwwYBw== X-Received: by 2002:a17:902:7885:: with SMTP id q5mr22215535pll.320.1591046128130; Mon, 01 Jun 2020 14:15:28 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:85d8:9a30:f0f7:b100]) by smtp.gmail.com with ESMTPSA id j24sm330131pga.51.2020.06.01.14.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 14:15:27 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v9 0/9] tests/vm: Add support for aarch64 VMs Date: Mon, 1 Jun 2020 17:14:12 -0400 Message-Id: <20200601211421.1277-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::102e; envelope-from=robert.foley@linaro.org; helo=mail-pj1-x102e.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 9 of the patch series to add support for aarch64 VMs in the vm-build infrastructure. - Ubuntu 18.04 aarch64 VM - CentOS 8 aarch64 VM v8: https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg08458.html Changes in v9: - Fixed one bug/typo in configure for efi-aarch64. - Fixed indentation of efi-aarch64 code in configure. - Updated file header for ubuntuvm.py - Few minor changes in ConsoleSocket - Updated some comments in basevm.py around the call to QEMUMachine regarding drain_console=True. Robert Foley (9): tests/vm: pass args through to BaseVM's __init__ tests/vm: Add configuration to basevm.py tests/vm: Added configuration file support 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 | 110 +++++++++++++ python/qemu/machine.py | 23 ++- tests/vm/Makefile.include | 22 +++ tests/vm/aarch64vm.py | 106 +++++++++++++ tests/vm/basevm.py | 256 ++++++++++++++++++++++++------ 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 | 60 +++++++ 17 files changed, 1045 insertions(+), 123 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