From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08D3CC636CC for ; Tue, 31 Jan 2023 16:14:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231726AbjAaQOC (ORCPT ); Tue, 31 Jan 2023 11:14:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231535AbjAaQN7 (ORCPT ); Tue, 31 Jan 2023 11:13:59 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409DA53E61; Tue, 31 Jan 2023 08:13:59 -0800 (PST) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30VG07ot013497; Tue, 31 Jan 2023 16:13:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=FINUAg1WucVA9MOZDjT6kysOWleWIxQcgFUWtXsqS70=; b=hSsAl6A3esS/oOsmkHvD0MixiuhDZmQLZrX3F8t5tqFUbkj8OYzk3XbZaJo1R9mDT623 f4DI8KNu+JCft/kC/nSw0boIEDZnmlqP2Ehkf0A9Gp3/7qpGNgtWEwLQzcgZtj+8Hdfn RieFhFDbsrS9oqKjL2QZE+URDMWHCXxITjoRm/TdVTtCu6FWpphu5FIEmdS7vukB7g2r 4LgtptD5kQzVyKgHcj3IF0wGe+pwOcsnF5Rjwzau9t9jWJoVgXaM7QYezNCO+N0p7Z7c 8VjYgNHZasA72fPiiBhGRCVFWS5e5v1h2jovAGNRiLLOBrq7Dwt1YJ9hUSCS1idbUHhr ng== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3nf390njrg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Jan 2023 16:13:50 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 30VG0HUp016363; Tue, 31 Jan 2023 16:13:49 GMT Received: from ppma02dal.us.ibm.com (a.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.10]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3nf390njqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Jan 2023 16:13:49 +0000 Received: from pps.filterd (ppma02dal.us.ibm.com [127.0.0.1]) by ppma02dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 30VE5doS019281; Tue, 31 Jan 2023 16:13:48 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([9.208.130.101]) by ppma02dal.us.ibm.com (PPS) with ESMTPS id 3ncvuqn15y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Jan 2023 16:13:48 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 30VGDkZg6685200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Jan 2023 16:13:46 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C18E858059; Tue, 31 Jan 2023 16:13:46 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D26DA58055; Tue, 31 Jan 2023 16:13:45 +0000 (GMT) Received: from [9.47.158.152] (unknown [9.47.158.152]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 31 Jan 2023 16:13:45 +0000 (GMT) Message-ID: Date: Tue, 31 Jan 2023 11:13:45 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v5 16/25] powerpc/pseries: Expose PLPKS config values, support additional fields Content-Language: en-US To: Andrew Donnellan , linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org Cc: ruscur@russell.cc, bgray@linux.ibm.com, nayna@linux.ibm.com, gcwilson@linux.ibm.com, gjoyce@linux.ibm.com, brking@linux.ibm.com, sudhakar@linux.ibm.com, erichte@linux.ibm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, joel@jms.id.au, npiggin@gmail.com References: <20230131063928.388035-1-ajd@linux.ibm.com> <20230131063928.388035-17-ajd@linux.ibm.com> From: Stefan Berger In-Reply-To: <20230131063928.388035-17-ajd@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: EptQK4PirugSYAjA_Zch2NOmZqAHmttM X-Proofpoint-ORIG-GUID: 1hliFv_I_nIslKqPHQMeeUr4bDWhLRVv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-31_08,2023-01-31_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 impostorscore=0 clxscore=1015 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301310142 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/31/23 01:39, Andrew Donnellan wrote: > From: Nayna Jain > > The plpks driver uses the H_PKS_GET_CONFIG hcall to retrieve configuration > and status information about the PKS from the hypervisor. > > Update _plpks_get_config() to handle some additional fields. Add getter > functions to allow the PKS configuration information to be accessed from > other files. Validate that the values we're getting comply with the spec. > > While we're here, move the config struct in _plpks_get_config() off the > stack - it's getting large and we also need to make sure it doesn't cross > a page boundary. > > Signed-off-by: Nayna Jain > [ajd: split patch, extend to support additional v3 API fields, minor fixes] > Co-developed-by: Andrew Donnellan > Signed-off-by: Andrew Donnellan > Signed-off-by: Russell Currey Reviewed-by: Stefan Berger