From nobody Sun Oct 5 01:47:32 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; 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=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1757513384; cv=none; d=zohomail.com; s=zohoarc; b=msvpNy/NE1mJZxuJI7rygtqxaoqEbFcqxZncCcg8o8Fcjg5zrbVF+rlZ5iHfPMQu0nfF4DZB3+GkZ+vyAGPiu2iPQjtRGPYeBKvOUohJE5Ao4ikWZ4avRrFvdGerBmXrsK2eW0uiIeH6QJGgaMEuPMC/PhGA4b1iRp0vLzwmMbI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1757513384; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=SRb2UeBQkMBKiMvIGYme2+s0mHl8CZaYErPzCJYgpws=; b=a2Ig+baSBi0aiPTZZWPYO8T7WZr11gTva/O/Y5cXjY+xxSTFMtUQnAG3F4/auVne3QoO6gPkRxXs0RHx1ocmqvTiGlWNYdRL5b+UsF8phhDSEJeLpexMS0Z4vfeld3CZxfL8L2SNLYATiPQp3Qh1n3P5t1QnP6tgdMJx9Me16ps= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1757513384502578.8695185739588; Wed, 10 Sep 2025 07:09:44 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 73FB941C97; Wed, 10 Sep 2025 10:09:43 -0400 (EDT) Received: from [172.19.199.3] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 5186743E98; Wed, 10 Sep 2025 09:59:04 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 20D0A4186B; Wed, 10 Sep 2025 09:58:57 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id C389641BAB for ; Wed, 10 Sep 2025 09:57:57 -0400 (EDT) Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-482-GFyXZHYFPAyftvVOY-opIw-1; Wed, 10 Sep 2025 09:57:56 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5EC9F195609E for ; Wed, 10 Sep 2025 13:57:55 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.226.29]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 92D4D18004D8 for ; Wed, 10 Sep 2025 13:57:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1757512677; h=from:from: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; bh=SRb2UeBQkMBKiMvIGYme2+s0mHl8CZaYErPzCJYgpws=; b=GGxpmSct7waTANecuVPt2jpPG7hWfpB7mtGqzBXZ7yaAStayjksPVrma8shK7kxf5Sdpdd 41OCjmvszyoB5lQhCRzn32f16ATnam1U2zUZ2XCPWCXhO2llB5QWG29OpaHO0r6Nb2Md4W j9BC2OaT+9EFeVAEkmh3bOygzXI41KY= X-MC-Unique: GFyXZHYFPAyftvVOY-opIw-1 X-Mimecast-MFC-AGG-ID: GFyXZHYFPAyftvVOY-opIw_1757512675 To: devel@lists.libvirt.org Subject: [PATCH v3 3/9] tests: Improve AMD SEV-related tests Date: Wed, 10 Sep 2025 15:57:41 +0200 Message-ID: <20250910135747.803614-4-abologna@redhat.com> In-Reply-To: <20250910135747.803614-1-abologna@redhat.com> References: <20250910135747.803614-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: OSTW36zsrZAsTtU30CgLL3BRyKSFCGvbgtvmfekmdFk_1757512675 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: SEP4S2E2YZHMT4QZJIVBPHM7JO32OR7A X-Message-ID-Hash: SEP4S2E2YZHMT4QZJIVBPHM7JO32OR7A X-MailFrom: abologna@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Andrea Bolognani via Devel Reply-To: Andrea Bolognani X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1757513387859116600 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Jim Fehlig SEV and SEV-ES guests should use q35 machine type and uefi. Adjust existing tests accordingly. Signed-off-by: Jim Fehlig Reviewed-by: Andrea Bolognani --- ...curity-sev-direct.x86_64-latest+amdsev.args | 4 +++- ...ecurity-sev-direct.x86_64-latest+amdsev.xml | 8 ++++++-- ...unch-security-sev-direct.x86_64-latest.args | 4 +++- ...aunch-security-sev-direct.x86_64-latest.xml | 8 ++++++-- .../launch-security-sev-direct.xml | 2 +- ...ing-platform-info.x86_64-latest+amdsev.args | 6 +++++- ...sing-platform-info.x86_64-latest+amdsev.xml | 18 +++++++++++++++--- ...unch-security-sev-missing-platform-info.xml | 8 ++++++-- ...unch-security-sev.x86_64-latest+amdsev.args | 6 +++++- ...aunch-security-sev.x86_64-latest+amdsev.xml | 18 +++++++++++++++--- tests/qemuxmlconfdata/launch-security-sev.xml | 8 ++++++-- 11 files changed, 71 insertions(+), 19 deletions(-) diff --git a/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest= +amdsev.args b/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-late= st+amdsev.args index 909e88b0b9..56fa8e0b21 100644 --- a/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest+amdsev= .args +++ b/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest+amdsev= .args @@ -10,7 +10,7 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ -name guest=3DQEMUGuest1,debug-threads=3Don \ -S \ -object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/va= r/lib/libvirt/qemu/domain--1-QEMUGuest1/master-key.aes"}' \ --machine pc,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ram,confid= ential-guest-support=3Dlsec0,acpi=3Doff \ +-machine pc-q35-8.2,usb=3Doff,dump-guest-core=3Doff,memory-backend=3Dpc.ra= m,confidential-guest-support=3Dlsec0,acpi=3Doff \ -accel kvm \ -cpu qemu64 \ -m size=3D219136k \ @@ -31,6 +31,8 @@ XDG_CONFIG_HOME=3D/var/lib/libvirt/qemu/domain--1-QEMUGue= st1/.config \ -append runme \ -shim /shim \ -audiodev '{"id":"audio1","driver":"none"}' \ +-global ICH9-LPC.noreboot=3Doff \ +-watchdog-action reset \ -object '{"qom-type":"sev-guest","id":"lsec0","cbitpos":47,"reduced-phys-b= its":1,"policy":1,"dh-cert-file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest= 1/dh_cert.base64","session-file":"/var/lib/libvirt/qemu/domain--1-QEMUGuest= 1/session.base64","kernel-hashes":true}' \ -sandbox on,obsolete=3Ddeny,elevateprivileges=3Ddeny,spawn=3Ddeny,resource= control=3Ddeny \ -msg timestamp=3Don diff --git a/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest= +amdsev.xml b/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-lates= t+amdsev.xml index 01ca8fe012..39786d7a50 100644 --- a/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest+amdsev= .xml +++ b/tests/qemuxmlconfdata/launch-security-sev-direct.x86_64-latest+amdsev= .xml @@ -5,7 +5,7 @@ 219100 1 - hvm + hvm /vmlinuz /initrd runme @@ -22,10 +22,14 @@ /usr/bin/qemu-system-x86_64 - + +
+ +