From nobody Fri Jul 4 08:38:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1529008451171411.6000813171253; Thu, 14 Jun 2018 13:34:11 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 79EDC80F8D; Thu, 14 Jun 2018 20:34:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3E7DAA27BE; Thu, 14 Jun 2018 20:34:09 +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 E68634A469; Thu, 14 Jun 2018 20:34:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w5EKXN8s008194 for ; Thu, 14 Jun 2018 16:33:23 -0400 Received: by smtp.corp.redhat.com (Postfix) id 99470ABF3C; Thu, 14 Jun 2018 20:33:23 +0000 (UTC) Received: from mx1.redhat.com (ext-mx14.extmail.prod.ext.phx2.redhat.com [10.5.110.43]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE985AC0E4; Thu, 14 Jun 2018 20:33:20 +0000 (UTC) Received: from shell.v3.sk (shell.v3.sk [90.176.6.54]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C89E308FB8B; Thu, 14 Jun 2018 20:33:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id EBBFCAE65C; Thu, 14 Jun 2018 22:33:17 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 9XLiv1GZmNU2; Thu, 14 Jun 2018 22:33:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 1955EAE657; Thu, 14 Jun 2018 22:32:53 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5qs18v2Kjr25; Thu, 14 Jun 2018 22:32:50 +0200 (CEST) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 8B6B1AE655; Thu, 14 Jun 2018 22:32:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk From: Lubomir Rintel To: libvir-list@redhat.com Date: Thu, 14 Jun 2018 22:32:32 +0200 Message-Id: <20180614203233.3115735-11-lkundrak@v3.sk> In-Reply-To: <20180614203233.3115735-1-lkundrak@v3.sk> References: <20180614203233.3115735-1-lkundrak@v3.sk> X-Greylist: Sender passed SPF test, ACL 227 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 14 Jun 2018 20:33:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Thu, 14 Jun 2018 20:33:19 +0000 (UTC) for IP:'90.176.6.54' DOMAIN:'shell.v3.sk' HELO:'shell.v3.sk' FROM:'lkundrak@v3.sk' RCPT:'' X-RedHat-Spam-Score: -0.001 (SPF_PASS) 90.176.6.54 shell.v3.sk 90.176.6.54 shell.v3.sk X-Scanned-By: MIMEDefang 2.84 on 10.5.110.43 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.27 X-loop: libvir-list@redhat.com Cc: Lubomir Rintel , Andrea Bolognani Subject: [libvirt] [PATCH v2 10/11] tests/qemuxml2argvtest: test RISC-V virt machine arguments 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 14 Jun 2018 20:34:10 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Lubomir Rintel --- tests/qemuxml2argvdata/riscv64-virt.args | 31 +++++++++++++++ tests/qemuxml2argvdata/riscv64-virt.xml | 32 +++++++++++++++ tests/qemuxml2argvtest.c | 3 ++ .../riscv64-virt.xml | 39 +++++++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 tests/qemuxml2argvdata/riscv64-virt.args create mode 100644 tests/qemuxml2argvdata/riscv64-virt.xml create mode 100644 tests/qemuxml2startupxmloutdata/riscv64-virt.xml diff --git a/tests/qemuxml2argvdata/riscv64-virt.args b/tests/qemuxml2argvd= ata/riscv64-virt.args new file mode 100644 index 0000000000..1833242753 --- /dev/null +++ b/tests/qemuxml2argvdata/riscv64-virt.args @@ -0,0 +1,31 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/home/test \ +USER=3Dtest \ +LOGNAME=3Dtest \ +QEMU_AUDIO_DRV=3Dnone \ +/usr/bin/qemu-system-riscv64 \ +-name riscv64 \ +-S \ +-machine virt,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff \ +-m 2048 \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid fd65fc03-8838-4c4d-9d8d-395802488790 \ +-display none \ +-no-user-config \ +-nodefaults \ +-chardev socket,id=3Dcharmonitor,path=3D/tmp/lib/domain--1-riscv64/monitor= .sock,\ +server,nowait \ +-mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol \ +-rtc base=3Dutc \ +-no-shutdown \ +-boot c \ +-kernel /var/lib/libvirt/images/bbl \ +-append 'console=3DttyS0 ro root=3D/dev/vda' \ +-usb \ +-drive file=3D/var/lib/libvirt/images/stage4-disk.img,format=3Draw,if=3Dno= ne,\ +id=3Ddrive-virtio-disk0 \ +-device virtio-blk-device,drive=3Ddrive-virtio-disk0,id=3Dvirtio-disk0 \ +-chardev pty,id=3Dcharserial0 \ +-serial chardev:charserial0 \ +-device virtio-balloon-device,id=3Dballoon0 diff --git a/tests/qemuxml2argvdata/riscv64-virt.xml b/tests/qemuxml2argvda= ta/riscv64-virt.xml new file mode 100644 index 0000000000..6a2d072d3c --- /dev/null +++ b/tests/qemuxml2argvdata/riscv64-virt.xml @@ -0,0 +1,32 @@ + + riscv64 + fd65fc03-8838-4c4d-9d8d-395802488790 + 2097152 + 2097152 + 1 + + hvm + /var/lib/libvirt/images/bbl + console=3DttyS0 ro root=3D/dev/vda + + + + destroy + restart + destroy + + /usr/bin/qemu-system-riscv64 + + + + +
+ + + + + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index f44cac9fef..9c4cf1bb37 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2903,6 +2903,9 @@ mymain(void) QEMU_CAPS_KVM, QEMU_CAPS_SEV_GUEST); =20 + DO_TEST("riscv64-virt", + QEMU_CAPS_DEVICE_VIRTIO_MMIO); + if (getenv("LIBVIRT_SKIP_CLEANUP") =3D=3D NULL) virFileDeleteTree(fakerootdir); =20 diff --git a/tests/qemuxml2startupxmloutdata/riscv64-virt.xml b/tests/qemux= ml2startupxmloutdata/riscv64-virt.xml new file mode 100644 index 0000000000..e23b3ffbad --- /dev/null +++ b/tests/qemuxml2startupxmloutdata/riscv64-virt.xml @@ -0,0 +1,39 @@ + + riscv64 + fd65fc03-8838-4c4d-9d8d-395802488790 + 2097152 + 2097152 + 1 + + hvm + /var/lib/libvirt/images/bbl + console=3DttyS0 ro root=3D/dev/vda + + + + destroy + restart + destroy + + /usr/bin/qemu-system-riscv64 + + + + + +
+ + + + + + + + + + + +
+ + + --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list