Received: by 10.192.165.156 with SMTP id m28csp258321imm; Tue, 17 Apr 2018 09:39:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+fyrY3DM+DB3DvqVj0pBi83Qr1TDr/tT5wg+pk87wt2b5VK9ePnjoV+41HCgdGMsxvqWGP X-Received: by 10.99.173.7 with SMTP id g7mr2326564pgf.170.1523983151977; Tue, 17 Apr 2018 09:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523983151; cv=none; d=google.com; s=arc-20160816; b=esO5zWwI8f3uuJLn2pBDriMo7m/rG1lgCj4SR8dwKdsOuY/EgzInALAd3AbdyBd05Q kxv+NROWwoPo5T3I9nxETfd2aaDawqfOExEyLheex78AqbvO5IVocOfYbdd58zNt5nww a2diwuTuuqpZpykZoz/CbhGx78Z2Th5tToc7eKuS96Dpab/m+h1f8BU6VJ2AF71jfd7J rsGP5ZsrZlYxHEOrefZY+Y1HaV0KGoIYz4430PnrtAP4/MxloLe1hEoXZwS7A4hYjC3K f8u3OOjVbEZ8HoXFuMtqP9e+yLQZYDQaMpp0j/qda4KzhJTmh+ZgBPysVcrRAGBpLwYx L6Cw== 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=JFH2SDVk+q3gAThzYEe8E9aGSqDz2ZxyOpJjxeKrUiQ=; b=rOFpjclg3D6DpO2no3sht1rfVxA8aOxRUAQIF7ViWAI6WKwQCsUJssN8YjNCuNkOhP 4ZTYx0Yl+Fa6vBS0BR1TGu5/Qg6PiApGbFlbe7EntxG7wxMhsr4iT6MGkg7Ze4i9izgn xNnlKRuNB5kMHeKd3z8CnLog+jpT/MaOZ8rGQD76c/nuiEMPGcUdRuDlt8XYPY5uVAN9 3/TxI01/gShLsAy0IJq4Ud4OMRPVo2kUWbK1oqgEoWFuOFM4+1HEb0N6DPm0X2h5Kv1h hhqcmY4OURWpqlcy6vf9OJD/qOa0qQXEs7pdWQjLLELnegnqk2A1DgYEHe4bghuf0tEP 3Sqw== 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 1si13429801pfq.172.2018.04.17.09.38.58; Tue, 17 Apr 2018 09:39: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 S1755206AbeDQQha (ORCPT + 99 others); Tue, 17 Apr 2018 12:37:30 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37360 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753928AbeDQQh1 (ORCPT ); Tue, 17 Apr 2018 12:37:27 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3HGZC8p048309 for ; Tue, 17 Apr 2018 12:37:27 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hdkurahgf-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 17 Apr 2018 12:37:26 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Apr 2018 12:37:25 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Apr 2018 12:37:22 -0400 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3HGbLx562062764; Tue, 17 Apr 2018 16:37:21 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4B4F9124035; Tue, 17 Apr 2018 13:39:23 -0400 (EDT) Received: from oc8043147753.ibm.com (unknown [9.85.136.174]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id 491AB12403F; Tue, 17 Apr 2018 13:39:22 -0400 (EDT) Subject: Re: [PATCH v4 15/15] s390: doc: detailed specifications for AP virtualization To: Pierre Morel , 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, 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: <1523827345-11600-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1523827345-11600-16-git-send-email-akrowiak@linux.vnet.ibm.com> <04a0cf49-71a1-214a-7261-d8e55adee1de@linux.vnet.ibm.com> <65d3b123-7a0a-4de3-687f-5b6707e797f7@linux.vnet.ibm.com> <53283f8e-52b5-5653-044c-843b5b033a1e@linux.vnet.ibm.com> From: Tony Krowiak Date: Tue, 17 Apr 2018 12:37:19 -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: <53283f8e-52b5-5653-044c-843b5b033a1e@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18041716-0040-0000-0000-0000041CFB4E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008871; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01019290; UDB=6.00519990; IPR=6.00798531; MB=3.00020619; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-17 16:37:25 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041716-0041-0000-0000-00000822FFC9 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-17_08:,, 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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804170145 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/17/2018 12:25 PM, Pierre Morel wrote: > On 17/04/2018 18:14, Tony Krowiak wrote: >> On 04/16/2018 09:13 AM, Pierre Morel wrote: >>> On 15/04/2018 23:22, Tony Krowiak wrote: >>>> This patch provides documentation describing the AP architecture and >>>> design concepts behind the virtualization of AP devices. It also >>>> > ...snip... >>>> +The process for reserving an AP queue for use by a KVM guest is: >>>> + >>>> +* The vfio-ap driver during its initialization will perform the >>>> following: >>>> + * Create the 'vfio_ap' root device - /sys/devices/vfio_ap >>>> + * Create the 'matrix' device in the 'vfio_ap' root >>>> + * Register the matrix device with the device core >>>> +* Register with the ap_bus for AP queue devices of type CEX4, CEX5 >>>> and >>>> + CEX6 and to provide the vfio_ap driver's probe and remove >>>> callback interfaces. >>> >>> I wonder why the type of card has anything to do with this driver. >>> It should be transparent, the driver should be able to provide the >>> matrix (APM/AQM/ADM) >>> independently from the type of card in the slot. >> >> We've been down this road several times before. We are only >> supporting virtualization of >> CEX4 and newer cards. Also, the AP bus requires registering for >> specific card types. > > Yes I know, but the AP BUS design may be not the optimal for the AP > Matrix. > The AP Matrix is device independent. > We just write/clear bits in a matrix and we do not care what is plugged. > > So may be make clear that this device dependence is due to the actual > AP BUS interface design. Okay, will do. > >> >>> >>> >>> Regards, >>> >>> Pierre >>> >> >