Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp415835lqd; Wed, 24 Apr 2024 06:28:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWUk6+vKXyaL0AaXH1RALkR6vFuJkfUkTeCwWn4KiA0ANDnHY63ad8r0cO4BOx4YfN8ikZBQ+vpiz20cdvYJfRzjGIf/ZCjGYU1YPf90Q== X-Google-Smtp-Source: AGHT+IEVq/aa1Daa5QAv7nNhgfQLuIj2xVzhVxSNb1JElS4CJS3BzIqo0ndI0RIB2aSXeMcwKqqw X-Received: by 2002:a17:906:849:b0:a55:bd8e:b6ef with SMTP id f9-20020a170906084900b00a55bd8eb6efmr1547322ejd.37.1713965286572; Wed, 24 Apr 2024 06:28:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713965286; cv=pass; d=google.com; s=arc-20160816; b=f7UetDjg7xfgxWUvJ5WnOkht69oBRzydEwOywUCbCUZdl10RbHx2/j7Y/KlvqMTNyj +QbdNv+B5A40vsP1Xprg2Lbg6wBsJhEiidwzBHpfWUMs9Gvr1fZsp12AUWjHnbJ73G55 S5LhcMv/UMNIdziJpLHCUKzSGxq+UAI4vyLV5u8T4qmi5I3f+fB/+7vC/djTTOkU+J+i c6wyfbyxZyajv8FbV2zqe0Wf9Zssqpw9NSjJPO1q7rgxfvGg/4+hb5iTYZGXeMjwCz8z loknYiRDDHE8IrVcZHRPOeT4XRUdSq6XM7Oq6dShB177baEZCg1rKuxIA9Wx87NOPvUb djXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=6DgUBThT3zdUrY0EzCfeD8eHttUsre5uzJ+CLJptbRo=; fh=ck/rnePh5eEx9gNqYbFRC4zPI1k+olhLkQ2r+5noMSo=; b=HdHfVOzDow05vBnE2SyZvCQI9S5J5ihwv+gl0bjKuYMyKJXEFxvDVcqyrhx+L31/OJ kC560u+4fclCBRIyZLig4BPCv3LkRR8xziaFwIm4f6qi0LOQc971zeM6wJzyyqq2jS+5 7UK3vuRM30aEyKkYONPKNrFIsLPlyGKR9d17QnXtIVizh3/BKz4j7ACG2mWBtLUotqoe 4fn46j3mw3d6g5psJNKegQjFJo7Mo0HdMR8Hy3JBfENG1Y9bQLIg+OSTJbNSk7xgbYPm zD8F3dGjIv4MOPD8r60cgTWyF2GieU7IVKtkhLW+l1rPhXT239vl4ygZsXULqk1uIx4H wBnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-156955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id la12-20020a170907780c00b00a5559e7f8casi8729030ejc.317.2024.04.24.06.28.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 06:28:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-156955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 338871F23231 for ; Wed, 24 Apr 2024 13:28:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE5B715D5CA; Wed, 24 Apr 2024 13:27:47 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F07FB15CD51; Wed, 24 Apr 2024 13:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713965267; cv=none; b=NMwjNj9UXuRUDAGkOYfOypAYd3oiu6FCKxX4l5iXvCdvQixS3TE44E78NKMyqcg8QkmO1j9VMQ6DnQqeyUnN6LVQ4/U3yP/Efqih0xwnJ8k3E48dPYHyQ+7y7aTNJAToYpTZbG0DqwWpFDKemKxTFtoGzKJkRsmT9XaqNgeg1yw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713965267; c=relaxed/simple; bh=RHRNpt1GrdBK2G7+COQrLb3IEKD0I7+HfEEcq1CkGtk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=j8x3mLOl7QuABUxWIwIzRbS5UkvAphZNdY5zJkz+DluuJ+7dZYhSQw4zxDj4Uf+NvqKdtHyUuGR2NY57QK5I0r6GOMAjdRaQNlK16QQVebsfFj55iE/xDhhXxEKAhn1/8dAVUI/Qbn3f4ZOyHZ5n52frEkAvAzV6DEM0pQWL0wE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 190582F; Wed, 24 Apr 2024 06:28:13 -0700 (PDT) Received: from [10.57.86.198] (unknown [10.57.86.198]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DCF6A3F64C; Wed, 24 Apr 2024 06:27:42 -0700 (PDT) Message-ID: <7c6504dd-ebef-4809-9e1d-7151db647e2a@arm.com> Date: Wed, 24 Apr 2024 14:27:41 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 14/14] virt: arm-cca-guest: TSM_REPORT support for realms Content-Language: en-GB To: Thomas Fossati , Steven Price Cc: kvm@vger.kernel.org, kvmarm@lists.linux.dev, Sami Mujawar , Catalin Marinas , Marc Zyngier , Will Deacon , James Morse , Oliver Upton , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Joey Gouly , Alexandru Elisei , Christoffer Dall , Fuad Tabba , linux-coco@lists.linux.dev, Ganapatrao Kulkarni References: <20240412084056.1733704-1-steven.price@arm.com> <20240412084213.1733764-1-steven.price@arm.com> <20240412084213.1733764-15-steven.price@arm.com> From: Suzuki K Poulose In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24/04/2024 14:06, Thomas Fossati wrote: > Hi Steven, Sami, > > On Fri, 12 Apr 2024 at 10:47, Steven Price wrote: >> +/** >> + * arm_cca_report_new - Generate a new attestation token. >> + * >> + * @report: pointer to the TSM report context information. >> + * @data: pointer to the context specific data for this module. >> + * >> + * Initialise the attestation token generation using the challenge data >> + * passed in the TSM decriptor. > > Here, it'd be good to document two interesting facts about challenge data: > 1. It must be at least 32 bytes, and > 2. If its size is less than 64 bytes, it will be zero-padded. Agreed ! Suzuki > > cheers!