From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id AB16F1FF0AF for ; Thu, 24 Sep 2026 16:23:44 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 541ED2175E; Thu, 24 Sep 2026 16:23:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1790259249; bh=rhcyDoEYNQHHmTH18iU5GpZtRcONBqdT/Q6hhcCE3xs=; h=Date:From:To:Subject:References:In-Reply-To:From; b=IQhidk+f2AVeHPth8bTMNGnXYhO5dAN7VVBAoOTCZcMEeL+9aEhSwq/QUEny95/v0 gFbZRUp/AoJfndJ9/yRXR86KeVqcUFxmwqAABy+4x2n1gloSRzNwE/FsvGiKrYdoZ+ BQEbi0LQY44JBrUyALCtTqntrsZPBSQVdXXlIHd+i6+GLVA4VjVi7WpvN/Fb2M3KbB 8D8RVMY5t/63zDjoC1LgiH3xg910lHkZBBaaM1G2qlNqI1dcddb/zOJYANxPSrtYRg y7nyaG0ioj74WKyN6zd46mGd54PIKC1XeaHzG1unfE0KbgSLUeJuwbesbqp0bUkLQ7 LYsKRKhorsZjQ== Date: Thu, 24 Sep 2026 16:14:08 +0200 From: Christian Ludwig To: Subject: [PATCH pve-manager 5/7] api: register SEV capabilities endpoint Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [192.168.217.185] X-ClientProxiedBy: kch1-mta07.win.genua.de (10.208.16.107) To kch1-mta07.win.genua.de (10.208.16.107) Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="----6CC879ED6844C24375FB7DD2E8A24065" X-SPAM-LEVEL: Spam detection results: 0 AWL 0.119 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record UNPARSEABLE_RELAY 0.001 Informational: message has unparseable relay lines Message-ID-Hash: CFKLQXC6B6XSE6A2TKNOJILYRQUDKXOY X-Message-ID-Hash: CFKLQXC6B6XSE6A2TKNOJILYRQUDKXOY X-MailFrom: christian_ludwig@genua.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Content-Filtered-By: Mailman/MimeDel 3.3.10 X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ------6CC879ED6844C24375FB7DD2E8A24065 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Wire up PVE::API2::Qemu::Sev from qemu-server, which exposes the SEV chip ID and reported SNP TCB security patch levels. Signed-off-by: Christian Ludwig --- PVE/API2/Capabilities.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PVE/API2/Capabilities.pm b/PVE/API2/Capabilities.pm index 30b03c2d..43d67fbe 100644 --- a/PVE/API2/Capabilities.pm +++ b/PVE/API2/Capabilities.pm @@ -9,6 +9,7 @@ use PVE::RESTHandler; use PVE::API2::Qemu::CPU; use PVE::API2::Qemu::CPUFlags; use PVE::API2::Qemu::Machine; +use PVE::API2::Qemu::Sev; use PVE::API2::NodeCapabilities::Qemu::Migration; use base qw(PVE::RESTHandler); @@ -28,6 +29,11 @@ __PACKAGE__->register_method({ path => 'qemu/machines', }); +__PACKAGE__->register_method({ + subclass => "PVE::API2::Qemu::Sev", + path => 'qemu/sev', +}); + __PACKAGE__->register_method({ subclass => 'PVE::API2::NodeCapabilities::Qemu::Migration', path => 'qemu/migration', @@ -94,6 +100,7 @@ __PACKAGE__->register_method({ { name => 'cpu-flags' }, { name => 'machines' }, { name => 'migration' }, + { name => 'sev' }, ]; return $result; -- 2.34.1 ------6CC879ED6844C24375FB7DD2E8A24065--