Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1328320rwd; Thu, 1 Jun 2023 14:00:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73QjcAIeiE0x9Csx/Jb4o57LyLbZtkGnxrqaz0yZ4WCeg2r8twXE/T8LdNzIuqA91e76Gp X-Received: by 2002:a05:6a00:1594:b0:64f:daa6:3e3f with SMTP id u20-20020a056a00159400b0064fdaa63e3fmr10603892pfk.5.1685653206970; Thu, 01 Jun 2023 14:00:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685653206; cv=none; d=google.com; s=arc-20160816; b=kS4uPoo2+YoPGLPqPqDW2wYwK9rdny5DTLWWSCpoILi6GlVx94MqVhyE1Ivcf+mwh4 mqfDk24MFIf1xgYMZW9V013ntHewYxNlHM+phKeFwfu1xjOhg/jKxJpYWND+HpQAMAvE LlhmvgseNl9f0uocePsgGYWkB/QMAzNEnCibPyYzJjPjMwnm6pRNMyFVP1xfG8fnwOWL JgILvqvi9ZXdFwiug98Wa5vOCgAubC0U+mn32M1D5GYfEAUYehRJvaW6z7NaxmbmkPIH hoNjoFlv+GUbvu3mVY4Nxs7wfJRd/G+98yI+sp2aTmIC2WbRVu7afM54bpKUJXq6DbGB /khA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rmRZRfKWVEY0SEozIOD2eDdbXyNH6CzhN64nvWsaek4=; b=mL2cit77XAIvMsQsq9nv5KjhybNJqgzHYzbDwuF25DTAP/GO8y9tiEQwmp2AFwZxg9 y8HTfi6Dhy8R+rfAqVlK7p/6pKGJf2S4vBvBt+VQzSHJmL6xKCIcQFTD+w//ANBkLkAa 5eJwzdtVeopo50szp8MUiFRfmtQEHmesL6nkNcPxh+6YPzvwOaqMg4fUL+rv1qZH/iM8 eOaELNHEvtxNUi/L9uqNwYnbrt+nrAMzrjyGYgj3jOTL73bZcGRkwj3kX1Ckolft4TN8 NlZr8l4tL80g4oTs//3Tveu6U/Bxfwlomq86D5qvoItmQDUGXb90Yu3YGeeTzPQY6uMP s1tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hcoGCZHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x28-20020aa7957c000000b0064d425629dfsi371870pfq.51.2023.06.01.13.59.53; Thu, 01 Jun 2023 14:00:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hcoGCZHX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232102AbjFAUsM (ORCPT + 99 others); Thu, 1 Jun 2023 16:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbjFAUsK (ORCPT ); Thu, 1 Jun 2023 16:48:10 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC43D1AD for ; Thu, 1 Jun 2023 13:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685652446; 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=rmRZRfKWVEY0SEozIOD2eDdbXyNH6CzhN64nvWsaek4=; b=hcoGCZHX/bF7dj/+y+LhNr3cEo7qCC2h1wN64+IkzT1BpWyPosxhb3CSiUjkgz7LLjk7i0 fiDyNlIQP3jmMgcvW1hgl79RdruhK79oR+vNiKC69I6/Kwhc4lRNYLfxpmosOSQE5k+haW OsK5BgKoECZazjNOZgi3ICq7km+hGf4= Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-642-owt8NyfZOl60kgTjel_Jvg-1; Thu, 01 Jun 2023 16:47:24 -0400 X-MC-Unique: owt8NyfZOl60kgTjel_Jvg-1 Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7776dd75224so29529339f.2 for ; Thu, 01 Jun 2023 13:47:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685652444; x=1688244444; h=content-transfer-encoding:mime-version: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=rmRZRfKWVEY0SEozIOD2eDdbXyNH6CzhN64nvWsaek4=; b=G7fjP43j8ryikkM2Cv0arXw2vbgY3XC/9aRIUBGiSi5TIX3OYPb1zJc42kAb2dOtgF 18AX3GJWuK27nHU1ltIhAcWMo7OvfkPSO9ckKu+mst17i3WUQWmISs4k/A+eyTdlHp+k xxDidXfmM6V59xaCaAxcZP/RmV3PK3SKQBS42Az7bvKhm5wPVj25FQhDIHFHd3GztwSN qhzpjQqJAgMlRKAaEx7iutwF6H+xTCUHn7y/fGu9oEmUm3A5TPBcyrPDG/aCtKzNQYS8 eHjiqrN/Jx+EN/DyL3KoMHHvXnlGcrNhTKKT/Pjof5wSArkBr8///tlOB5qlI1Po6X7J ipxg== X-Gm-Message-State: AC+VfDwZNW7fnAVXmDx6yQD9hmV18lpBdjU7tXhKco8hGTC4A9uypPxE Gs4WEJQRkbEIJsPGIcecQtdkzVrXQkqx4ss/9sVVcsgQPpi1aN+vwA6jnsKd0OKXYVjKikkCVuO v+fgQMKaX6Cq9fEylnwYjIrHa X-Received: by 2002:a6b:6314:0:b0:774:982e:cb0a with SMTP id p20-20020a6b6314000000b00774982ecb0amr439745iog.15.1685652443991; Thu, 01 Jun 2023 13:47:23 -0700 (PDT) X-Received: by 2002:a6b:6314:0:b0:774:982e:cb0a with SMTP id p20-20020a6b6314000000b00774982ecb0amr439722iog.15.1685652443672; Thu, 01 Jun 2023 13:47:23 -0700 (PDT) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id l23-20020a056638221700b004164fe77c06sm2571841jas.26.2023.06.01.13.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 13:47:23 -0700 (PDT) Date: Thu, 1 Jun 2023 14:47:22 -0600 From: Alex Williamson To: Matthew Rosato Cc: Tony Krowiak , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Heiko Carstens , Vasily Gorbik , "agordeev@linux.ibm.com" , jjherne@linux.ibm.com, pasic@linux.ibm.com, farman@linux.ibm.com, borntraeger@linux.ibm.com, Cedric Le Goater Subject: Re: [PATCH 0/3] s390/vfio-ap: fix hang when mdev attached to guest is removed Message-ID: <20230601144722.6eba9c49.alex.williamson@redhat.com> In-Reply-To: <30741787-441a-034f-f8d4-9f1060841051@linux.ibm.com> References: <20230530223538.279198-1-akrowiak@linux.ibm.com> <30741787-441a-034f-f8d4-9f1060841051@linux.ibm.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 31 May 2023 10:51:54 -0400 Matthew Rosato wrote: > On 5/30/23 6:35 PM, Tony Krowiak wrote: > > When a user attempts to remove a vfio-ap mediated device attached to a > > guest, the operation hangs until the mdev's fd is closed by the guest > > (i.e., the hostdev is detached or the guest is shut down). This patch > > series provides kernel-side code that allows userspace to set up a > > communication channel that will allow the vfio_ap device driver to notify > > userspace when a request to release the mdev is received, so that userspace > > can close the mdev fd and avoid the hang. The patch series provides the > > following: > > > > 1. Introduces code to handle the VFIO_DEVICE_GET_IRQ_INFO and > > VFIO_DEVICE_SET_IRQS ioctl calls to set the eventfd_ctx for signaling a > > device request to userspace. > > > > 2. Wires up the VFIO bus driver callback to request a release of the mdev. > > When invoked, the vfio_ap device driver will use the eventfd_ctx set up > > in #1 to signal a request to userspace to release the mdev. > > > > As to how this series eventually reaches master... It touches both s390 and vfio. > > @Alex/@s390 maintainers -- I suggest it go through s390 given the > diffstat, it's almost completely in s390 drivers code. However there > is a uapi hit to vfio.h (in patch 1) that should get at least an ACK > from Alex beforehand. Ack'd, I'll expect this to go through the s390 tree. Thanks, Alex