From nobody Wed May 14 14:25:42 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 152638164540530.994036399805623; Tue, 15 May 2018 03:54:05 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ACBB23182157; Tue, 15 May 2018 10:54:03 +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 58AAF201634E; Tue, 15 May 2018 10:54:03 +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 B53563FCFB; Tue, 15 May 2018 10:54:02 +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 w4FArtoL009500 for ; Tue, 15 May 2018 06:53:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id D88C49BD2B; Tue, 15 May 2018 10:53:55 +0000 (UTC) Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CDE2C9BD25 for ; Tue, 15 May 2018 10:53:53 +0000 (UTC) Received: from shell.v3.sk (shell.v3.sk [92.60.52.57]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 50367ECFB3 for ; Tue, 15 May 2018 10:53:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E34B1AC107 for ; Tue, 15 May 2018 12:53:50 +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 GoRV0F09T2Sa; Tue, 15 May 2018 12:53:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id D4B79AC4EE; Tue, 15 May 2018 12:53:22 +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 HMEqcUWvRKdV; Tue, 15 May 2018 12:53:19 +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 27262AC0FE; Tue, 15 May 2018 12:53:18 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk From: Lubomir Rintel To: libvir-list@redhat.com Date: Tue, 15 May 2018 12:53:10 +0200 Message-Id: <20180515105311.1981339-9-lkundrak@v3.sk> In-Reply-To: <20180515105311.1981339-1-lkundrak@v3.sk> References: <20180515105311.1981339-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.27]); Tue, 15 May 2018 10:53:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 15 May 2018 10:53:52 +0000 (UTC) for IP:'92.60.52.57' DOMAIN:'shell.v3.sk' HELO:'shell.v3.sk' FROM:'lkundrak@v3.sk' RCPT:'' X-RedHat-Spam-Score: -0.001 (SPF_PASS) 92.60.52.57 shell.v3.sk 92.60.52.57 shell.v3.sk X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.27 X-loop: libvir-list@redhat.com Cc: Lubomir Rintel Subject: [libvirt] [PATCH 8/9] 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.84 on 10.5.11.25 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 15 May 2018 10:54:04 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" I am not sure whether this test makes sense. The generated command line is indeed sensible, but other tests seem to focus on testing particular devices as opposed to an overall check of a machine. Signed-off-by: Lubomir Rintel --- tests/qemuxml2argvdata/riscv64-virt.args | 29 +++++++++++++++ tests/qemuxml2argvdata/riscv64-virt.xml | 34 +++++++++++++++++ tests/qemuxml2argvtest.c | 2 + .../riscv64-virt.xml | 37 +++++++++++++++++++ 4 files changed, 102 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..0404afdd27 --- /dev/null +++ b/tests/qemuxml2argvdata/riscv64-virt.args @@ -0,0 +1,29 @@ +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' \ +-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 diff --git a/tests/qemuxml2argvdata/riscv64-virt.xml b/tests/qemuxml2argvda= ta/riscv64-virt.xml new file mode 100644 index 0000000000..0b6d668ebe --- /dev/null +++ b/tests/qemuxml2argvdata/riscv64-virt.xml @@ -0,0 +1,34 @@ + + 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 042ee12aaa..b02d70a854 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -2843,6 +2843,8 @@ mymain(void) QEMU_CAPS_DEVICE_VIRTIO_MOUSE_CCW, QEMU_CAPS_DEVICE_VIRTIO_TABLET_CCW); =20 + DO_TEST("riscv64-virt", NONE); + 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..f635862792 --- /dev/null +++ b/tests/qemuxml2startupxmloutdata/riscv64-virt.xml @@ -0,0 +1,37 @@ + + 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.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list