From patchwork Thu Apr 30 15:57:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 185927 Delivered-To: patch@linaro.org Received: by 2002:a50:3a95:0:0:0:0:0 with SMTP id v21csp1032255ecc; Thu, 30 Apr 2020 09:13:48 -0700 (PDT) X-Google-Smtp-Source: APiQypLui/zsH/7UbDxtJPEMi5J5Wd1fgzkBEYJCP73KaGnqZgV8ioFD9sa1Ky5nZ6z42h3HiUmr X-Received: by 2002:ad4:4f14:: with SMTP id fb20mr3835835qvb.46.1588263227929; Thu, 30 Apr 2020 09:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588263227; cv=none; d=google.com; s=arc-20160816; b=tD7uI99siCZK8rUfoeNaTkk4DBjK60jkVNEGPZWtuomZ+yyZ3Xt0FYdcmyrP00mRo8 5vzLlKhBC/xMCmnjlCDcUKdVXxj8NoCdtiYCuePzptW+zFXY03sRNT4+umWVD9Zg2YsM XwVluiijJ8ahQtaFSKINJvqgbgCNhL8ULEM9/PKyTp4N3V0bM2XUZZTQXgPkWf665oYv slKytKHuRC/jyePhQl6sAmNhOzv9op6OGDme7SOo102uPPEyhBlp/+V/a4If/5LrU0Nf 9r0aTJR6yfmKN0QkblFOdNQYl+bd9U/ZeEYShUl31G4H4qi4Gh8bWLVQtcuqI3oQBnp+ FraQ== 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=M/HVPJJsarEjIjVx4H78Iqo7kCS5rt82H++LHRaHDJU=; b=mCg6LMKoAgl3Ch/IFCwq2o6dc7bDpI9OA8LDE/p6xjISrgqLjrY4qPGBn1O3MmF1zq t9YcMqKr5l/OxKRKOamuaP16evJQVcoRz68XcGxTu0lQ2S6kfRzclQ5LkfVkuFJ5v1YM /e0OsraxSwx3m9V3LJNxTcNwpxuxY34POqir8UYGIgfBDHVac+H7fNn6Jjc/W18y9PEq GxYQjTSpPmFdEbDuWmnB+F5LKfdVgcC0kBT8UwQrXrC+695DboCwIUP0RTjwjAX+RxEO ZYO0lmVzvK6eKBd6Lii+f3LtsQMcQF5xOMP847Ld7LJmWqZb7gjrtAeGTwFpkMSPPHRf ZaBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=TLFacWtW; 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 y7si74175qtn.79.2020.04.30.09.13.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Apr 2020 09:13:47 -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=TLFacWtW; 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]:35946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUBop-0002hp-9H for patch@linaro.org; Thu, 30 Apr 2020 12:13:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45396) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUBdD-00008m-R9 for qemu-devel@nongnu.org; Thu, 30 Apr 2020 12:03:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUBZv-000358-9L for qemu-devel@nongnu.org; Thu, 30 Apr 2020 12:01:47 -0400 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]:36017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jUBZu-00034r-0u for qemu-devel@nongnu.org; Thu, 30 Apr 2020 11:58:22 -0400 Received: by mail-qv1-xf41.google.com with SMTP id w18so3258270qvs.3 for ; Thu, 30 Apr 2020 08:58:21 -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=M/HVPJJsarEjIjVx4H78Iqo7kCS5rt82H++LHRaHDJU=; b=TLFacWtWa1DrBh1fkALLRqkqNoJAYQa45Wt4IZLzxN9fpv/T3BdPfsvsPJvkV72H9l JqxdCWv1/Iqloa1QBEty/kkTJ+N6z/6CdkwVxrTboATRfEgiBAsm1NJPy6BaTSU5eRwv YskAxAbuf+UFapSW0PO3cLhrOGG0i3GX3mc/V4qIr6IHIq0PwNn8TCsVnhYubkWltDhn KRrSMbaRWyaTOcTzDHserKk+M/tlxq03pwu1V5PBzWdPpPyWJOIuE3ol28LYfsBdmZrr Wl7n9ZZ5qlmHeKW9tFAiGHhk1XJrRBZ84umnjUxCb5073DeyUIeXyvZdrCgXI+GvwdGE NwJQ== 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=M/HVPJJsarEjIjVx4H78Iqo7kCS5rt82H++LHRaHDJU=; b=CViV1FULxQZYy2de/c/xeeNomGVCx2LliUYTsRRblp9E12VyArRBKBlVtyw0AAGRwG iZKPbDbfoZq/IIPBncpxBf/wSFJHVsJIa12MBCB3j+naXQnBY8qALnPCxOWplGRXa4SA l4Js14V9ucR3f1j4OS0LkLPTsTGlyx6eOxpZ69xJhBi+LFugSd8/Cchodj4XGhmJLAWK D36dUIjExxUybNCEPOmT1eLiCKzd31X0gDLn2NlBZy2f3qrdQFNN9AEu3i8fzkzDguZZ ICq2npqj8/ENjAzBVnbQi40kwZS8/cPQ3JWvzUe4RqI457+E4DahoVEGnTIhAHSgBqfl t8IQ== X-Gm-Message-State: AGi0PuYVxX6sPa/FUuFl0IqHb+eyeYmRr8JrJD2aYrQh+2eNnWFPqT1W /sS4lgNvNjo7nWw1ZvJTp9gLvyH6j1T8YA== X-Received: by 2002:a0c:da87:: with SMTP id z7mr3635295qvj.141.1588262300075; Thu, 30 Apr 2020 08:58:20 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:7489:3328:3806:7c3]) by smtp.gmail.com with ESMTPSA id v16sm305254qkf.80.2020.04.30.08.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 08:58:19 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v5 0/9] tests/vm: Add support for aarch64 VMs Date: Thu, 30 Apr 2020 11:57:09 -0400 Message-Id: <20200430155718.212-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::f41; envelope-from=robert.foley@linaro.org; helo=mail-qv1-xf41.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::f41 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 5 of the patch series to add support for aarch64 VMs in the vm-build infrastructure. - Ubuntu 20.04 aarch64 VM - CentOS 8 aarch64 VM v4: https://lists.nongnu.org/archive/html/qemu-devel/2020-03/msg03558.html Changes in v5 - Updated the Ubuntu aarch64 VM from 18.04 to 20.04. - Changed the creation of the flash drives to be silent to stdout. - Changed handling of qemu_args from yaml file to preserve quoted strings.   This allows us to put something like this in the yaml as part of the qemu_args, and preserve the quotes: -append "root=/dev/vda1 console=ttyAMA0" - Fix issue in CentOS aarch64 VM where python was not set up. Robert Foley (9): 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 | 105 +++++++++++ tests/vm/basevm.py | 282 ++++++++++++++++++++++++------ 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 | 117 +++++++++++++ 15 files changed, 1098 insertions(+), 91 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