From nobody Sat Feb 7 06:20:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1627056423; cv=none; d=zohomail.com; s=zohoarc; b=SLtPiHdx/vnXJXlxRKmOrVWaL/F1+d+KU7Ms3wXQOU9TlPKrq4IIotAQvl/GRGDPJNVx3wtfn+MQkuOBAOoFmFsn25g9Y5aljE5JLFR18mkQDyrE8JQoAPeLAP4MFtspXy7kqkTf7Fxpqezu0bvIIZkGnBHprblvXrWfPgzc5gs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1627056423; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=NSmz1BRTZxCGZdZQX5vJjqc0LRI+uEhz7EywSeNmCt4=; b=jhnbzX44cogUlqQi2GnB+7dWdblpJZwgUgZc+BF9R2G+bjaNEr5gZRd3gj8FcODzcg+tvG9g2LZm8Lx9/NqVaaClSxTx7U0qmMHS/VCtDZJLJDzfqZKGTJ4NJxFQmyHdAyBgSOYZi2HAD8VRwPuRXZq05YG9hk0Rs4pcWnbmfHE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1627056423732999.4522324140141; Fri, 23 Jul 2021 09:07:03 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-462-kITZmhpaOf2G-ACvoIwuxQ-1; Fri, 23 Jul 2021 12:06:21 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5ABDB18C89CF; Fri, 23 Jul 2021 16:06:16 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D087669F3; Fri, 23 Jul 2021 16:06:16 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id D07DF181A1F3; Fri, 23 Jul 2021 16:06:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 16NG4Gr8030852 for ; Fri, 23 Jul 2021 12:04:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id DB8D4100238C; Fri, 23 Jul 2021 16:04:16 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.192.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 49D1910016F8 for ; Fri, 23 Jul 2021 16:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627056422; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=NSmz1BRTZxCGZdZQX5vJjqc0LRI+uEhz7EywSeNmCt4=; b=YePycwbFMCWHjCJ5oablvNPiT5C+vGUsn9ZivUjeokpz8rS79ILwxLALpIqSf+Ea7EsmsE 1BnfC9wczR0pqCPu9wBDrG+o4xeyZBcAnmz66e7g6FbwTkMeWAJtf8y2WIWHmy5kRSVWdy ihXjNAN42AG7REpqrc1vojt1D6nBIRQ= X-MC-Unique: kITZmhpaOf2G-ACvoIwuxQ-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 3/3] tests: Test pcie-expander-bus for aarch64/virt guests Date: Fri, 23 Jul 2021 18:04:04 +0200 Message-Id: <20210723160404.240841-4-abologna@redhat.com> In-Reply-To: <20210723160404.240841-1-abologna@redhat.com> References: <20210723160404.240841-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1627056424804100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Andrea Bolognani --- ...e-expander-bus-aarch64.aarch64-latest.args | 32 +++++++++++++++++++ .../pcie-expander-bus-aarch64.xml | 15 +++++++++ tests/qemuxml2argvtest.c | 1 + ...ie-expander-bus-aarch64.aarch64-latest.xml | 32 +++++++++++++++++++ tests/qemuxml2xmltest.c | 1 + 5 files changed, 81 insertions(+) create mode 100644 tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch6= 4-latest.args create mode 100644 tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml create mode 100644 tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarc= h64-latest.xml diff --git a/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-lates= t.args b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-latest.ar= gs new file mode 100644 index 0000000000..d3b7f724aa --- /dev/null +++ b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.aarch64-latest.args @@ -0,0 +1,32 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-pcie-expander-bus-te \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-pcie-expander-bus-te/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-pcie-expander-bus-te/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-pcie-expander-bus-te/.config \ +/usr/bin/qemu-system-aarch64 \ +-name guest=3Dpcie-expander-bus-test,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-pcie-expander-bus-te/master-key.aes"}' \ +-machine virt,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff,gic-version=3D2,= memory-backend=3Dmach-virt.ram \ +-cpu cortex-a15 \ +-m 2048 \ +-object '{"qom-type":"memory-backend-ram","id":"mach-virt.ram","size":2147= 483648}' \ +-overcommit mem-lock=3Doff \ +-smp 16,sockets=3D16,cores=3D1,threads=3D1 \ +-uuid 11dbdcdd-4c3b-482b-8903-9bdb8c0a2774 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,fd=3D1729,server=3Don,wait=3Doff \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-no-acpi \ +-boot strict=3Don \ +-device pxb-pcie,bus_nr=3D254,id=3Dpci.1,bus=3Dpcie.0,addr=3D0x1 \ +-audiodev id=3Daudio1,driver=3Dnone \ +-sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml b/tests/q= emuxml2argvdata/pcie-expander-bus-aarch64.xml new file mode 100644 index 0000000000..da27fc5abe --- /dev/null +++ b/tests/qemuxml2argvdata/pcie-expander-bus-aarch64.xml @@ -0,0 +1,15 @@ + + pcie-expander-bus-test + 11dbdcdd-4c3b-482b-8903-9bdb8c0a2774 + 2097152 + 16 + + hvm + + + /usr/bin/qemu-system-aarch64 + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 67c056b887..b552f5deed 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2847,6 +2847,7 @@ mymain(void) DO_TEST_PARSE_ERROR("pcie-expander-bus-bad-bus", QEMU_CAPS_DEVICE_IOH3420, QEMU_CAPS_DEVICE_PXB_PCIE); + DO_TEST_CAPS_ARCH_LATEST("pcie-expander-bus-aarch64", "aarch64"); =20 DO_TEST_CAPS_VER("hostdev-scsi-lsi", "4.1.0"); DO_TEST_CAPS_LATEST("hostdev-scsi-lsi"); diff --git a/tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-lat= est.xml b/tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-latest= .xml new file mode 100644 index 0000000000..f68203f3fe --- /dev/null +++ b/tests/qemuxml2xmloutdata/pcie-expander-bus-aarch64.aarch64-latest.xml @@ -0,0 +1,32 @@ + + pcie-expander-bus-test + 11dbdcdd-4c3b-482b-8903-9bdb8c0a2774 + 2097152 + 2097152 + 16 + + hvm + + + + + + + cortex-a15 + + + destroy + restart + destroy + + /usr/bin/qemu-system-aarch64 + + + + +
+ +