From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796034274; b=KDARDi1izjKa2lAl224dRsHkrPzKoSM/1YFIqCiyaTLIPCotBHtngVLAEw18b7jq0H/6 0RovUgwKzBSP2nCYAt2ULwhilQohA3E85qluJC6nu2SP6n/r+eqlKYOFwohh63DJM+8Ye Q/vfDfa6EdINtqW7j5j0T+2k3XXiMS52bfPx/K4L0lQEWdldSKcZMhgHXtq/Q9Gtd93VK OrqKB9A6fzhH+CouJx1a7bPpLcH2xTHkvmIIA3LX+YfsdIVm953r3ajAHIo0aK4ArE7mp pQDpc04JlBCYzknUeF38UoUSynyuEr9bNHg8pjaFB5IioNbz7MZndT5Bara1AE1oSPQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796034274; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Received:Received:Received:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject: From:To:X-Mailer:References:In-Reply-To:X-TM-AS-GCONF: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=p9IHO0mqBqbtKrTqHzR1U0fSl+HSlWINyrRDZTwUHiY=; b=NG5NeERWAAU2z/GzIdaNvUhDazOJFZHrzZDUxIFVam65f1KT77jSM2nDEFZDnFzftlcp sV8klNnzLIcCoVGuxIG1gCouh/mI1Oss/nYpJ+FcE1OHwCibUF0xZ5GUZhFl/1TU6pQ9j 0aBMvN6opSwM/6YeYclPZWVJAuRRetpY4QLP6qmWBH0uw4sjtKOIgMlRFyxuJ/RLQN3uz T18BVUIeBPbNn+4/CrIgkriqxjYA5Tm2Nvhbq1j7sK9tYAPIW5c3Aq/2PXznBiItMtVOQ gUFWqpEUzhQezVBON9CJrVyJOTEdqAby1v6wkhY/kWoCDXV9U/AYXzBpcD+EFibKNow== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=VNLtT8yY; arc=none smtp.remote-ip=148.163.158.5 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD58F606A31C for ; Mon, 30 Nov 2026 10:24:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CD58F606A31C 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=VNLtT8yY Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU9YaYb1538265 for ; Mon, 30 Nov 2026 10:24:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=p9IHO0 mqBqbtKrTqHzR1U0fSl+HSlWINyrRDZTwUHiY=; b=VNLtT8yY6i5G4Tm76QzKg5 +aGJxCInDKocIzRCw7p2KIWdM1zPJh22jyF00fHQAEP8uebuKUWn31Oe+ZAZOsVG 9lVpFdJGjieNbXObwUm/vMgOoLgrp7fWYK1WlkjmO20fRJJ/Xh9MW85m0Opxck6a joMSzRbC1spgYfUjia/+gHL5etszIdzk8BLSJuRPB/Fifswg4XPOvIFqVNOouLBf IhTOnysDgSmddhTKNMJmKPZ80mRBOEtx9x4N9j4ZAJj3ZyyfaZxNlxfwC+PLlArN vs7GmemMVgKtQYA9htrhzA3yQQSN0zcG3tHcUsTzcGZQYbRo27ldamvT06OE8sBA == Received: from ppma12.dal12v.mail.ibm.com (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j7nchf1tw-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Mon, 30 Nov 2026 10:24:32 +0000 (GMT) Received: from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1]) by ppma12.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU9YIEm3927121 for ; Mon, 30 Nov 2026 10:24:31 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4j899s4nma-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 30 Nov 2026 10:24:31 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6AUAOQnr49152510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Nov 2026 10:24:26 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A2FD320043; Mon, 30 Nov 2026 10:24:26 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 745B920040; Mon, 30 Nov 2026 10:24:26 +0000 (GMT) Received: from localhost (unknown [9.68.29.108]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 30 Nov 2026 10:24:26 +0000 (GMT) X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 30 Nov 2026 11:24:26 +0100 Message-Id: Cc: , , , , , , , Subject: Re: [PATCH 2/4] dibs: introduce dibs peer device bus driver From: "Julian Ruess" To: "Alexandra Winter" , "Julian Ruess" , , , , X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <20261008-console_server-v1-0-636b11ebf191@linux.ibm.com> <20261008-console_server-v1-2-636b11ebf191@linux.ibm.com> In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDA0MCBTYWx0ZWRfX9JajDPs8V5Uj n466JUPpKndO/XUz2N+nrj6UuJVF/7qQjYFgjV5BAhKvVygymMQHGvnV2QQrcqPYWpNrYs25q7S lTcGVaBZdaVN4l0/7rsJ+WptWjj6os7BF0HCHgFtQrurgk1ObBmfqOgNTaC2BSGKV55AJLT7g4v 5banev6A2yz7LRaxL+GxayOZ4i4MIQyt2P5x30DZm09faJSNReIG4Hzo7r2IQUgJHYlRYkV+Tqr TkPMN3WXd9trdgEoT8MwSx+aFBQ3WRYFk7Zp0K6W/U5XuMcNGzCWP+WAv4JDYvS3O7dF3JywFUD F1h0jEtVb0XnUMNn+dgR1V8A16U8+0wbE5IfWdLcNZbQm//B8HF6RKimODZcXdh7lY9RL8o27pP yt77ucVnRSg5w87FdO+eIFbmGVAAKrJr5d8xKDR8hSjHrfwL7HQw5DXQcsFeyZ3IWW8dKt3ksqN Y1VoPm6/mO4VmrZsv6Q== X-Authority-Analysis: v=2.4 cv=Tt5zFzXh c=1 sm=1 tr=0 ts=6b0d4ee0 cx=c_pps a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=UoFE4RRVLKs9sgF5sagA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-ORIG-GUID: xqKe4BzLTEZHBqsjzyO6KSZHiER1BDvm X-Proofpoint-GUID: xqKe4BzLTEZHBqsjzyO6KSZHiER1BDvm X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDA0MCBTYWx0ZWRfX/z3Dim7K0AD8 Uh0BqTbxYoYE/nom4dj8IxIPuaCM1ij0pdxD/923UBWmW0xEYFECG+m5/hrfOToWZYiYtqJYeB1 J3AVQZOO9yo1EwDLIuZslIKM5SzJS04= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_03,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 spamscore=0 bulkscore=0 clxscore=1015 adultscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611300040 On Tue Nov 17, 2026 at 5:21 PM CET, Alexandra Winter wrote: > This is not a complete review, but I think I read about 80% of the patch. > The comments were not written in any specific or > > Title: > s/dibs peer device bus/dibs peer bus/g > > On 08.10.26 10:08, Julian Ruess wrote: >> Introduce a dibs peer device bus driver that represents remotely >> emulated dibs peer devices as kernel devices.=20 > > Wording: Does the bus driver represent the devices? > In my mind, dibs peer bus driver is used to access a dibs peer bus to whi= ch > dibs peer devices are attached. (is 'dibs peer' the agreed upon wording? > a reference document would help) The dibs peer bus and dibs peer devices > are emulated on top of a remote peer's dibs device. > > Is that understanding wrong? Is there no peer bus implementation on the > console server side? > > I know the vfio-ism implementation is not really a dibs device, but > conceptually I think the `dibs peer`stuff is accessed via a remote dibs > device (with gid etc..) > > (Refer to RFC here?) > > The driver handles >> discovery and lifecycle management of remote peer devices and provides > > s/remote peer devices/remote peer dibs devices/g > >> the foundation for dibs peer device drivers that operate on top of dibs. > > What do you mean by 'on top of dibs'? > Are they dibs clients? Is the dibs peer bus driver a dibs client? > I guess so. > > I'd like some more words, what device discovery provides here: > Are Linux devices created? where? Is device probing triggered? > >>=20 >> Two such peer device drivers, hvc_dibs and dibsblk, are added in >> follow-up patches. >>=20 >> Dibs peer devices are provided by vfio user space tooling (Console >> Server) and are discovered by the kernel of a target system. >>=20 > > (target system is mentioned here for the first time without explanation) > > I'd rather say: A possible implemetation of dibs bus and dibs devices is > user space tooling on top of vfio-ism. > > > I'D like to see a bit more about what the dibs peer bus driver provides, > e.g. /sys/bus/dibs_peer,.. > > >> Discovery works by setting e.g. the kernel parameter >> 'dibs.dibs_peer_address=3Dgid:64000da3-78e8-3931-0000-000000000000'. The >> UUID must be the GID used by the console server of the remote system. >>=20 > > Imperative mode. Console server is used here without explanation. > Use same terminology as above: "gid of remote peer's dibs device' > > I'd rather describe this wrt to the dibs peer bus driver "Provide 2 ways > to trigger discovery .." > > >> Disovery can also be triggered manually by writing the GID of the remote >> system to the discover attribute like e.g. 'echo >> gid:04000da5-78e8-3931-0000-000000000000 > /sys/bus/dibs_peer/discover'. > > Wording: s/GID of the remote system/gid of the remote peer's dibs device/= g > >>=20 >> Connections can be terminated by unbinding an dibs peer device from its >> driver. >>=20 > > What is a connection in this context? > > > General: I think it is Linux style to not uppercase gid, uuid etc. > > > General: > The basic concepts should be documented somewhere (h file, > kernel Documentation, commit message, wherever) like: > - The system can use 1 external dibs peer bus =3D 1 remote endpoint (?) > - The dibs peer bus is identified by the gid of the remote dibs device > it is attached to > - The dibs peer bus driver is a dibs client (but the peer device drivers > are not dibs clients) > > > I think you once said that the code is prepared to handle more than 1 > dibs peer bus in the future, but currently only 1 is implemented. > I don't think that this is a good idea. These preparations cannot be > properly reviewed or tested. I propose to remove them and thus simplify > the code - it is complex enough already. > You can always bring it back in a future extension. > > Agree, commit message will be reworked in next version and we will drop the support for more than 1 dibs peer bus. -- snip --