From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A53ED244668 for ; Sat, 6 Sep 2025 10:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757154886; cv=none; b=iXupJg9NgZnik0Udiw6MBJdB8X2Ukw5wU5kUpB5gyHVrWZI7w5duga17NPhY3e6++oE3u40nn4mMt3hbNXFKc4Kxc/F3x1EdEHeLtW4T97uoCMA12fvieyHM64kETvKG8LUTclArHXS/j8QUX95MoR6Hshyex5TMsk1xMl0w/ZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757154886; c=relaxed/simple; bh=3dNxUbUU16M06cF3tAn6zCooVRvy93Ujlcyz6MsdRsc=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=lvD39ydjLKIVCd0cNYG7S/vNmP1+3qgLlweE8WvFIF1FarbFXKYMpxXoaXdvnnkGQvhZcyHgkq9zbVQzNuC6B6KoVmLg9sNlVoZtwpZpu8sS3NZ2v6mpGzLJlQvDU0IZNjJ9mtgbdANbhoCoDUVnJbFKfpSedh4JWKqOo2HXMNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JfyT/RJF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JfyT/RJF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75308C4CEE7; Sat, 6 Sep 2025 10:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757154886; bh=3dNxUbUU16M06cF3tAn6zCooVRvy93Ujlcyz6MsdRsc=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=JfyT/RJFIPVDWp1xIdaAv0dsrenrptpdo11wGP2msIu27WVZEy0AJytFB+CGZAwGs 8pGQVgazZyyd8fDoePmGPtGUtToSGszMkfw1bF7lGwRyjYGyF13csw1znEJW1dycId 0H/oIOGVwd2jsi2KqCaRwcf+BzwmFOw+uI51fuf7EBXSXbEllCBDgoiWk4fQ+5xry8 Hs1aN9DfrJGLvWW8wahLuN8E88Lmsj/lInXaA9eDL0wIfYz2RhFV2pP/FlzRl9LHJW yKZBRTrbqcgxZaHZS9JtOtl11uPfzxiC0F38tiO5fPYGVrdUhWioSFdY+IdZ/NJfCe iCC3AGSxaIEbQ== Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 06 Sep 2025 12:34:40 +0200 Message-Id: Subject: Re: [RFC v2 03/14] vfio/nvidia-vgpu: introduce vGPU type uploading Cc: , , , , , , , , , , , , , , , , , , To: "Zhi Wang" From: "Danilo Krummrich" References: <20250903221111.3866249-1-zhiw@nvidia.com> <20250903221111.3866249-4-zhiw@nvidia.com> <20250904174213.00003c38@nvidia.com> In-Reply-To: <20250904174213.00003c38@nvidia.com> On Thu Sep 4, 2025 at 5:43 PM CEST, Zhi Wang wrote: > On Thu, 04 Sep 2025 11:41:03 +0200 > "Danilo Krummrich" wrote: > >> (Cc: Alex, John, Joel, Alistair, nouveau) >>=20 >> On Thu Sep 4, 2025 at 11:37 AM CEST, Danilo Krummrich wrote: >> > nova-core won't provide any firmware specific APIs, it is meant to ser= ve as a >> > hardware and firmware abstraction layer for higher level drivers, such= as vGPU >> > or nova-drm. >> > >> > As a general rule the interface between nova-core and higher level dri= vers must >> > not leak any hardware or firmware specific details, but work on a high= er level >> > abstraction layer. >> > > > It is more a matter of where we are going to place vGPU specific > functionality in the whole picture. In this case, if we are thinking abou= t > the requirement of vGPU type loading, which requires the GSP version > number and checking. Are we leaning towards putting some vGPU specific > functionality also in nova-core? As much as needed to abstract firmware (and hardware) API details. > Regarding not leaking any of the hardware details, is that doable?=20 > Looking at {nv04 * _fence}.c {chan*}.c in the current NVIF interfaces, I > think we will expose the HW concept somehow. I don't really mean that vGPU must be entirely unaware of the hardware, it'= s still a driver of course. But for the API between nova-core and client driv= ers we want to abstract how the firmware and hardware is programmed, i.e. not l= eak any (version specific) RM structures or provide APIs that consume raw regis= ter values to write, etc.