From patchwork Tue May 19 13:22:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 186933 Delivered-To: patch@linaro.org Received: by 2002:a50:2a0d:0:0:0:0:0 with SMTP id m13csp1984379ecf; Tue, 19 May 2020 06:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQMrUFsYvV0UZmLbOmABU/ULugN8l+fgt6YhQmRGqRzkqkEIjonRLzMGSV1c9XQXGtSWx4 X-Received: by 2002:aed:2fe2:: with SMTP id m89mr22605492qtd.124.1589894825925; Tue, 19 May 2020 06:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589894825; cv=none; d=google.com; s=arc-20160816; b=vLpX6uO699Q6jNmdIipzeK0FyzCGFQGxuxdnieLDqiHD8UAH3v2mKXlnNdjv/qk3Z4 wcnsbuxe/gufWy5YpxBSxG2I765KWrr+9rKGPaSNb/ilhef2/kZnT+MDH7PZZ9I64Bgh I+QoKMS3aIXdexHl/FShu50Ive9+rLBhRF7Y0uRPL1XjSiTPs2ZecVqT2euJb5G9Ljd5 fA5Y8h5CCan/+g9MIZHOjvjuVGlDXdcS3CiR8uPwGGEyUCcAsAaMtqDbQEzGuBgzIkGp LXbYsnbhDJ8ZzwIMDtXbs63qOizPqYA4cNCQ5hPJU9FiaYL0Bah+YnsGZDT9LFI4CR0H JmbQ== 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=raBocYizrkulDEyGXccw4mVvr1iHMUyErLiJlzSTQb4=; b=serWBGguoEhOwQX6WvoVY4srm/s08JI77gx9vTFwLXW6J1FYB9E4vlFLD74K3Gz6iH BNwkiVFvzrDhk1ejFtdhU80rSN97FZM0NmYahQ0riIv2FFXU7ePTLD0aMyj41/PzF+3z So7pifLJjlaCApFFPrDbiTE68qhbNzfM15FElvOBRv+qgcq0s87exy/WgIGWLZfD1o/T K4rNwf0rils/GBqSEJU2NsUDObmmfoKBlERV7Wey+PJXI5ML3n3Sh8s/udDMe6QvDlpL J7HNiTHwzTmBajSWFpFZT5/NJ19sT83SC2qgAzRjX/tc/pjYnG7NjbXLZoLhQ7IiAN45 bBkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BnOFgsF+; 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 w5si7207366qvz.15.2020.05.19.06.27.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 May 2020 06:27:05 -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=BnOFgsF+; 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]:52860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jb2Gv-0004cL-8U for patch@linaro.org; Tue, 19 May 2020 09:27:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jb2GB-0004Li-Jj for qemu-devel@nongnu.org; Tue, 19 May 2020 09:26:19 -0400 Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]:37274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jb2G9-0008AN-P6 for qemu-devel@nongnu.org; Tue, 19 May 2020 09:26:19 -0400 Received: by mail-qk1-x742.google.com with SMTP id m11so14982182qka.4 for ; Tue, 19 May 2020 06:26:17 -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=raBocYizrkulDEyGXccw4mVvr1iHMUyErLiJlzSTQb4=; b=BnOFgsF+6yFTASxJ4lpCTbAR41Xxg5oUHit93shswxRrkKlSeu/2zQsYtZxwNebLSd /HK9nfyxownBJs05msuqQJ5xIEHDdWc8Od/ADy78QSb33ZaYCrT+rxvi+vI9M32UvuxN xkESBaWlbEn/3JPX+7F/anrQAqt16u+JzYlxGLeHI1e5iODAIz29EKA8MlGTN9/e5RRZ rBlVf24Ta0Jm9juGsHEcAlKzvbaEzVTnV0I4Ihn1qxFbDODEc/qkXdjN1BCxGn36B1dI lrZGPF+fdBD1k2kVUZdo3FwSnliWljknhUgWbUdUD//L0VeGTM+fBclpRT0UF6EVJY9T 1F7Q== 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=raBocYizrkulDEyGXccw4mVvr1iHMUyErLiJlzSTQb4=; b=cwTYDHNSf1/i3SFlDwtevPZpEsMVxGkmSKZjD02g8GMNrZiT90DHbhBlLgMkS+rizz DT13TjyxPTCbr336unoO5wuLBaN4CskyKExYinbSti6wYHf6ItcJhvoUvH5wh9mojVNf nAzjnnj7jFjM6libXUJ6eNYq86ZY+wLIJNJgFgOWVLg5me7rnw1d1ykaFY60Abmi8cbj qO+vMfga5n0xfcmtIH2fv6rkafM2OeUxcZdwFgfOUP1Kh3TG9+i7TvRd5yd7bfkC859w 5YJgbYxKNfeowZEMoVccI4QZNEN8E/chsIv2rgXEkeMqJ+OkqMKg2WkA3t9wtizzzJfr lh2w== X-Gm-Message-State: AOAM532D04U+3B+C8qOjvbu1SCAD5qBm1TBbelL6nv53sAD9q+MNxJ3D ehSOpvvdEJiRKq1r0ZknjCSNMGWVacbOLg== X-Received: by 2002:a37:9f47:: with SMTP id i68mr19630243qke.425.1589894776121; Tue, 19 May 2020 06:26:16 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:dd6a:8c63:cd9d:ad15]) by smtp.gmail.com with ESMTPSA id d74sm3482136qke.100.2020.05.19.06.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 06:26:15 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v7 00/12] tests/vm: Add support for aarch64 VMs Date: Tue, 19 May 2020 09:22:47 -0400 Message-Id: <20200519132259.405-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::742; envelope-from=robert.foley@linaro.org; helo=mail-qk1-x742.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 7 of the patch series to add support for aarch64 VMs in the vm-build infrastructure. - Ubuntu 18.04 aarch64 VM - CentOS 8 aarch64 VM v6: https://lists.gnu.org/archive/html/qemu-devel/2020-05/msg03134.html Changes in v7 - Made changes to the way we discover the efi image for aarch64 VMs - Added support for discovering efi aarch64 image in pc-bios folder. - Added support for efi image discovered in configure to eventually get passed through the makefile to the vm script. - Changed basevm.py BaseVM to pass args through to __init__ - Included two patches from Alex for genisoimage. Alex Bennée (2): configure: add alternate binary for genisoimage tests/vm: pass --genisoimage to basevm script Robert Foley (10): 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: 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 | 31 +++- python/qemu/console_socket.py | 162 ++++++++++++++++ python/qemu/machine.py | 23 ++- tests/vm/Makefile.include | 28 +++ tests/vm/aarch64vm.py | 106 +++++++++++ tests/vm/basevm.py | 294 +++++++++++++++++++++++------- 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, 1110 insertions(+), 99 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