From nobody Wed Dec 17 03:40:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail header.i=@intel.com; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=intel.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1750845281723237.76482511015251; Wed, 25 Jun 2025 02:54:41 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id AF57E97B; Wed, 25 Jun 2025 05:54:40 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id E97B71492; Wed, 25 Jun 2025 05:51:04 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 37FC6139E; Wed, 25 Jun 2025 05:50:50 -0400 (EDT) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 835C01428 for ; Wed, 25 Jun 2025 05:50:37 -0400 (EDT) Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2025 02:50:37 -0700 Received: from spr-s2600bt.bj.intel.com ([10.240.192.127]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2025 02:50:34 -0700 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1750845038; x=1782381038; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NxVlEqmEIPpj7ahxZsZtrYb3h2ugRiBWcTplehSBzSU=; b=L9AU0k/TDyX+fgUe2VIrssQwOS4asgxI55NMk5u8IYyITZchb4mr8aCI z8imtCKaQ8ys9y6SNqaiWyZYPn3qaqCSX02f02JwHf0OBgDQS5bxQshx8 L6yw1x2/GvN/2JBNDln3Ms+IEu60otMQkHM/UQLJ0qlDUEl4D8E6aPlP9 oIsKciwrwvsqYZm79D1LL/PluI5Kmed2kDGyi10/x+4VWnaQVdalJ2Jrs SpCnqAM7snFoIlhxVD/W2ZyLR/3gC3WHG+N+UC9ue8yVAIWJA8IZ97WHa Z6ajSBjpT8g0ik4mMe+5mff2b/Z8kVNZoevc0ze/VXaIL/OZgHPTxV2Mc A==; X-CSE-ConnectionGUID: /1x+8GgBSWuSLMWYYKsgwQ== X-CSE-MsgGUID: 6MGah0CWRh+UBNLnk25fEw== X-IronPort-AV: E=McAfee;i="6800,10657,11474"; a="70680441" X-IronPort-AV: E=Sophos;i="6.16,264,1744095600"; d="scan'208";a="70680441" X-CSE-ConnectionGUID: KZkzPQe2QgqEsvzLvauz2w== X-CSE-MsgGUID: Py0dnkniQW2xmYjLGL5jhQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,264,1744095600"; d="scan'208";a="151787388" From: Zhenzhong Duan To: devel@lists.libvirt.org Subject: [PATCH v2 20/21] qemuxmlconftest: Add latest version of 'launch-security-tdx*' test data Date: Wed, 25 Jun 2025 17:45:32 +0800 Message-Id: <20250625094533.234897-21-zhenzhong.duan@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250625094533.234897-1-zhenzhong.duan@intel.com> References: <20250625094533.234897-1-zhenzhong.duan@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: FPTN7ZJ4KNRLEI4W5X4RZRWDIWGMICTI X-Message-ID-Hash: FPTN7ZJ4KNRLEI4W5X4RZRWDIWGMICTI X-MailFrom: zhenzhong.duan@intel.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 CC: phrdina@redhat.com, pkrempa@redhat.com, jjongsma@redhat.com, jsuchane@redhat.com, chenyi.qiang@intel.com, isaku.yamahata@intel.com, xiaoyao.li@intel.com, chao.p.peng@intel.com, Zhenzhong Duan X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1750845283058116600 Content-Type: text/plain; charset="utf-8" We now have the '+inteltdx' variant dumped from a modern qemu with tdx supp= ort, add qemuxmlconftest data for that variant. Signed-off-by: Zhenzhong Duan --- ...h-security-tdx.x86_64-latest+inteltdx.args | 44 +++++++++++ ...ch-security-tdx.x86_64-latest+inteltdx.xml | 74 +++++++++++++++++++ tests/qemuxmlconfdata/launch-security-tdx.xml | 27 +++++++ tests/qemuxmlconftest.c | 3 + 4 files changed, 148 insertions(+) create mode 100644 tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest= +inteltdx.args create mode 100644 tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest= +inteltdx.xml create mode 100644 tests/qemuxmlconfdata/launch-security-tdx.xml diff --git a/tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest+intelt= dx.args b/tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest+inteltdx.= args new file mode 100644 index 0000000000..3ce54cd3e8 --- /dev/null +++ b/tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest+inteltdx.args @@ -0,0 +1,44 @@ +LC_ALL=3DC \ +PATH=3D/bin \ +HOME=3D/var/lib/libvirt/qemu/domain--1-guest \ +USER=3Dtest \ +LOGNAME=3Dtest \ +XDG_DATA_HOME=3D/var/lib/libvirt/qemu/domain--1-guest/.local/share \ +XDG_CACHE_HOME=3D/var/lib/libvirt/qemu/domain--1-guest/.cache \ +XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-guest/.config \ +/usr/bin/qemu-system-x86_64 \ +-name guest=3Dguest,debug-threads=3Don \ +-S \ +-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-guest/master-key.aes"}' \ +-machine q35,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ram,confi= dential-guest-support=3Dlsec0,acpi=3Doff \ +-accel tcg \ +-cpu qemu64 \ +-m size=3D4194304k \ +-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":4294967296}= ' \ +-overcommit mem-lock=3Doff \ +-smp 4,sockets=3D4,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 \ +-device '{"driver":"pcie-root-port","port":16,"chassis":1,"id":"pci.1","bu= s":"pcie.0","multifunction":true,"addr":"0x2"}' \ +-device '{"driver":"pcie-pci-bridge","id":"pci.2","bus":"pci.1","addr":"0x= 0"}' \ +-device '{"driver":"pcie-root-port","port":17,"chassis":3,"id":"pci.3","bu= s":"pcie.0","addr":"0x2.0x1"}' \ +-device '{"driver":"piix3-usb-uhci","id":"usb","bus":"pci.2","addr":"0x2"}= ' \ +-device '{"driver":"lsi","id":"scsi0","bus":"pci.2","addr":"0x3"}' \ +-netdev '{"type":"user","id":"hostnet0"}' \ +-device '{"driver":"rtl8139","netdev":"hostnet0","id":"net0","mac":"52:54:= 00:09:a4:37","bus":"pci.2","addr":"0x1"}' \ +-chardev pty,id=3Dcharserial0 \ +-device '{"driver":"isa-serial","chardev":"charserial0","id":"serial0","in= dex":0}' \ +-audiodev '{"id":"audio1","driver":"none"}' \ +-device '{"driver":"cirrus-vga","id":"video0","bus":"pcie.0","addr":"0x1"}= ' \ +-global ICH9-LPC.noreboot=3Doff \ +-watchdog-action reset \ +-object '{"qom-type":"tdx-guest","id":"lsec0","mrconfigid":"ASNFZ4mrze8BI0= VniavN7wEjRWeJq83vASNFZ4mrze8BI0VniavN7wEjRWeJq83v","mrowner":"ASNFZ4mrze8B= I0VniavN7wEjRWeJq83vASNFZ4mrze8BI0VniavN7wEjRWeJq83v","mrownerconfig":"ASNF= Z4mrze8BI0VniavN7wEjRWeJq83vASNFZ4mrze8BI0VniavN7wEjRWeJq83v","attributes":= 1}' \ +-device '{"driver":"pvpanic"}' \ +-msg timestamp=3Don diff --git a/tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest+intelt= dx.xml b/tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest+inteltdx.x= ml new file mode 100644 index 0000000000..77fada7408 --- /dev/null +++ b/tests/qemuxmlconfdata/launch-security-tdx.x86_64-latest+inteltdx.xml @@ -0,0 +1,74 @@ + + guest + 1ccfd97d-5eb4-478a-bbe6-88d254c16db7 + 4194304 + 4194304 + 4 + + hvm + + + + qemu64 + + + destroy + restart + destroy + + /usr/bin/qemu-system-x86_64 + +
+ + +
+ + +
+ + + + + +
+ + + +
+ + + + +
+ + + + +
+ + + + + + + + + + + +