Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp508140iob; Wed, 18 May 2022 07:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxab5MV3GvVv8xnvS5IsTG/WAa6lWVflPo+qWORET+oxLsINHp5qjyE5N8zeDiyWGom5wB2 X-Received: by 2002:a17:903:124a:b0:154:c7a4:9375 with SMTP id u10-20020a170903124a00b00154c7a49375mr27761760plh.0.1652882621475; Wed, 18 May 2022 07:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652882621; cv=none; d=google.com; s=arc-20160816; b=R5n0NFho57MIQTLWtEKN0VnNplJTZIJXGesp8XRatA/XbFXNaphtVq7QMy5FYnRn7z gVVgJW+D0YAVmjXkxyAdY3cMET1xgnzlSvY5PTCtyKV4MQknU3JJsJ2lS5/mvn7xc1KN y6+IXAg4gFMrtdfw/b5BpGJb2lmk7E7GB476l2gsUONl2O054GxuXrc02fmyleCpiQdv yDM98+Vd/jNb8nb6tK1BK+akCCOhKveeXZfmg4juIjD1tK6cyLwKaoRjyFaC/MiDSxP/ zLqhY3EDkEkMlL2PPgq5LyjRsHBso7ckJcBFoHBu+vKppLfNOYbYL1oDXVxyfMfASNl8 IQSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=8OiUgjvTXe5e6wrVNeWG9qNQ8k3neC/tmmup7afWmfE=; b=GzxLwhQKJu8gzbDVYakWXv/sEuQYDhIlYbslyHzrQu1rkdnu17+Y42fkxe8R47X3p9 I5yfSTlP1Xtpou2bBYRluRql4LVeomZ5RU8vrD66tNDMrAL51Rsoih6SA0MmTUTT//dY 2Z+ZUYyRikt2GY9Ez24db9aqz4DeoZUvwefEv0ZnnSnjGT+K7DXAg6kzcnyk5qBODCED Bs26eahiHhXa/Gg+Wq7xOSI8S7/a0CrovfeXep11Vj+usytbcI4q6Nm8+6y3WL6nWlM6 LnerxnL1j/5Ys3WQ9HvMUSANF7MpMeg42N5kBmkPtMXMHuemmu1Vo/LmxOXP0XZfTXQo 1hPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="D6/696Hv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h19-20020a170902f2d300b0015b3dbc18b3si2608481plc.371.2022.05.18.07.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 07:03:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="D6/696Hv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 461A21A6AF3; Wed, 18 May 2022 06:59:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238184AbiERN7W (ORCPT + 99 others); Wed, 18 May 2022 09:59:22 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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