Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2199952pxu; Fri, 9 Oct 2020 10:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1cOLAuZuJUfxSjRP0OTrrJ+CY0qxmhxFv0QFasPR93iDDSCH3JLcsUxTFyOt0sv9NgvxP X-Received: by 2002:a05:6402:2055:: with SMTP id bc21mr176814edb.67.1602263790119; Fri, 09 Oct 2020 10:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602263790; cv=none; d=google.com; s=arc-20160816; b=yH6mezuZpNeuI03JJN8N1R4IfdwswZjkEPxPNPvplTopDL3pr/EdPynbD2L1doIg25 rZsbrkX+Y+NIomj84NKcGyWWjw89t4XfkqiIk9DjRSiHzrnKRUJM5w2/IYffb5C5TYj1 oXzGsY2YbTf1eeuozCexsDUhx0A35oz6hqYWHq1ESb5L8qLX2GEKR6C8YSd1kS6zVdZp HRmFqegau9KGjNUQMoXAmulaU+VOq0hE5VhcpqpuudkU/fVp8WUXtF3t65gvR7oD1ej6 zAUJym+qOXXXo1XTG38Nn22+QFtDEBtOApSG11YCAua+dQtICaz7bhVC1vujAzwFox/R F2pw== 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=ApnJ4rmyHZgjW0CSRxg458SeB02+Q3oxy6Iq5vW6bsQ=; b=Q9CLmB8jO5za+Qie2BJiU0VpeiNhvCO+zuYbC9dNaS6kEloXiNak8zFB3iIbtyCom6 r7Y5DuhgefOANrN3Bjz48XWzcA+XFO8mf16SuzMpMi1cts8qlaJzSCwEpHBUv/Nue8z9 QIwTLt7Fa7Nm5XTvSywdPPD6dU28hEeNS6vo4FxAExfcWAneWGDR+FcJv/++mzmTmDL7 o6c35krO7g4BjcronFFrAgmak8h0AL3RAno7YQ/WlUBOiCXiaf1i1r8T9jeIksGO4720 cGRy41E9HXp3s/1r8ydru8vKMx2PQY8RY9wOR/bbol+pro/boay91A1wgbCy8vo/yB9I HYrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="A5EgpC5/"; 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 h1si6494370edw.357.2020.10.09.10.16.05; Fri, 09 Oct 2020 10:16:30 -0700 (PDT) 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="A5EgpC5/"; 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 S1733199AbgJIJon (ORCPT + 99 others); Fri, 9 Oct 2020 05:44:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:51474 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733190AbgJIJom (ORCPT ); Fri, 9 Oct 2020 05:44:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602236681; 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=ApnJ4rmyHZgjW0CSRxg458SeB02+Q3oxy6Iq5vW6bsQ=; b=A5EgpC5/RSz0/dkwzLu1en5tFnKSUJP2lQ/7ihY1At8KKQAhxRtJkN4P1CcJhUOQ7neN6A HmwO+j1EafY9ooj/qXlBGc5AgKbm3/3TILotmjACVq3FampbnEGgZR/RikGL+DINaWNLpd RdWfcJlyVk8yPCJsW/EsINXF15bqFE0= 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-587-fKsuyehIPyCGk3JZXhpKkg-1; Fri, 09 Oct 2020 05:44:37 -0400 X-MC-Unique: fKsuyehIPyCGk3JZXhpKkg-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 B4DED1007465; Fri, 9 Oct 2020 09:44:35 +0000 (UTC) Received: from gondolin (ovpn-113-40.ams2.redhat.com [10.36.113.40]) by smtp.corp.redhat.com (Postfix) with ESMTP id A43B65C1C7; Fri, 9 Oct 2020 09:44:30 +0000 (UTC) Date: Fri, 9 Oct 2020 11:44:27 +0200 From: Cornelia Huck To: Matthew Rosato Cc: alex.williamson@redhat.com, schnelle@linux.ibm.com, pmorel@linux.ibm.com, borntraeger@de.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, gerald.schaefer@linux.ibm.com, linux-s390@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/5] vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO Message-ID: <20201009114427.41f96cc6.cohuck@redhat.com> In-Reply-To: <1602096984-13703-5-git-send-email-mjrosato@linux.ibm.com> References: <1602096984-13703-1-git-send-email-mjrosato@linux.ibm.com> <1602096984-13703-5-git-send-email-mjrosato@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 Wed, 7 Oct 2020 14:56:23 -0400 Matthew Rosato wrote: > Define a new configuration entry VFIO_PCI_ZDEV for VFIO/PCI. > > When this s390-only feature is configured we add capabilities to the > VFIO_DEVICE_GET_INFO ioctl that describe features of the associated > zPCI device and its underlying hardware. > > This patch is based on work previously done by Pierre Morel. > > Signed-off-by: Matthew Rosato > --- > drivers/vfio/pci/Kconfig | 13 ++++ > drivers/vfio/pci/Makefile | 1 + > drivers/vfio/pci/vfio_pci.c | 37 ++++++++++ > drivers/vfio/pci/vfio_pci_private.h | 12 +++ > drivers/vfio/pci/vfio_pci_zdev.c | 143 ++++++++++++++++++++++++++++++++++++ > 5 files changed, 206 insertions(+) > create mode 100644 drivers/vfio/pci/vfio_pci_zdev.c With the compilation fix, Reviewed-by: Cornelia Huck