From patchwork Thu Mar 12 14:27:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 184454 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp625928ile; Thu, 12 Mar 2020 07:30:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsg4g46ecyq8VTAXzEqUyIB6E4MNQziQkNGln1o4isUPrBZH0zJWVnS1gdQdEK2aLNZ2Nzg X-Received: by 2002:a37:664d:: with SMTP id a74mr7712483qkc.256.1584023411267; Thu, 12 Mar 2020 07:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584023411; cv=none; d=google.com; s=arc-20160816; b=hVEbtMNxMEN9PIqlCJRk9L5oDvph0+QlVZqjWY71jKBwZIx9+Mp7QL5OsOZS1x5/5Q rABhLOHLJnW91qOThNwrbcRa1GUwFLFnfJ8rSF0nLuFrwT0Cf3l/aJ0EbyUrMVNawiWB ur3bdK3wVN47vb5eQL5Ry7nmW25+PHA4nU6LwRLpUhK3H3CYLdJfhc5+SmB3Q8ojV/ip EG+zQBF9mndeGIunB+0aAZJk7hZIcu12nJfCTOND13a5f0FyoK8gwnEVWIQVTifhLrVp NQL2X1rP1GsbRw46bQfdAdwFhTOhBcKJJ6akDhtfKOlQvg+0v/C4rtCmsUZMXVdt2Cf6 Kfzg== 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:message-id:date:subject:to:from :dkim-signature; bh=fWm6ba1Z78PmHbDjv3mFvfgdbVhWqfDgRF9aol4iv50=; b=khwrQEOQsMoukM/ZFqEkMk42tnzRv5+nENhvJuofAOk050pFWU+x+CVT4Sw3CG+fTJ iVyahU1UrE66SFnuw7lZAkv2H/9nOk1YCeMzWPPSmfDDJ/GFzIEVmQGHS8BP73zEvU+r vF4vS1eJe+cYltnSV5Vd7INMRJtT6jctFjQJ/BftkUkeKemVlhLgH2nElYA6D5iI2ZWP r038nQJr+3fLjmerPkalBGTZ9GKNJtevYLtnp7HKwzdtH2J0Y42M64LM+I1llrS4bPtl WZg/TvnEk8DiPdG2+2FkPqMw/cRwawF+BhIWcMGKOngYPrwm98D4raxN34npDxTziXuk 0GGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ipcAzkzb; 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 s51si2477567qts.190.2020.03.12.07.30.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Mar 2020 07:30:11 -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=ipcAzkzb; 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]:42212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCOqg-0006Fc-R9 for patch@linaro.org; Thu, 12 Mar 2020 10:30:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35589) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCOqS-00068b-PC for qemu-devel@nongnu.org; Thu, 12 Mar 2020 10:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCOqR-00062c-AT for qemu-devel@nongnu.org; Thu, 12 Mar 2020 10:29:56 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:38072) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCOqQ-000618-Vc for qemu-devel@nongnu.org; Thu, 12 Mar 2020 10:29:55 -0400 Received: by mail-pj1-x102b.google.com with SMTP id m15so2038147pje.3 for ; Thu, 12 Mar 2020 07:29:53 -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; bh=fWm6ba1Z78PmHbDjv3mFvfgdbVhWqfDgRF9aol4iv50=; b=ipcAzkzbgVW/BHuN3GD5rnirXjlZaqgqsZ3/aTkGyDCrElMB0eAfqmzCQYIlGCFzkN VyExw2St0yyIybXopJLuDltEqZa1ycwNdGTSdSdL0GQCKWvZ2qwZjYdSfxHy7WfFlKV9 +4kjiq5SvJGra9GyP+H4mD9v7D6YlXIub34hGZUQEZkZuMgTSSjBgKqdrq3eQZBdBTbJ L4S3Q2jsJAXiGkAeyjue0LDzKEOkNoUuZnMbe/zxa9GgY5/d/lJSZByclRSJ3ACy55ri EnCjBTDJSAKXhOFEAcnOlkcI4S+GmycV2xsCmcecMjApynVTA3PoEAOnfTn5sIptfFCT s5WQ== 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; bh=fWm6ba1Z78PmHbDjv3mFvfgdbVhWqfDgRF9aol4iv50=; b=khi4DV/9yBe0+p02YZKmO/s8JWHHVY7L14rGjXy5y/15fXKcaxOi5dWW0vPjNneJ9X CYCwjJUdejsGhQF5XS1R/SypSdqxx62HVNFqmHE+NM2dWo3UP0Pk+5Im6UMJK83J4ROy xwKr9jySY5NEU9+rn5QXcMZI2VrWhB4sWt5/tmVwHDoE5nAPhu+tZA0Kax8F7y2Ydd6u egeB6iw3g4/xTDduARSyXgSCyCIAGIWB5rZsCCbLZ6TQQZW+ao9ig5pHz1fedompr0Bp xTac0/E7bNQASp3au+zZGFpKBafaAsPwXRBi3wJQTHstVqas9zQ4lgRhjo/pcdou88NR r3MA== X-Gm-Message-State: ANhLgQ0OL0hSwODBy/yDZ31rrdEt0A5h++SjV/ZqAg4Ekt0/asLNtqVA JCkHrq2sVysBtZVemz99G/XtUvEqHR4= X-Received: by 2002:a17:90a:1b6a:: with SMTP id q97mr4237589pjq.187.1584023391664; Thu, 12 Mar 2020 07:29:51 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:845e:b9f6:81a6:8f5e]) by smtp.gmail.com with ESMTPSA id 63sm14832651pfx.132.2020.03.12.07.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 07:29:50 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v4 00/10] tests/vm: Add support for aarch64 VMs Date: Thu, 12 Mar 2020 10:27:18 -0400 Message-Id: <20200312142728.12285-1-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::102b 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 4 of the patch series to add support for aarch64 VMs in the vm-build infrastructure. - Ubuntu 18.04 aarch64 VM - CentOS 8 aarch64 VM V3: https://lists.gnu.org/archive/html/qemu-devel/2020-03/msg02805.html Changes in V4. - Removed the target validation we had put into Makefile.include. - Corrected a dependency on a later patch in gen_cloud_init_iso(). - Changed the consume console patch to make draining the console to a buffer optional. This fixes the acceptance test issue. Robert Foley (10): tests/vm: Fix issues in gen_cloud_init_iso tests/vm: Add configuration to basevm.py tests/vm: Added configuration file support tests/vm: add --boot-console switch tests/vm: Add ability to select QEMU from current build. tests/vm: allow wait_ssh() to specify command 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 tests/vm: Add workaround to consume console configure | 25 +++ python/qemu/console_socket.py | 162 +++++++++++++++++++ python/qemu/machine.py | 23 ++- tests/vm/Makefile.include | 27 ++++ tests/vm/aarch64vm.py | 100 ++++++++++++ tests/vm/basevm.py | 253 ++++++++++++++++++++++++------ tests/vm/centos-8-aarch64.ks | 51 ++++++ tests/vm/centos.aarch64 | 226 ++++++++++++++++++++++++++ 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 | 117 ++++++++++++++ 15 files changed, 1072 insertions(+), 82 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 -- 2.17.1