Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1310803lqt; Fri, 7 Jun 2024 14:34:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX7eVoraz7GKNb4Tx7G3mRm5XvUf4njs+AMJ+/QTe6eDInJ9Md+wupx90XmLfQ2xB1PJAaiFT3+UvaPU5RzSGv2eIwJTbhUz1YTmw25lw== X-Google-Smtp-Source: AGHT+IFWYDglcOgxbd94JmBzSuVaVmNXHio9+JdgmwcgAhCw/dos6IK3EWKq2JEWthYdjEI1Bymx X-Received: by 2002:a05:6358:5294:b0:19f:1ce8:dc0 with SMTP id e5c5f4694b2df-19f1fe13fa9mr491008155d.12.1717796065011; Fri, 07 Jun 2024 14:34:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717796064; cv=pass; d=google.com; s=arc-20160816; b=x25/aLMHn+RN09I5jumo3VXnefrHeAOuU5r66NGt+HczjZ6b713G7EmyvulBELEjYu nOqdj31ugRcRfi9r/fA8pC1Wk4Pbeqj7lrfwzPWoj/0R3tJxhhTiNryPEoZMGdKtSW3n q9kWGqKPhAjXdcIXgOIi2Ox6hldBSH1mB8LusBhpbYwhpZDCOUeChuhfgdXQkFHEdaRQ vNokEKIMzoQWzx1tF7gdo9v+9Lg9wfE8T0E07jO8wUYI2pKFlEuNKZRi4xtVOIIpln0p T3yO5Q8VeGcCYSaF3FPLsIbJneJf32zjvBrdjJ4S/H7hRgPTBcLPaWVkWga9IshRoM0/ 2qGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=ks6Mblf6LFbqf1AYdlbF1eql1nbrqV8sks5KKNLnj54=; fh=g35xqtd7OFdNvYs2B0EH4U/Q26aK3P6KykVA4Xp2N9w=; b=LW8wTWZYZkh69TKCWu73fXbRobnQX23csehyhrpArH8T6Taismp2R3PdOSK0j6DAJ/ ZsVov6wVek1YSHFK/hYqW+gukHvsrmtyhyYwRS2unMW3a2B9FWb/dXsCkxebcx+ExN9X LtfR3DFzPB+np/xxXDYvtEnwbosB/PPx4iT2sKBe7sg4si/LX3MyY3R7EAj9MLsuTojF TB7n1RSvS/EaayhC9BN9kBi0PlKBOVizuneKJ0vOHBv6FIb7HH+XQPdZD/nVJNDyy4Rk y7TypxgCZGdn2fzt/5RFkBPVgPI9mbVLIOJmmYaSKAmKdl0VwAkS8gJl18pikGfB7733 u9/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aqz7kHBY; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-206778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 41be03b00d2f7-6de2073c3f5si86576a12.73.2024.06.07.14.34.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 14:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206778-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=@redhat.com header.s=mimecast20190719 header.b=aqz7kHBY; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-206778-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 8F30C285F3A for ; Fri, 7 Jun 2024 21:34:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BC3D155382; Fri, 7 Jun 2024 21:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="aqz7kHBY" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 96A7A155341 for ; Fri, 7 Jun 2024 21:34:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717796055; cv=none; b=M1wz5ptAqOKekwP1cNQV9KvRwJE3QY4jUtcGs6gWx5XPwceXFbO0nRxQWytRnqyWVU3hLJ3ll7qReqPC/4jh8iLRErWA7dDY4UftRvgwAMOJgAq/uzwY5fTYpw1NnK40kE7kqV9TWo/36eyCtSS5YTBAsmeoO/iSgPhM5mw7fUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717796055; c=relaxed/simple; bh=cYsT0tM9d4orTtOiW3/EAkmjNwaChdXp7xaUoORONng=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W4TQo7n0Td3Txa0bn0ANiOaYQPz/dVYY8/9zOqZzP/i4tUXau79GLMglIosx6qQP0GMe3UUK4jmx3/NESj3BH0nf74rrtkC/JN9kuqUrzURtYmFOUgHUN5yDSYEJqYUSeGu1Ue3FpVZkKq9XQdsaCkpeK8tqGpNzUtUgUsfJmI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=aqz7kHBY; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717796052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ks6Mblf6LFbqf1AYdlbF1eql1nbrqV8sks5KKNLnj54=; b=aqz7kHBY8OmFoNKPITzgaCPEb59KTBaNbBHISxrJZxBAvy/wCqf4h1/nzY9x5MfAOOpExz vMIodgKuUwi9WUeQMrWmR3YKfTS6d+WfnAAHnC4X5en7LIyqFhV7RAfp9lmVAebacpxdbJ WPuV/y3pFL2ZbYXp1xC8rAXLiafwN0s= Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-250-JmgytAo8MuGml1W51gCOPw-1; Fri, 07 Jun 2024 17:34:09 -0400 X-MC-Unique: JmgytAo8MuGml1W51gCOPw-1 Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-7eb3978abc6so305099339f.2 for ; Fri, 07 Jun 2024 14:34:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717796048; x=1718400848; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ks6Mblf6LFbqf1AYdlbF1eql1nbrqV8sks5KKNLnj54=; b=j8tX1+6qn9NboGQaHUgd3Y82GgdYViBhac9dAYxX686X96JnAruBYHRtt1tir8WkDO /F9xYV0cAsrqL6y167HEmHhIBjINGmS4pQUW2UZ3Bxvcgpvr8qMDsXkR6SW60+BIOBHI zguBmvFfBiCoVfWb235RCGf3DmNOoXj4/EBGxv2XsKczbeDUbIDlrdldKN/3hc5oqS55 Uvso2fwjNIIwX4vB4+KnJPOQXIUjxlaNkkDFvXpqehl/UhsIKjbDoxo0yWau5PgTpj+4 mxTvxXw4SHO7IREnJthNaVCpEDudkt9Eq4vnI50F0XuOM6DHD8dj8nmvmuE0gSGeeJpd NO/w== X-Forwarded-Encrypted: i=1; AJvYcCWNCW67H57B21nqvqvVWEG3VxJeKY5WwyXCPkzf0l7PzJwgS3XWeW0ONSzM81kYZBO38UaGGFX9Pa0X9o5wHr00dJDi57nR8EL6aYnH X-Gm-Message-State: AOJu0Yzfvqm/CLnjS0jdvc4E1kXExFkAOH6M7qBABY5GTRu2VFFao6zd z5kdCyse624W7Ay27C9KfWSwVfk+I38BGorTeos5NevQaMUSli3DoEcN9DEjATYm0EvI1tHaB9g sMX4qnHIBfiMLcGo5afkBEbguP8niUiinn2AGLRdXqdDeGsgFSyzQOepN+iBbVQ== X-Received: by 2002:a05:6602:3f94:b0:7e1:79e8:d671 with SMTP id ca18e2360f4ac-7eb5724adc6mr458169939f.14.1717796048490; Fri, 07 Jun 2024 14:34:08 -0700 (PDT) X-Received: by 2002:a05:6602:3f94:b0:7e1:79e8:d671 with SMTP id ca18e2360f4ac-7eb5724adc6mr458168939f.14.1717796048181; Fri, 07 Jun 2024 14:34:08 -0700 (PDT) Received: from redhat.com ([38.15.36.11]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4b7a2244a77sm1055724173.40.2024.06.07.14.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 14:34:07 -0700 (PDT) Date: Fri, 7 Jun 2024 15:34:06 -0600 From: Alex Williamson To: "Zeng, Xin" Cc: "Tian, Kevin" , Arnd Bergmann , Jason Gunthorpe , "Yishai Hadas" , Shameer Kolothum , "Cao, Yahui" , "Cabiddu, Giovanni" , "kvm@vger.kernel.org" , qat-linux , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] vfio/qat: add PCI_IOV dependency Message-ID: <20240607153406.60355e6c.alex.williamson@redhat.com> In-Reply-To: References: <20240528120501.3382554-1-arnd@kernel.org> Organization: Red Hat Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 31 May 2024 02:56:09 +0000 "Zeng, Xin" wrote: > On Wednesday, May 29, 2024 1:36 PM, Tian, Kevin wrote: > > To: Zeng, Xin ; Arnd Bergmann ; > > Cabiddu, Giovanni ; Alex Williamson > > ; Cao, Yahui > > Cc: Arnd Bergmann ; Jason Gunthorpe ; > > Yishai Hadas ; Shameer Kolothum > > ; kvm@vger.kernel.org; qat- > > linux ; linux-kernel@vger.kernel.org > > Subject: RE: [PATCH] vfio/qat: add PCI_IOV dependency > > > > > From: Zeng, Xin > > > Sent: Wednesday, May 29, 2024 11:11 AM > > > > > > On Wednesday, May 29, 2024 10:25 AM, Tian, Kevin > > > > To: Arnd Bergmann ; Zeng, Xin ; > > > > Cabiddu, Giovanni ; Alex Williamson > > > > ; Cao, Yahui > > > > Cc: Arnd Bergmann ; Jason Gunthorpe ; > > > > Yishai Hadas ; Shameer Kolothum > > > > ; kvm@vger.kernel.org; qat- > > > > linux ; linux-kernel@vger.kernel.org > > > > Subject: RE: [PATCH] vfio/qat: add PCI_IOV dependency > > > > > > > > > From: Arnd Bergmann > > > > > Sent: Tuesday, May 28, 2024 8:05 PM > > > > > > > > > > From: Arnd Bergmann > > > > > > > > > > The newly added driver depends on the crypto driver, but it uses > > > exported > > > > > symbols that are only available when IOV is also turned on: > > > > > > > > at a glance those undefined symbols don't use any symbol under > > > > IOV. They are just wrappers to certain callbacks registered by > > > > by respective qat drivers which support migration. > > > > > > > > Probably they'd better be moved out of CONFIG_PCI_IOV in > > > > "drivers/crypto/intel/qat/qat_common/Makefile" to remove > > > > this dependency in vfio variant driver. > > > > > > > > > > Thanks, Kevin :-). This dependency is like the relationship between the QAT > > > vfio > > > variant driver and macro CRYPTO_DEV_QAT_4XXX. The variant driver > > doesn't > > > directly reference the symbols exported by module qat_4xxx which is > > > protected > > > by CRYPTO_DEV_QAT_4XXX, but requires the module qat_4xxx at runtime > > so > > > far. > > > Alex suggested to put CRYPTO_DEV_QAT_4XXX as the dependency of this > > > variant > > > driver. > > > For CONFIG_PCI_IOV, if it is disabled, this variant driver doesn't serve the > > > user as > > > well since no VFs will be created by QAT PF driver. To keep the consistency, > > it > > > might > > > be right to make it as the dependency of this variant driver as Arnd pointed > > > out. > > > What do you think? > > > > > > > Following this rationale then we need also make PCI_IOV a dependency > > for mlx5 and hisilicon given they are for VF migration too? > > After more thoughts about this, I would agree with your first point that > PCI_IOV should not be the dependency of the variant driver if we consider > passthrough VFs in a nested virtualized environment. > So decoupling PCI_IOV from migration helpers in QAT PF driver sounds a > better option. Is this then being taken care of in the QAT PF driver? Are there patches posted targeting v6.10? Is there an archive of qat-linux list somewhere? I can't find any relevant postings on linux-crypto@vger and can't find a public archive of qat-linux(??). Thanks, Alex