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 49973C433F5 for ; Wed, 18 May 2022 13:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238349AbiERN7R (ORCPT ); Wed, 18 May 2022 09:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238164AbiERN7P (ORCPT ); Wed, 18 May 2022 09:59:15 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A9918AA92; Wed, 18 May 2022 06:59:15 -0700 (PDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24IDBi21014998; Wed, 18 May 2022 13:59:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=8OiUgjvTXe5e6wrVNeWG9qNQ8k3neC/tmmup7afWmfE=; b=D6/696Hv5z0eTnlo4Rspx3G79Mv9eYYHgz3TQHz/jdArpwhCWunuumpmIWH65dYHweQk gnwhjgcdU/IQ20RnUHvz3rKoFSzT9q8jCXuUdMLTV++pudmCEqehE3RFrhzYbnIKXs3d CP6sPSVOQrPq5OmLucc4Ncca+5NoUXR1ylxdpchuUimbHH+PSRbn/GZfPH+9m+u+a55g 1bjQVDpgvDXZZE19PDs+EKK9DIOg0r4nqKC2wfln/0MObeg96gRSBRdBJxVppHQru5em rgK/lHnfPYtxFtYbaq9ZYH7AiTM3KKfTGCG/bby81xXnHOWPele5GspNKK1bar/0VVfP 5A== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3g51fg1atf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 13:59:14 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24IDoLR6021764; Wed, 18 May 2022 13:59:12 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma06ams.nl.ibm.com with ESMTP id 3g23pjdth8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 May 2022 13:59:12 +0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24IDjGjo55247166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 May 2022 13:45:16 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3088042042; Wed, 18 May 2022 13:59:09 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D23784203F; Wed, 18 May 2022 13:59:08 +0000 (GMT) Received: from t46lp73.. (unknown [9.152.108.100]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 18 May 2022 13:59:08 +0000 (GMT) From: Steffen Eiden To: Heiko Carstens , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Nico Boehr , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/1] s390: Add attestation query information Date: Wed, 18 May 2022 13:59:07 +0000 Message-Id: <20220518135908.1110319-1-seiden@linux.ibm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: a65w63iDIbMh7fNey7CooTkG3g-CwaR2 X-Proofpoint-GUID: a65w63iDIbMh7fNey7CooTkG3g-CwaR2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-18_04,2022-05-17_02,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=884 spamscore=0 malwarescore=0 bulkscore=0 mlxscore=0 clxscore=1015 impostorscore=0 adultscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205180079 Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org By design the uv-device does not check whether an incoming attestation measurement request only specifies valid plaintext flags or has the right request version, as these values are verified by the Ultravisor anyway. However, the userspace program that generates these requests might want to know which flags/versions are supported in order to create requests without trial and error. Therefore, we must expose the supported plaintext flags and versions to userspace. since v1: * rebased on Janosch's "kvm: s390: Add PV dump support" series * added rationale as this cover letter Steffen Eiden (1): s390: Add attestation query information arch/s390/boot/uv.c | 2 ++ arch/s390/include/asm/uv.h | 7 ++++++- arch/s390/kernel/uv.c | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) -- 2.30.2