From patchwork Fri Dec 1 23:22:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 172679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1475409vqy; Fri, 1 Dec 2023 15:22:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEApG4FgJyp7YyghW8Z7tArrqvC3V4BemSmqlUEGqCGkevsID2SY1mHYKhcY+9S6OjyZqZU X-Received: by 2002:a17:902:cec1:b0:1cf:6d8c:c8f1 with SMTP id d1-20020a170902cec100b001cf6d8cc8f1mr283776plg.46.1701472947363; Fri, 01 Dec 2023 15:22:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701472947; cv=none; d=google.com; s=arc-20160816; b=hpYDd+7Pp5AvBgfsGCsZwgVThv6emkPZnwtjZdk/Y+/QpnMJnHWP9fod+8ycl9K1Id 30FX4S9CdqoUZHgU4cTUYImjXJmNocogebDQbZL0WsDBtrmSOcuXu1ExgydMwUYDMJP9 D+GorNH/nx0ocTysoMmyWOFx5Pv7ydev2comNmQVPI4Zi+bW9KMMY9jCKpWctIl4+xo7 vmxVjGzjVm8l+G7oc4UxbAphDGzEMvq25maeP6Z6YzpHwKMbrqnG8JlESW2pdVjgkmlw McLD8Fkjb5w0NVTK2y3G5E6AvJ+bvBQZ+zz2eKcWC5d1hRD+eneSsIOvrPc1DjJT9sIe KO1A== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=2It67EXDhApMVqtGRDR3LyeWNVXSB0HYmIpaVAhnqBE=; fh=zffnrGUw9ZY0Xvdxi6owBI+dYVecf5ZQoCe0Mdt1cgs=; b=ms5qxnMwOxHvars3FTddaAq4021myZ5U0KEQzgEi+fKm4axLmRDsc8VxoH8EMf53xN I2clCkdmjaCOmDcVbnB1kgCooxfEqZf8x0Yd0h4o1Y23/XrbwaXYHHCHXFljxktz8kzz dapAR08Ko3GzaIzpPPPGxIg43a8aKpOpEviZ5KIJmg+tl/7hUilJsyZ30+0daszv7a0A M8hq53KIy9AX042Mo6dAKyINbaf/pM6pzdLtjiYkMeje6BXOrf8nWY0n7qzD+6GACYe0 CpC12VzErY6qs+14barVffATDd0MDoIRh5ySM0TnBqzhrPgncrCm4LPlrXKeBXkSFHIh BGug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZQXOPosf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y2-20020a170902864200b001cfb7ef2badsi3857325plt.155.2023.12.01.15.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 15:22:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ZQXOPosf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B674381DC60E; Fri, 1 Dec 2023 15:22:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbjLAXWJ (ORCPT + 99 others); Fri, 1 Dec 2023 18:22:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjLAXWI (ORCPT ); Fri, 1 Dec 2023 18:22:08 -0500 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 01D0F103 for ; Fri, 1 Dec 2023 15:22:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701472934; 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; bh=2It67EXDhApMVqtGRDR3LyeWNVXSB0HYmIpaVAhnqBE=; b=ZQXOPosfpxgcFseCVqxnLi9TuHfnrEqzCTZoEN733i5NXzm9ADWQibtChzmogZIAfLwpUB 5JWpAV1JnjYwZWX02BxebKvRXS4tkCNAP9y7nkCsA4KD+40eLCR44Je46ZETMXUtvvd08m LmpCi7n7Jt/Jfg4COPtz+FUGtP10KXM= Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-354-esdEWZ82MIG3sDYRffqlsg-1; Fri, 01 Dec 2023 18:22:13 -0500 X-MC-Unique: esdEWZ82MIG3sDYRffqlsg-1 Received: by mail-io1-f69.google.com with SMTP id ca18e2360f4ac-7b3f80e659aso256017439f.2 for ; Fri, 01 Dec 2023 15:22:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701472932; x=1702077732; h=content-transfer-encoding:mime-version:message-id:subject:cc:to :from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2It67EXDhApMVqtGRDR3LyeWNVXSB0HYmIpaVAhnqBE=; b=YnKfF1YD5Mgk/TcHlah7xjlOEzZ1yAcPBZZR3Q8EmsErhpNdo8XR9y3f6ZVZ7xEl63 DMu5+qJrArWgiLO020dGXRJ+ICrq14ctPlaPIG/otwGivyR7Lp4PYfsLhtMG66Tu1xPC l8m2b7Fp7qazvsa6ndRuB9GNght9Zant9Pr2sXU7AYMhxE9yT870Sjxat1KJ4hCmupBf gEviihYcaPOUfbm/NwT5WY5Aqesd4dEq6wE0O9F+HnkxEQuRr69p2GO9vRTTHg2ZHP+Z 6odU58o+Ipy22CcBCzqH6rQxu08VlDmKWz/y6bRaNU2A9Ep7VrK51dkpVXJojnrrnwAu RyQw== X-Gm-Message-State: AOJu0Yw9WBaiY07Inn6QFPs4MN0Xj07TmvmZawRKnMaRnxJ6hA7zxuyo UuWdgNBkVmy1T9JCFPRk0ykRO3sDSOZgg4gs66KHi0y74ZDuD58813VgLXQ0g0odXcoJHed97vk 0vt9CaKIVmujwDSBmYlp1MDKbhdCtDtNC X-Received: by 2002:a6b:e815:0:b0:7b4:28f8:2bf8 with SMTP id f21-20020a6be815000000b007b428f82bf8mr378568ioh.33.1701472931940; Fri, 01 Dec 2023 15:22:11 -0800 (PST) X-Received: by 2002:a6b:e815:0:b0:7b4:28f8:2bf8 with SMTP id f21-20020a6be815000000b007b428f82bf8mr378562ioh.33.1701472931716; Fri, 01 Dec 2023 15:22:11 -0800 (PST) Received: from redhat.com ([38.15.60.12]) by smtp.gmail.com with ESMTPSA id cw2-20020a05663849c200b004640db25da8sm1099439jab.131.2023.12.01.15.22.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 15:22:10 -0800 (PST) Date: Fri, 1 Dec 2023 16:22:09 -0700 From: Alex Williamson To: Linus Torvalds Cc: "kvm@vger.kernel.org" , Subject: [GIT PULL] VFIO fix for v6.7-rc4 Message-ID: <20231201162209.1298a086.alex.williamson@redhat.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 01 Dec 2023 15:22:24 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784123697578509921 X-GMAIL-MSGID: 1784123697578509921 Hi Linus, The following changes since commit 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab: Linux 6.7-rc3 (2023-11-26 19:59:33 -0800) are available in the Git repository at: https://github.com/awilliam/linux-vfio.git tags/vfio-v6.7-rc4 for you to fetch changes up to 4ea95c04fa6b9043a1a301240996aeebe3cb28ec: vfio: Drop vfio_file_iommu_group() stub to fudge around a KVM wart (2023-11-30 11:27:17 -0700) ---------------------------------------------------------------- VFIO fixes for v6.7-rc4 - Fix the lifecycle of a mutex in the pds variant driver such that a reset prior to opening the device won't find it uninitialized. Implement the release path to symmetrically destroy the mutex. Also switch a different lock from spinlock to mutex as the code path has the potential to sleep and doesn't need the spinlock context otherwise. (Brett Creeley) - Fix an issue detected via randconfig where KVM tries to symbol_get an undeclared function. The symbol is temporarily declared unconditionally here, which resolves the problem and avoids churn relative to a series pending for the next merge window which resolves some of this symbol ugliness, but also fixes Kconfig dependencies. (Sean Christopherson) ---------------------------------------------------------------- Brett Creeley (2): vfio/pds: Fix mutex lock->magic != lock warning vfio/pds: Fix possible sleep while in atomic context Sean Christopherson (1): vfio: Drop vfio_file_iommu_group() stub to fudge around a KVM wart drivers/vfio/pci/pds/pci_drv.c | 4 ++-- drivers/vfio/pci/pds/vfio_dev.c | 30 +++++++++++++++++++++--------- drivers/vfio/pci/pds/vfio_dev.h | 2 +- include/linux/vfio.h | 8 ++------ 4 files changed, 26 insertions(+), 18 deletions(-)