Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp508165rdb; Mon, 29 Jan 2024 08:54:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHL37lGtYpKstp2sISxYRAt5CL1rl9zZ9E4pWiTVcCt0gfGOYonVXZitVAq7kQq4m/MeiZ9 X-Received: by 2002:a17:90a:e2d7:b0:293:e467:15cf with SMTP id fr23-20020a17090ae2d700b00293e46715cfmr2398986pjb.15.1706547245742; Mon, 29 Jan 2024 08:54:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706547245; cv=pass; d=google.com; s=arc-20160816; b=BQEAZf4ff2mSH2dzrhE42XUZrBO1wTKTMdKvMmVzz8GHfTMHEXvgrubv/qvH5ixrvk 5D0THDvSRgbBkuq/usHR/+EEe4tb/mRKmKcA5iGRhIAOagSL2kkn3+eHElHeYXwvp0mK GtiaBFIir3+N52zziUNhG/+n+20REk71w6N7ulOj7WZw99G6ktWB1UZvjPRDItrxV0GH I9JFZjY/LeJwSo76LvpFUfpQKrZQ5pN/s3jLqC2m8bDg1Ou5Hw1D+LwdH9HitvyUEoGd DeXJbLcFUGwgCbdWktSGREl5/Ds7jus9iMsLQh4u2Q2dUrl4ajO0O51SYow5pXem+nZf OVvQ== 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:dkim-signature; bh=uBbid1amquyLIJr4bv4Vc6+0vlJFqIwuorIR4rfEizY=; fh=mrVc77b6/EDdwrKLIj8Yt3iIByc1tsM2AqqpxjTBrUE=; b=LO798mZc+PPFFlEJBSjBNoZRh4VaobR4nTkEoNJSphXN8Tz7F/PSsC+sgWB9GuqynA 2XmIcDGSTPDWlJ3c3WppUNgai2TLxDgi9j/yMKnFdEfclSYQ2ELqGZf9wQb2QB5BEYJr 9FLjkgG2r546FLiRyh32Y8D9a3bi+aDYPIQwinGExLIrNHVOo5KKYtiB+QoSBjCUhA1Y nTKzitiRYgxHM4jOcQxJls9ii7Afe2qStd4M2KmalEeIjo3dmOD8CzxVqNMsI3zI+YgH 56gPzD0JZmUVMB+ulsi3c9+zd7kJioWNry6vcwY2d4pq/NO5+gVoTIJpfyN9sY4/z0e+ dMoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XFH4jAma; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-43149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m9-20020a17090a7f8900b00290191c241bsi7998851pjl.19.2024.01.29.08.54.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:54:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XFH4jAma; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-43149-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43149-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E7D44284F43 for ; Mon, 29 Jan 2024 16:53:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29277157039; Mon, 29 Jan 2024 16:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="XFH4jAma" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83248154BF0; Mon, 29 Jan 2024 16:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547193; cv=none; b=fI8k+rMxcl0rZ/yBbdV6ey6Yki5XQXejzigQ8qPXGN/+Emsoe7y81JhsJrwxf0Bi6GST+087jZ9o2RQwhrhf837zytOu/ScP9ix1oo4br6frwsQzcjZxaFQ02eEzngjpWEJ1xmio+TY/Mv1lWx6Ffe9QBNU8/kl0diVSByb/vb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547193; c=relaxed/simple; bh=7IF3NRzkq7YYR37XIex5QmrIK/n0fB3HatMOIeK/cRI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LQ0wTYeszUUyp0AyT8NuXfkaBXGXALwPbjs4orB/+LY5WKucwOM85NhqkhlgVfZ1Ixsc+97LvvPXfDWi+xU3XE89d08L8ILrZDb31Ohp2iZTyOFXYn3N1G2jlpafqOs4heT/k8qjWHAiKKycqn0qdPHv6dc/FpalvHuxX1sKRFs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=XFH4jAma; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353722.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40TGhM0Q013516; Mon, 29 Jan 2024 16:53:10 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=uBbid1amquyLIJr4bv4Vc6+0vlJFqIwuorIR4rfEizY=; b=XFH4jAma6yKsf+fdSqmODgkKkygoAmxgpJiWmUtQA8b7GaQfs0Cb9uORzmvR1C5LaRmM 0F7oQrvIkSPifBeh8lp5AZ+aVP2k4asZE61i8gL1sO3desMR22F59fO/46600kjBPFmx Kg23VVSg083gdhWfr5zAcVWB7QR3xLq50WIT8vQI9OuBZ8uxzatg5lP/avJQdS7oyjJ6 QEXz/2O4lsNX6J39K57caKV3VpfBssBZO210P1ywneoufcAFP5d8h/Fwtp8jVcFaizK3 QK66cko0z08h9c+FzJSTA816WAehdkD9P7p0G9oxWtWZsP0GiJH5qvo/46ISoAadv/NX TQ== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vxfsp89m7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 16:53:10 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 40TG8d7E011266; Mon, 29 Jan 2024 16:53:09 GMT Received: from smtprelay02.wdc07v.mail.ibm.com ([172.16.1.69]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3vweck92gd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Jan 2024 16:53:09 +0000 Received: from smtpav03.dal12v.mail.ibm.com (smtpav03.dal12v.mail.ibm.com [10.241.53.102]) by smtprelay02.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 40TGr8Gr57606618 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Jan 2024 16:53:08 GMT Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 132F958056; Mon, 29 Jan 2024 16:53:08 +0000 (GMT) Received: from smtpav03.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AB4425803F; Mon, 29 Jan 2024 16:53:07 +0000 (GMT) Received: from [9.61.175.71] (unknown [9.61.175.71]) by smtpav03.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 29 Jan 2024 16:53:07 +0000 (GMT) Message-ID: <324d5277-8272-458f-b7fc-f0a21a50af64@linux.ibm.com> Date: Mon, 29 Jan 2024 11:53:07 -0500 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 0/3] s390/vfio-ap: queue_configuration sysfs attribute for mdevctl automation Content-Language: en-US To: "Jason J. Herne" , linux-s390@vger.kernel.org Cc: linux-kernel@vger.kernel.org, pasic@linux.ibm.com References: <20240126143533.14043-1-jjherne@linux.ibm.com> From: Anthony Krowiak In-Reply-To: <20240126143533.14043-1-jjherne@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: assim4J50zwtlhPGROSHkPBsBlbFeqSs X-Proofpoint-GUID: assim4J50zwtlhPGROSHkPBsBlbFeqSs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_10,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 impostorscore=0 mlxlogscore=644 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401290124 Isn't this v4 of this series? On 1/26/24 9:35 AM, Jason J. Herne wrote: > Mdevctl requires a way to atomically query and atomically update a vfio-ap > mdev's current state. This patch set creates the queue_configuration sysfs > attribute. This new attribute allows reading and writing an mdev's entire > state in one go. If a newly written state is invalid for any reason the entire > state is rejected and the target mdev remains unchanged. > > Jason J. Herne (3): > s390/ap: Externalize AP bus specific bitmap reading function > s390/vfio-ap: Add sysfs attr, queue_configuration, to export mdev > state > s390/vfio-ap: Add write support to sysfs attr ap_config > > Documentation/arch/s390/vfio-ap.rst | 27 ++++ > drivers/s390/crypto/ap_bus.c | 13 +- > drivers/s390/crypto/ap_bus.h | 22 +++ > drivers/s390/crypto/vfio_ap_ops.c | 213 +++++++++++++++++++++++--- > drivers/s390/crypto/vfio_ap_private.h | 6 +- > 5 files changed, 248 insertions(+), 33 deletions(-) >