From patchwork Tue Mar 10 18:25:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 184360 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp1019863ile; Tue, 10 Mar 2020 11:27:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvZLV0D83tX8zEg0Itr9OysibQ+CUabe7X1otTsaGnqivP+QOyg7txt24hDjyJVgtv9O90u X-Received: by 2002:aed:30ce:: with SMTP id 72mr19302217qtf.89.1583864831730; Tue, 10 Mar 2020 11:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583864831; cv=none; d=google.com; s=arc-20160816; b=0Cf9Wv7AzjQ/Ca3Lr8JED1YkKay49vfnhQgiNypAO0VQ7PFeWpnN36u57SXz3pE1Ez UGlIfjmzbN1gU8vlIXX7Co+sx4Rmbe/mMnvT6oG5ZOT2qyhCK8u17znP0N7wm2Ondps9 v7pH2kcEGc1CMRteWvPRdu11PbdY4uqdlerPWt6Wb2X67x5gr5/2Y65OlGHRmKu+LH63 dplriBfJSaXS9F+1qtV1PD7nbm1LjdcFnafLMfr1hHj95eoTwx4V88TLZ+/0AJNdKliJ N0/cpn8y+PrcDB33X5zy1XMm7dY3Eve85uUeZc9KUigSdsG9p3gyycTFFVKb/wXSU0Oz BV0A== 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=Nrzh0Vy8XOLZcUSvtUSHG8edtZbHgxfhuR5ZP2r40nk=; b=qIj+19Ppz3VHGATF4h1zkg+mMF+qA1OD32NfjXPN4gZk4EH7wyIMLuuVZckp7Db4V+ Lv0ptzjxj+tetrk0rxYywkCmEZZzfPr726rUy4Vonwit6dqNj9M+rPUYEft8W8/orwq2 lQ4JWvXnFRVt0obDhOkBn0TZnM7NRJGB73c2VQRAJW5GAfNszARPF0qP5ave5WB+azBP rSBd/R7SAaPsIT6PQSKocyEx943r1AcYm0dFuXV2j46AS/NZC0+z5NDhMA1f/7Q7M4++ iBcmTe0Z51NEV8yZSRHx9ZFW5Z5+awR4nOYIa/CBGZalj0AETD0Nt3kVnsRlUASLoRET xUnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=yms+s4LZ; 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 o12si7918860qtq.335.2020.03.10.11.27.11 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Mar 2020 11:27: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=yms+s4LZ; 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]:38286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBjax-0004TK-9r for patch@linaro.org; Tue, 10 Mar 2020 14:27:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43621) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBjal-0004R6-IO for qemu-devel@nongnu.org; Tue, 10 Mar 2020 14:27:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBjak-0001RM-6z for qemu-devel@nongnu.org; Tue, 10 Mar 2020 14:26:59 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:43980) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jBjak-0001Og-16 for qemu-devel@nongnu.org; Tue, 10 Mar 2020 14:26:58 -0400 Received: by mail-pg1-x544.google.com with SMTP id u12so6675917pgb.10 for ; Tue, 10 Mar 2020 11:26:56 -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=Nrzh0Vy8XOLZcUSvtUSHG8edtZbHgxfhuR5ZP2r40nk=; b=yms+s4LZUz72EwOzhEZHkClxN89zv1UakkrTA9lnSneywbBFJDXPljDQNrNIIMUx9q pJB0TTNy0S5Hx2iAoiCAiAYl2+LAtQ+4wULWmclVCF/83xEciLrFhvVusTL37R0UY3tt lJwpFeCWrk/u2QAouCDXpNVjsiPCB5Uut1vM9ZNih2ZU2rnOQgttkqgNb5LviFJM5c1v LO8OTxPtOhagrTW8g0c0L+/LP4FV05mfhzhfMf2y3sIxhHh5KeqVDvmpojcAoJ1hgv09 eB6MS+kNReCAgSKlZ071R/CIsARhmOQ3M0PCD7Aip5wJlHJdgjnc30vj7HKe5wMUuEiB S4vg== 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=Nrzh0Vy8XOLZcUSvtUSHG8edtZbHgxfhuR5ZP2r40nk=; b=kwTkbYrn0lxp+0WDNdvwNfvYhe9cZJ1L6Pj9W5fAmPfyRv/muz6scFpy35zVmaqAPG YqWh0/KPDdX2eR+VJWZC5Ypip8JPlDe6QoJfxCKHNlbIE2OnndhoM5/R/2SZUolbpL0l Mjjp55cSXeUwnCc34yZsaULcAFWP3pHZWSw08Yu10/Ft1MxSIhKk+9czSk1Sy6T2q2le B+bhNT05BjrZowUuQOkpHyR33jm2d7Z8JHPixArjHMlWmT9EKzSPISkMjBtor7MqjN0m xoB6qbWMrwwFVDCWBVmgXb6DL6TJ+M4waiXLDxKy7NJhJvwYOomcPQgmywLGwOow+II0 uxMw== X-Gm-Message-State: ANhLgQ2tfj0FRY+46p1yfTx4RNHyQnQKwI6rprTR+cTJ168Isr+TLZ1b KZx+qwxhwMBwU4zPh5+ZYTCBBVtLC5k= X-Received: by 2002:aa7:91ce:: with SMTP id z14mr15283833pfa.62.1583864815098; Tue, 10 Mar 2020 11:26:55 -0700 (PDT) Received: from Rfoley-MA01.usrd.futurewei.com ([12.111.81.71]) by smtp.gmail.com with ESMTPSA id p1sm8730692pfq.114.2020.03.10.11.26.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Mar 2020 11:26:54 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v3 00/10] tests/vm: Add support for aarch64 VMs Date: Tue, 10 Mar 2020 14:25:26 -0400 Message-Id: <20200310182536.11137-1-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 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 3 of the patch series to add support for aarch64 VMs in the vm-build infrastructure. - Ubuntu 18.04 aarch64 VM - CentOS 8 aarch64 VM V2: https://lists.gnu.org/archive/html/qemu-devel/2020-02/msg05310.html Changes in V3. - Most changes were around checking for dependencies needed for the aarch64 VMs (qemu-efi-aarch64) and for the python3-yaml package. - Added checks to configure for dependencies of aarch64 VMs as well as the python3-yaml dependency. - Also added checks in tests/vm/Makefile.include to check for dependencies andĀ output the appropriate text for vm-help. - Moved the workaround for consuming the console to the end of the patch. - Added patch to validate the target of vm-build operations. Robert Foley (10): tests/vm: Add validation of target to Makefile.include 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 | 12 +- tests/vm/Makefile.include | 43 ++++- tests/vm/aarch64vm.py | 100 ++++++++++++ tests/vm/basevm.py | 252 ++++++++++++++++++++++++------ 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, 1075 insertions(+), 83 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