From nobody Sun Feb 8 17:36:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1622644650; cv=none; d=zohomail.com; s=zohoarc; b=MqE4PFt8xe/YEqs6O5Ib1gCBW6c9o+2XcbI0jSD5eLB9Xqc0ZEa6ffyAcSQyTaKDYQZ3eKZP+NLeanw2vw3r9DTdVWkaePFhMYB7YB7kN2SZjCJ5GGBy/+ck59RIL/4NSqExGeZmfXvAT+mMvRCZ27OHCms5/rrMU14hi0OqZrI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622644650; h=Content-Type:Content-Transfer-Encoding:Cc: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=b6ieMkC0g2BhOLzxSIEoGnaPM15BUJWuy4wyButy8cE=; b=OEyoSfnEOLGbGndTolg901AJjRGmgBT7ariJ2YoAzhvvAYT7OdH3hLzwvqz5RHxZ+caZ/iv/QE4MrttKFMdZWRRq1jiHrXxYgvjjuEx/P547N35FkEfcBR6pvZHEr1pA6L4nkiWJYZKud/pclkWJVvDDj1un1A3H3WB/eufE4hY= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1622644650980626.4877708999675; Wed, 2 Jun 2021 07:37:30 -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-32-C8D9C7aMMj2diwBc6ivoxg-1; Wed, 02 Jun 2021 10:37:23 -0400 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 299E4501F5; Wed, 2 Jun 2021 14:37:19 +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 F300E5C1A3; Wed, 2 Jun 2021 14:37:18 +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 B5C9D8E03; Wed, 2 Jun 2021 14:37:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 152EbCjP002417 for ; Wed, 2 Jun 2021 10:37:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2CBF11041AF4; Wed, 2 Jun 2021 14:37:12 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 26F6E114B310 for ; Wed, 2 Jun 2021 14:37:08 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F2A1A10334A6 for ; Wed, 2 Jun 2021 14:37:07 +0000 (UTC) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-329-UTn1vOsRPxurkDXPjH7CNg-1; Wed, 02 Jun 2021 10:37:06 -0400 Received: by mail-qv1-f54.google.com with SMTP id u33so1388921qvf.9 for ; Wed, 02 Jun 2021 07:37:06 -0700 (PDT) Received: from rekt.ibmuc.com ([189.79.219.244]) by smtp.gmail.com with ESMTPSA id l65sm103808qke.7.2021.06.02.07.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 07:37:04 -0700 (PDT) X-MC-Unique: C8D9C7aMMj2diwBc6ivoxg-1 X-MC-Unique: UTn1vOsRPxurkDXPjH7CNg-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=b6ieMkC0g2BhOLzxSIEoGnaPM15BUJWuy4wyButy8cE=; b=CpsosCtub0VCu+G3zDbIk7zjCeMsZrmVEn0vKszFL1T03vjGlXHoxj3LORSjdEn2vP PKtM++qrbEb/NclG9V3CPaA0l34gthbOVIYV736+MyEHB0KFC1kwHcSnfRF3hpi7cPzr 0KlIpaEiye1H7Z3PMyIghkxFUv+UBGek3WqnwdeJS2YzRxDAsTa6+SZNHRSLzq63YxEW HTKf0xN5pQTlsKF/DVwYY9rxkMvY4fmugiIurpsQ3o85LAMaWU1MdXj5qA75YdPfpKZl Zr21sky3yc7njUhUKYMD3jC7bJr4JjxglGXmS0qn8d8fIVhUELopnBXQDciuMJOSmxP+ iKew== X-Gm-Message-State: AOAM530wsGmnXoj6aveSWLIuw4ED6YcFYAbXphUBJgXev7WRKcW+txae /byeHYzMVRaxce5OsKR+7zl32pk9RLiAtw== X-Google-Smtp-Source: ABdhPJyv7ZPJ6uV818oiqBP48aSW1lgjaoTGzGlKp4tPZcIILO0w6GkdRNi7MXSc9j9xlpf1DzW01g== X-Received: by 2002:a05:6214:2aa1:: with SMTP id js1mr19008232qvb.11.1622644624894; Wed, 02 Jun 2021 07:37:04 -0700 (PDT) From: Daniel Henrique Barboza To: libvir-list@redhat.com Subject: [PATCH 4/5] tests: add tests for 'papr-pef' support Date: Wed, 2 Jun 2021 11:36:25 -0300 Message-Id: <20210602143626.753447-5-danielhb413@gmail.com> In-Reply-To: <20210602143626.753447-1-danielhb413@gmail.com> References: <20210602143626.753447-1-danielhb413@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: libvir-list@redhat.com Cc: danielhb413@gmail.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.16 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 Content-Type: text/plain; charset="utf-8" Signed-off-by: Daniel Henrique Barboza --- .../launch-security-papr-pef.xml | 22 ++++++++++++++ tests/genericxml2xmltest.c | 1 + ...y-papr-pef-ignore-policy.ppc64-latest.args | 30 +++++++++++++++++++ ...launch-security-papr-pef-ignore-policy.xml | 19 ++++++++++++ ...launch-security-papr-pef.ppc64-latest.args | 30 +++++++++++++++++++ .../launch-security-papr-pef.xml | 16 ++++++++++ tests/qemuxml2argvtest.c | 3 ++ 7 files changed, 121 insertions(+) create mode 100644 tests/genericxml2xmlindata/launch-security-papr-pef.xml create mode 100644 tests/qemuxml2argvdata/launch-security-papr-pef-ignore-= policy.ppc64-latest.args create mode 100644 tests/qemuxml2argvdata/launch-security-papr-pef-ignore-= policy.xml create mode 100644 tests/qemuxml2argvdata/launch-security-papr-pef.ppc64-l= atest.args create mode 100644 tests/qemuxml2argvdata/launch-security-papr-pef.xml diff --git a/tests/genericxml2xmlindata/launch-security-papr-pef.xml b/test= s/genericxml2xmlindata/launch-security-papr-pef.xml new file mode 100644 index 0000000000..f5a9fe9ed2 --- /dev/null +++ b/tests/genericxml2xmlindata/launch-security-papr-pef.xml @@ -0,0 +1,22 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 524288 + 524288 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu-system-ppc64 + + + + + + diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index eb15f66c3c..82decff827 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -235,6 +235,7 @@ mymain(void) DO_TEST("launch-security-sev"); DO_TEST("launch-security-s390-pv"); DO_TEST_DIFFERENT("launch-security-s390-pv-ignore-policy"); + DO_TEST("launch-security-papr-pef"); =20 DO_TEST_DIFFERENT("cputune"); DO_TEST("device-backenddomain"); diff --git a/tests/qemuxml2argvdata/launch-security-papr-pef-ignore-policy.= ppc64-latest.args b/tests/qemuxml2argvdata/launch-security-papr-pef-ignore-= policy.ppc64-latest.args new file mode 100644 index 0000000000..6ea120c2d1 --- /dev/null +++ b/tests/qemuxml2argvdata/launch-security-papr-pef-ignore-policy.ppc64-l= atest.args @@ -0,0 +1,30 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-guest \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-guest/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-guest/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-guest/.config \ +/usr/bin/qemu-system-ppc64 \ +-name guest=3Dguest,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-guest/master-key.aes"}' \ +-machine pseries,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff,confidential-= guest-support=3Dpef0,memory-backend=3Dppc_spapr.ram \ +-cpu POWER9 \ +-m 512 \ +-object '{"qom-type":"memory-backend-ram","id":"ppc_spapr.ram","size":5368= 70912}' \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \ +-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 \ +-boot strict=3Don \ +-audiodev id=3Daudio1,driver=3Dnone \ +-object '{"qom-type":"pef-guest","id":"pef0"}' \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/launch-security-papr-pef-ignore-policy.= xml b/tests/qemuxml2argvdata/launch-security-papr-pef-ignore-policy.xml new file mode 100644 index 0000000000..07b635395f --- /dev/null +++ b/tests/qemuxml2argvdata/launch-security-papr-pef-ignore-policy.xml @@ -0,0 +1,19 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 524288 + 1 + + hvm + + + /usr/bin/qemu-system-ppc64 + + + + + + AQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAAAQAAAAAOAAA + IHAVENOIDEABUTJUSTPROVIDINGASTRING + + diff --git a/tests/qemuxml2argvdata/launch-security-papr-pef.ppc64-latest.a= rgs b/tests/qemuxml2argvdata/launch-security-papr-pef.ppc64-latest.args new file mode 100644 index 0000000000..6ea120c2d1 --- /dev/null +++ b/tests/qemuxml2argvdata/launch-security-papr-pef.ppc64-latest.args @@ -0,0 +1,30 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/tmp/lib/domain--1-guest \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/tmp/lib/domain--1-guest/.local/share \ +XDG_CACHE_HOME=3D/tmp/lib/domain--1-guest/.cache \ +XDG_CONFIG_HOME=3D/tmp/lib/domain--1-guest/.config \ +/usr/bin/qemu-system-ppc64 \ +-name guest=3Dguest,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tm= p/lib/domain--1-guest/master-key.aes"}' \ +-machine pseries,accel=3Dtcg,usb=3Doff,dump-guest-core=3Doff,confidential-= guest-support=3Dpef0,memory-backend=3Dppc_spapr.ram \ +-cpu POWER9 \ +-m 512 \ +-object '{"qom-type":"memory-backend-ram","id":"ppc_spapr.ram","size":5368= 70912}' \ +-overcommit mem-lock=3Doff \ +-smp 1,sockets=3D1,cores=3D1,threads=3D1 \ +-uuid 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 \ +-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 \ +-boot strict=3Don \ +-audiodev id=3Daudio1,driver=3Dnone \ +-object '{"qom-type":"pef-guest","id":"pef0"}' \ +-msg timestamp=3Don diff --git a/tests/qemuxml2argvdata/launch-security-papr-pef.xml b/tests/qe= muxml2argvdata/launch-security-papr-pef.xml new file mode 100644 index 0000000000..2d49658054 --- /dev/null +++ b/tests/qemuxml2argvdata/launch-security-papr-pef.xml @@ -0,0 +1,16 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 524288 + 1 + + hvm + + + /usr/bin/qemu-system-ppc64 + + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index 4b76c15189..0c084f62bd 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -3495,6 +3495,9 @@ mymain(void) DO_TEST_CAPS_ARCH_LATEST("launch-security-s390-pv", "s390x"); DO_TEST_CAPS_ARCH_LATEST("launch-security-s390-pv-ignore-policy", "s39= 0x"); =20 + DO_TEST_CAPS_ARCH_LATEST("launch-security-papr-pef", "ppc64"); + DO_TEST_CAPS_ARCH_LATEST("launch-security-papr-pef-ignore-policy", "pp= c64"); + DO_TEST_CAPS_LATEST("vhost-user-fs-fd-memory"); DO_TEST_CAPS_LATEST("vhost-user-fs-hugepages"); DO_TEST_CAPS_LATEST_PARSE_ERROR("vhost-user-fs-readonly"); --=20 2.31.1