From nobody Sun Apr 12 06:10:31 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1771415116; cv=none; d=zohomail.com; s=zohoarc; b=aNLQjafgciZ41jYQb2F0ZlspPAQc4iU5hnIK9cch25x4a0CESFLpKJiQJLomCl6zzsDvJwdmAkP9ncvTEhSf7i3oisWyBoLtlkQRtaaeon7k/6KJgAAuGgCohVJxM/7W2ILfas7OR4EChZTLiTzkn3hwKarB3ppYMn/tAg4uwyU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771415116; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wNOtE9iAdY/fz5zXRGOHALzxPR6yavv/SKATwTTFh+E=; b=QiXq6AKMUG0XwiGe+txB3BUi62iWzcB9jgBJ54lFeLyQorPNBQkqvInnXURA3+eIcBfP06Q6YnHIOLlJvkNrAVeXoNJgG5Tl1UHAm29dnD8Ba3wjnRubw9Ufx3wYRBOdb68k9F+hv5nq39Pk1RuQ4hyfZQ93w4Mj7iv9DqG12V4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177141511637453.89502056651213; Wed, 18 Feb 2026 03:45:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vsfzF-0005dX-IJ; Wed, 18 Feb 2026 06:44:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsfz1-0004Vy-2r for qemu-devel@nongnu.org; Wed, 18 Feb 2026 06:44:45 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vsfyp-0000DB-Th for qemu-devel@nongnu.org; Wed, 18 Feb 2026 06:44:33 -0500 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-670-dfzRB1vKNK6m7qjMrTbauw-1; Wed, 18 Feb 2026 06:44:29 -0500 Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2a7a98ba326so11896075ad.1 for ; Wed, 18 Feb 2026 03:44:29 -0800 (PST) Received: from rhel9-box.lan ([117.99.83.54]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2ad1aaeab38sm127803425ad.82.2026.02.18.03.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Feb 2026 03:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771415071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wNOtE9iAdY/fz5zXRGOHALzxPR6yavv/SKATwTTFh+E=; b=TCM4Qtmw8H71yZo/+9Ch7r4JuaD6noICSCOb2PmrLNoKpkRYuOvKvE7Q+SLH4ARLb5jD8x 9wq8tTUjma3fH2Q5uwV6mOaAwenakUFOL66AkIM5Yo0yFcJdtfNzYd0c/HiaMrWim5iY2l 8ANJCOkDMb+KBLGR7yGaAcUdyEieULk= X-MC-Unique: dfzRB1vKNK6m7qjMrTbauw-1 X-Mimecast-MFC-AGG-ID: dfzRB1vKNK6m7qjMrTbauw_1771415069 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1771415069; x=1772019869; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wNOtE9iAdY/fz5zXRGOHALzxPR6yavv/SKATwTTFh+E=; b=LcZV4Gonm2W7NipZXPj/nC8KuJ+2U+8hqIWT+qBmm5T/bs25PKNXnP/gmwKB4fQpO4 Ijl1C4opcLc5DD+1PGwogedPqqelgjLPMWZpnWE0pXVac9KUSfUl2RkUEhsjda+Zavpu arzfufpFQXLMp9cOiB0NgJlWpoTwWmR4JlcjwPL1ZJ3Op1FWbqP5WDj0Hd6NywvU6zlE EnwyJxAG9TnapB+ZycxnJ2clMKogs7oazyRuN29v8OcGDtVutv8OYoWgkd2UgGuB1G+x 5YSlCR3pnAdKlj/n281hKsgfKsflp8GxUCnuej5TMMa1JgrAVEXJN00+BOnuy9WPSumY nAow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771415069; x=1772019869; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=wNOtE9iAdY/fz5zXRGOHALzxPR6yavv/SKATwTTFh+E=; b=ARJPYsdY0Ve5cifAmtdz+NyNruE1CEmI1DGTPn7eHFpZTQWZ/9AWaeySDtdDqL6OQd jays+Vsuwwf2yC8N2qGF6kOU1J1kOdv8k5AJ8wToC7mvGGP3u2gY0wHL6E/RkjeaQ6eR dyAWGaVGSsZqkcYsLVpC3V+aDJWcGrXcbHnoP6UkB9ql0qAVCrJpVLM5ABbOvdZ6A0tc e3GxnAfUhRP9TOsBK0RRpwhUpS3LHSSGZBFWFxCLzMm57ephv9UW0Wwrdv4qQPAKjeUs NXvhHPm9pBiQvkV9LBHDLQmX7KXR7vAJjx8JCzQVK0p8aLJls1S3sAtORaFhXXOs/LDf 0bBg== X-Forwarded-Encrypted: i=1; AJvYcCUBjKONs6684XjQVVJqQXgJm4CrbBNEHKP5dBV0ZmKf+uMmWarfA01p7cjd95o6iTdWNS46g6gLMWKo@nongnu.org X-Gm-Message-State: AOJu0YySOUFU1xSaDIGlq60FlY35rS1Ugv8uDVAohyy9wwcic2l0Iq6h CdSGPl18kZMK0A5r0sPIQ/k7y9kwjIU2J/r2SvT4G/ENXHlU30g+Ycbo+OCoA6rdi/h9PHnlWlV 7ETkZH+C/zvLCFcIZTr5oHmZqyhIG0XpOrTfrocunstHNVDqOvUyZCICU X-Gm-Gg: AZuq6aK1HmbZnsws4AxRQVns8F68lUdNrRfOnn5WbQ7IjitVvgjCR+5lKKRmWIdI41g LYvHHJxtU7nwuC3rinrhueMeeYtTA+34LM2r8S4VJXjDlvK7TwYk3ZAzqTYO+nRYsC6TOCIg8jz e2fXkFTKMcgFMn5VqwYRCVawmQ8OcuqQY+F4B4OuZnOVkfNWupryjjSRaeJnEWJUbnxgQQ33s/+ J8y1TrzTy96rGNK5Vlq2M50TqWdiJ1Y3+rYTVxMrFTsSznMCd0SQAnhrtZLwf3cDcpf9Hi9EJCy JN+5YhzeCnfqvEsoykv7P7+5LtDXYan8fsUYH6e0MDB7dfeJ+GTUB4ve0k4gHtbeksBOjvgSIiA JhhaZGFobM/cYJr7Uxz4JBmUul13v0gmYNJlnqM/d1xEey6NrPPKg X-Received: by 2002:a17:902:ef03:b0:294:f6e5:b91a with SMTP id d9443c01a7336-2ad50bbdcdcmr14727675ad.13.1771415068725; Wed, 18 Feb 2026 03:44:28 -0800 (PST) X-Received: by 2002:a17:902:ef03:b0:294:f6e5:b91a with SMTP id d9443c01a7336-2ad50bbdcdcmr14727525ad.13.1771415068359; Wed, 18 Feb 2026 03:44:28 -0800 (PST) From: Ani Sinha To: Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eduardo Habkost , Eric Blake , Markus Armbruster Cc: Ani Sinha , kraxel@redhat.com, qemu-devel@nongnu.org Subject: [PATCH v5 33/34] qom: add 'confidential-guest-reset' property for x86 confidential vms Date: Wed, 18 Feb 2026 17:12:26 +0530 Message-ID: <20260218114233.266178-34-anisinha@redhat.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20260218114233.266178-1-anisinha@redhat.com> References: <20260218114233.266178-1-anisinha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=anisinha@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.043, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1771415118782154100 Through the new 'confidential-guest-reset' property, control plane should be able to detect if the hypervisor supports x86 confidential guest resets. Ol= der hypervisors that do not support resets will not have this property populate= d. Suggested-by: Daniel P. Berrang=C3=A9 Signed-off-by: Ani Sinha Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Markus Armbruster --- qapi/qom.json | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/qapi/qom.json b/qapi/qom.json index 6f5c9de0f0..c653248f85 100644 --- a/qapi/qom.json +++ b/qapi/qom.json @@ -1009,13 +1009,19 @@ # designated guest firmware page for measured boot with -kernel # (default: false) (since 6.2) # +# Features: +# +# @confidential-guest-reset: If present, the hypervisor supports +# confidential guest resets (since 11.0). +# # Since: 9.1 ## { 'struct': 'SevCommonProperties', 'data': { '*sev-device': 'str', '*cbitpos': 'uint32', 'reduced-phys-bits': 'uint32', - '*kernel-hashes': 'bool' } } + '*kernel-hashes': 'bool' }, + 'features': ['confidential-guest-reset']} =20 ## # @SevGuestProperties: @@ -1136,6 +1142,11 @@ # it, the guest will not be able to get a TD quote for # attestation. # +# Features: +# +# @confidential-guest-reset: If present, the hypervisor supports +# confidential guest resets (since 11.0). +# # Since: 10.1 ## { 'struct': 'TdxGuestProperties', @@ -1144,7 +1155,8 @@ '*mrconfigid': 'str', '*mrowner': 'str', '*mrownerconfig': 'str', - '*quote-generation-socket': 'SocketAddress' } } + '*quote-generation-socket': 'SocketAddress' }, + 'features': ['confidential-guest-reset']} =20 ## # @ThreadContextProperties: --=20 2.42.0