Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp121930imm; Mon, 2 Jul 2018 08:41:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeeKZXh8EVsn3NcJftpiXkiZoepT8QRoB9zHQRXrbIeecWHF04VV4OkVx4fZkntoP3Qt5GN X-Received: by 2002:a62:8917:: with SMTP id v23-v6mr26139182pfd.127.1530546071434; Mon, 02 Jul 2018 08:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530546071; cv=none; d=google.com; s=arc-20160816; b=yS3iVtEvnlOrNEwNmHAE6WqhBf8Kr6U66Ssf8C5ZDGG/UfYRAfAPhG5BofE2eeQFNC ePktnWGVz0OGxhl5MplaUWvS4+1m5XQkRwpNKlGasorpVMZwmQcb3alKldHRLVaqc3fR 3z4xyxiRn6l1PNHYriAPgyNjUJBVKjJNhZPPQYomjzaV2nhsfxRDPdfqeiCw0t7Rwm9F Jbwx5u3HbszgMoqdA+pt7Qe6SgN42fUS5gXpltJl2n1u8k6pWfgx0befZGpi4j70fNFA c6drhXUTUv9puT5OJj9JChpDBjLKxb3QKYOHOdGLpyZhlsRj4SyrcbN9PHxTwgIn2Hnm xDyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=LqRsAbLpM6hzVv/W1oBO90ZDpTEBye2TeV6SWHbmp+I=; b=zIx/v26QdzcZzNhc6MQTNeQcCkoFFy2jcB+Q/gtbP6HNvzLIYYNlbzROFPtCLft8u8 C+5sb1NR6SbEE/ODafpEDnjCsKz/zuH9a8R1FBgHFavlx8K4l2X1aerIRTien6ru57Y1 qRQY+D7/a4JLYYUWNsy89uGJ8NBf6+jQqWKjwBNwMygXO2DVWm8CtvtqQsawj8F8H0jy kxaQ+nXMYmQ2eMxOGgwLm3yzLyiZ/PAlxn12RFmWe6hnOwuenOQ9rzdhv4i2SFGy/Lh1 4IoTMBJxKb7AfVFZbAcE0j5r6P0Ce5sLQYDmNuQN3M+8iYQ6LLS7dB9O4QbQb4/Es+ct hRow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f21-v6si6372302plj.180.2018.07.02.08.40.50; Mon, 02 Jul 2018 08:41:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752334AbeGBPje (ORCPT + 99 others); Mon, 2 Jul 2018 11:39:34 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:41494 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752137AbeGBPjc (ORCPT ); Mon, 2 Jul 2018 11:39:32 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w62FdIx9075172 for ; Mon, 2 Jul 2018 11:39:32 -0400 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jykxbfys4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 02 Jul 2018 11:39:32 -0400 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 2 Jul 2018 11:39:30 -0400 Received: from b01cxnp23034.gho.pok.ibm.com (9.57.198.29) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 2 Jul 2018 11:39:26 -0400 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w62FdOw8328098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Jul 2018 15:39:24 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F1434AE060; Mon, 2 Jul 2018 11:39:08 -0400 (EDT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5CED5AE05C; Mon, 2 Jul 2018 11:39:08 -0400 (EDT) Received: from oc8043147753.ibm.com (unknown [9.60.75.218]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 2 Jul 2018 11:39:08 -0400 (EDT) Subject: Re: [PATCH v6 07/21] s390: vfio-ap: base implementation of VFIO AP device driver To: Halil Pasic , Tony Krowiak , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, borntraeger@de.ibm.com, cohuck@redhat.com, kwankhede@nvidia.com, bjsdjshi@linux.vnet.ibm.com, pbonzini@redhat.com, alex.williamson@redhat.com, pmorel@linux.vnet.ibm.com, alifm@linux.vnet.ibm.com, mjrosato@linux.vnet.ibm.com, jjherne@linux.vnet.ibm.com, thuth@redhat.com, pasic@linux.vnet.ibm.com, berrange@redhat.com, fiuczy@linux.vnet.ibm.com, buendgen@de.ibm.com References: <1530306683-7270-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1530306683-7270-8-git-send-email-akrowiak@linux.vnet.ibm.com> From: Tony Krowiak Date: Mon, 2 Jul 2018 11:39:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18070215-0060-0000-0000-00000285AABE X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009295; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01055519; UDB=6.00541379; IPR=6.00833441; MB=3.00021964; MTD=3.00000008; XFM=3.00000015; UTC=2018-07-02 15:39:29 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070215-0061-0000-0000-000045A6A79E Message-Id: <51fada6f-db0b-b884-7bd7-07cddecf3824@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=900 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807020179 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/02/2018 09:53 AM, Halil Pasic wrote: > > > On 06/29/2018 11:11 PM, Tony Krowiak wrote: >> Introduces a new AP device driver. This device driver >> is built on the VFIO mediated device framework. The framework >> provides sysfs interfaces that facilitate passthrough >> access by guests to devices installed on the linux host. >> >> The VFIO AP device driver will serve two purposes: >> >> 1. Provide the interfaces to reserve AP devices for exclusive >> use by KVM guests. This is accomplished by unbinding the >> devices to be reserved for guest usage from the default AP >> device driver and binding them to the VFIO AP device driver. >> >> 2. Implements the functions, callbacks and sysfs attribute >> interfaces required to create one or more VFIO mediated >> devices each of which will be used to configure the AP >> matrix for a guest and serve as a file descriptor >> for facilitating communication between QEMU and the >> VFIO AP device driver. >> >> When the VFIO AP device driver is initialized: >> >> * It registers with the AP bus for control of type 10 (CEX4 >> and newer) AP queue devices. This limitation was imposed >> due to: >> >> 1. A lack of access to older systems needed to test the >> older AP device models; >> >> 2. A desire to keep the code as simple as possible; >> >> 3. Some older models are no longer supported by the kernel >> and others are getting close to end of service. >> >> The probe and remove callbacks will be provided to support >> the binding/unbinding of AP queue devices to/from the VFIO >> AP device driver. >> >> * Creates a /sys/devices/vfio-ap/matrix device to hold >> the APQNs of the AP devices bound to the VFIO >> AP device driver and serves as the parent of the >> mediated devices created for each guest. >> >> Signed-off-by: Tony Krowiak >> --- >> MAINTAINERS | 10 +++ >> arch/s390/Kconfig | 11 +++ >> drivers/s390/crypto/Makefile | 4 + >> drivers/s390/crypto/vfio_ap_drv.c | 140 >> +++++++++++++++++++++++++++++++++ >> drivers/s390/crypto/vfio_ap_private.h | 29 +++++++ >> include/uapi/linux/vfio.h | 2 + >> samples/bpf/bpf_load.c | 62 +++++++++++++++ > > You have probably touched the last one by accident. I'll have to figure out what happened here. > > > Regards, > Halil