Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp997890pxu; Mon, 23 Nov 2020 09:07:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJysoRnS0LMvM2ACRPHH17PGl/LCDYk4SM+MuYibfZ3qF+13C7ctDmcmUQrOzoEev+NaKQo1 X-Received: by 2002:a17:906:660b:: with SMTP id b11mr579941ejp.190.1606151236104; Mon, 23 Nov 2020 09:07:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606151236; cv=none; d=google.com; s=arc-20160816; b=BAuEA7+BWbT4nCyEB7NFndeDQJ3FQhvclbjH1LQL48rJ/DCqWTKbivtaGufJnBA6xj FekZGEDDSsRcnlfmUPR8SvXBCdewJYgyb1HRUMT0UbmWsaQRVoos5TqxDECmwpLc3LxB umRnoldUpbka8UZm8bn4oHLfp2n5luyRSRZqL3uveYPcRLXuDwVEXwPgEXcEAszG3Frq QqI+Uz8i1lT+YJdyCPCucXIuKK8nbWHrGZ/gwjcp1PD75LzCy3M0HLc1MyGT2Z+adMVz kynNO4fmqHidp+Oig8Wi2TE0RAZ4RZZHYwjj6xi6lgcPrJGdhMUo5byrUg4ubsihzGYb FCBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=KQjlYGpM0Jo472SEJajFJgHSfKbcvhfoBX2kIE5oOZw=; b=FERLJTCZvDUO9vUTTAGlohO0y2VG3EtcR0G7E/SD5yJhE4H2UUQLYW8aBorSQFAB3J f2ugqsMxAtRXqMl85ihfjYZja83XEQBcDCZvfsy8isoWvqblCwx831oVp1frkfsBJE+e dPDow0inrzJFzMwP9pUdd84gepK2kZ652+aUvT6RNFgQXbYu4gVBm0L2cZEmRG2iqC3K xrv4wUhw1FRhlb4mVlKyYRxLQm0zMB+H5jIm42aQjdCr0Cfh7XSB1p3d4qxaLm8btQxI vVAVpmImQ91LnMFNbytvDma65FxCoNGiiA5VqCttT/FYL0RxNsallSwzZ7FBl2TgrL1K +XLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Kl2olBC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si5887735ejb.131.2020.11.23.09.06.51; Mon, 23 Nov 2020 09:07:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Kl2olBC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388512AbgKWRDf (ORCPT + 99 others); Mon, 23 Nov 2020 12:03:35 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41061 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729815AbgKWRDe (ORCPT ); Mon, 23 Nov 2020 12:03:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1606151013; 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=KQjlYGpM0Jo472SEJajFJgHSfKbcvhfoBX2kIE5oOZw=; b=Kl2olBC/nZy6j67FGXVFOzru/6A9ULxpAjfjn1abRsudJHIlY4DB1eCWWE+ae7k0KCCb3Q XY/ejexk5JT/BXz0tIJQ7L+pgfke2BThtx7IJ122+bus0xg65cqMUx+mPmanaTAfz4tFQo iBhkn1b3PzfUXxQJ60VH6Xn3o1D5tP8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-505-WuQ-qpwTOPqDoVFfXdXKkw-1; Mon, 23 Nov 2020 12:03:31 -0500 X-MC-Unique: WuQ-qpwTOPqDoVFfXdXKkw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C3055805BF6; Mon, 23 Nov 2020 17:03:28 +0000 (UTC) Received: from gondolin (ovpn-113-104.ams2.redhat.com [10.36.113.104]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3909A5C1C4; Mon, 23 Nov 2020 17:03:19 +0000 (UTC) Date: Mon, 23 Nov 2020 18:03:16 +0100 From: Cornelia Huck To: Halil Pasic Cc: Tony Krowiak , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, freude@linux.ibm.com, borntraeger@de.ibm.com, mjrosato@linux.ibm.com, alex.williamson@redhat.com, kwankhede@nvidia.com, fiuczy@linux.ibm.com, frankja@linux.ibm.com, david@redhat.com, hca@linux.ibm.com, gor@linux.ibm.com Subject: Re: [PATCH v11 05/14] s390/vfio-ap: implement in-use callback for vfio_ap driver Message-ID: <20201123180316.79273751.cohuck@redhat.com> In-Reply-To: <20201114004722.76c999e0.pasic@linux.ibm.com> References: <20201022171209.19494-1-akrowiak@linux.ibm.com> <20201022171209.19494-6-akrowiak@linux.ibm.com> <20201027142711.1b57825e.pasic@linux.ibm.com> <6a5feb16-46b5-9dca-7e85-7d344b0ffa24@linux.ibm.com> <20201114004722.76c999e0.pasic@linux.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 14 Nov 2020 00:47:22 +0100 Halil Pasic wrote: > On Fri, 13 Nov 2020 12:14:22 -0500 > Tony Krowiak wrote: > [..] > > >> } > > >> > > >> +#define MDEV_SHARING_ERR "Userspace may not re-assign queue %02lx.%04lx " \ > > >> + "already assigned to %s" > > >> + > > >> +static void vfio_ap_mdev_log_sharing_err(const char *mdev_name, > > >> + unsigned long *apm, > > >> + unsigned long *aqm) > > >> +{ > > >> + unsigned long apid, apqi; > > >> + > > >> + for_each_set_bit_inv(apid, apm, AP_DEVICES) > > >> + for_each_set_bit_inv(apqi, aqm, AP_DOMAINS) > > >> + pr_err(MDEV_SHARING_ERR, apid, apqi, mdev_name); > > > Isn't error rather severe for this? For my taste even warning would be > > > severe for this. > > > > The user only sees a EADDRINUSE returned from the sysfs interface, > > so Conny asked if I could log a message to indicate which APQNs are > > in use by which mdev. I can change this to an info message, but it > > will be missed if the log level is set higher. Maybe Conny can put in > > her two cents here since she asked for this. > > > > I'm looking forward to Conny's opinion. :) (only just saw this; -ETOOMANYEMAILS) It is probably not an error in the sense of "things are broken, this cannot work"; but I'd consider this at least a warning "this does not work as you intended".