From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 957D3C4361B for ; Thu, 3 Dec 2020 21:36:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4D09E22473 for ; Thu, 3 Dec 2020 21:36:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728923AbgLCVgG (ORCPT ); Thu, 3 Dec 2020 16:36:06 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:62368 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728252AbgLCVgF (ORCPT ); Thu, 3 Dec 2020 16:36:05 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0B3LYXo3027151; Thu, 3 Dec 2020 16:35:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id; s=pp1; bh=202NPPv11LZXskIKT2kUmTrWRL/sWF+vMp8dh5k9rv0=; b=Bd8H4QiwsZlIGgF+2kDRPYFgpigqbB/0dK2kL41Xqo0c+/AIkzORBPjxi2iTn43RE0MC Q0IF81AYEdunv3i3MaepVWAu0VOCrA2G7/jXk4ODWI2Cboq5zNTOcauDm7qtAVyr3CPw fEJQeYpBuEV0T7b/nzKtqQ0ZHHPWLo8XGXJNS/QUqTJRj61hC3kOdLVaNi+Whu6QEKvW FE2w11BNI1kfUAbQVLzJ9hKF8xT9ItVF9FV/CD71AUBtWcygowyCrtUK6IBvNDeE+4+D DtqAikB6qRhp9tmtQp2BGuGgJtlFbf8PYDvD+NCwpmAMoz4ddQUuB5PVqluOmVqjmKX9 0g== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 35775csgqa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2020 16:35:20 -0500 Received: from m0098414.ppops.net (m0098414.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 0B3LYcMA027701; Thu, 3 Dec 2020 16:35:20 -0500 Received: from ppma03ams.nl.ibm.com (62.31.33a9.ip4.static.sl-reverse.com [169.51.49.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 35775csgpm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2020 16:35:20 -0500 Received: from pps.filterd (ppma03ams.nl.ibm.com [127.0.0.1]) by ppma03ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 0B3LW8aq021225; Thu, 3 Dec 2020 21:35:18 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma03ams.nl.ibm.com with ESMTP id 3573v9r67q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2020 21:35:18 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 0B3LZFed1835584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 Dec 2020 21:35:15 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B3B0AAE053; Thu, 3 Dec 2020 21:35:15 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E892AE045; Thu, 3 Dec 2020 21:35:15 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 3 Dec 2020 21:35:15 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 4958) id 14A8DE01E6; Thu, 3 Dec 2020 22:35:15 +0100 (CET) From: Eric Farman To: Alex Williamson , Cornelia Huck Cc: Kirti Wankhede , Halil Pasic , Matthew Rosato , linux-s390@vger.kernel.org, kvm@vger.kernel.org, Eric Farman Subject: [PATCH v3 0/2] Connect request callback to mdev and vfio-ccw Date: Thu, 3 Dec 2020 22:35:10 +0100 Message-Id: <20201203213512.49357-1-farman@linux.ibm.com> X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-12-03_12:2020-12-03,2020-12-03 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 priorityscore=1501 spamscore=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 clxscore=1015 mlxlogscore=817 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012030122 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Alex, As promised, here is a v3 with a message indicating a request is blocked until a user releases the device in question and a corresponding tweak to the commit message describing this change (and Conny's r-b). The remainder of the patches are otherwise identical. v2 : https://lore.kernel.org/kvm/20201120180740.87837-1-farman@linux.ibm.com/ v1(RFC) : https://lore.kernel.org/kvm/20201117032139.50988-1-farman@linux.ibm.com/ Eric Farman (2): vfio-mdev: Wire in a request handler for mdev parent vfio-ccw: Wire in the request callback drivers/s390/cio/vfio_ccw_ops.c | 26 ++++++++++++++++++++++++++ drivers/s390/cio/vfio_ccw_private.h | 4 ++++ drivers/vfio/mdev/mdev_core.c | 4 ++++ drivers/vfio/mdev/vfio_mdev.c | 13 +++++++++++++ include/linux/mdev.h | 4 ++++ include/uapi/linux/vfio.h | 1 + 6 files changed, 52 insertions(+) -- 2.17.1