From patchwork Mon Jan 23 18:20:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Williamson X-Patchwork-Id: 47306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1756315wrn; Mon, 23 Jan 2023 10:31:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXvG5yn8/fX2v1DInCdfg+W9/BBLCcZakmCufEouvwZFri+jSQZA1x0ehM7vmXxLABelVi+s X-Received: by 2002:a05:6402:27cf:b0:49a:23ce:2ab4 with SMTP id c15-20020a05640227cf00b0049a23ce2ab4mr32035265ede.42.1674498710482; Mon, 23 Jan 2023 10:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674498710; cv=none; d=google.com; s=arc-20160816; b=YuadrPdb1ATdZPCq76i7iliZNWnrcIiBoGW+tcMly0naAiglN01xiTpcQIeSfepBue qx5IzNK3ECRDZSzZ19o8BbX69UNNgCC7eHnYoKHx1SVYCEWVwTk8kY+0+rnTJomJSBhS 9kzipqNi4yGGxvWZDU2mpm1nCtS3yeHb/fA8ZD2Lys+8TclNqZ7/8fkvGC7c/CwpTb+V De8EP/8jufMcX0izSbjLnhxwcsGxYe20XCbWMR9KH/0UYWYtmd23JsGM/wTX0JdAYwBp UX7DdYzliP3iV9CQAZUOOJalEbnGoA7jljvI480wEVESRL2c0jOh3JH9br4h+1IJ6Pzv hRFw== 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=7W3OhQFxDq6zqpMtU8wiqsGIhCfIgwM85fzOwnjEcTA=; b=bM+QherdX5cBiB2vzBeFj65wycfQelqbxSFnGZMkGo9TUU8FeyN0e8Q9MpqmMtLDmU 7i50rfk34fP9MkUzDnr2wXFOQPobkSTnwJXWL/Tt1QUYRI1tH6zZ0ry6e/QWS6irLiHA K231yPkph5KrrkTwqagfDAQqah1HN/PDhvkKA4NGW9/9uHwQ5DLQrZLVffomtQ5Brd3/ Au7uQ+Cyq3uiUWX62pQ3+O1AhyY5/YrSfKJuHi19cIoq6Kt65eaMzahApZcyldTNeOaS 37sPOj36XJ5vFwQ2Uw4Y/xjwxQuXNnXBSuDdfoaPQJhsoBHyT6Xic9u1q9dQOel7myup /EuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a8b1A5Zg; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w23-20020aa7cb57000000b0048ec8fe23dcsi43941edt.472.2023.01.23.10.31.27; Mon, 23 Jan 2023 10:31:50 -0800 (PST) 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=a8b1A5Zg; 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 S232824AbjAWSVs (ORCPT + 99 others); Mon, 23 Jan 2023 13:21:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbjAWSVp (ORCPT ); Mon, 23 Jan 2023 13:21:45 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C43D6A75 for ; Mon, 23 Jan 2023 10:20:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674498058; 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=7W3OhQFxDq6zqpMtU8wiqsGIhCfIgwM85fzOwnjEcTA=; b=a8b1A5ZgxGcPbf2WWqvSFaLcZsUwhqqPhU4txBRDSteoZwxZecGh66uyE39B1Uhu/mvSk6 pkiGxbUmgdLFu6KfKAeWPHwVquzYT60H1gBJUtpbIzhcasU/zCBlKRQcGc2Si3kMDnmU8K BboZhy9+KpRNhtCCnYzLEN6nUf5OH+M= Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-611-gsgmpjdGOiaG9aN__wUyhA-1; Mon, 23 Jan 2023 13:20:57 -0500 X-MC-Unique: gsgmpjdGOiaG9aN__wUyhA-1 Received: by mail-il1-f199.google.com with SMTP id i14-20020a056e020d8e00b003034b93bd07so8836859ilj.14 for ; Mon, 23 Jan 2023 10:20:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=7W3OhQFxDq6zqpMtU8wiqsGIhCfIgwM85fzOwnjEcTA=; b=Uomm3ADTE7ya1tl9+wJfrf8V6krNvUomZ5aE0Vw9wUPHjCRdqm4xaAATS+YJCnhzeR nH/Ps+Jmnp4gB8kYBGZeP2bsMUAbkW8LdhVe2BT65AmWupAOTU9Qo0GpRS4kbaUGZM++ NdSTvQCVL+M87pOjadGLnUBkPbYRXmXlHEPhXEOuZHiBEuVdMd6nadbS74CKhxusk7Jk Ad1Ext7yGCEqhjwaVbaIJPC6lrZodzQx30mNvkKzsMeHpVOUbAeGgGUoYkkAVHsUz3Hn omztPyUJKXDZPRfvryaPtKJ1pvAMD6vpX6/rDX1Aa2bF4ba8GDp7uWr7YmUogXlS679K m2BA== X-Gm-Message-State: AFqh2koRWxRzp8KvQSxCXA63kNlR5REotB9eGz8DmSwm8kY8IAXlcGXt ZkBBFLjQBVIrJYlytMv9m+vlM5Vcz+V4C1ukkvjcPMsSDUSKDfYAX8lkMx2B1aWW/tr7xvG/5Ri eOWZWsQZwZ2izgOJkH3ShcBfW X-Received: by 2002:a92:6a07:0:b0:30f:3b60:ba50 with SMTP id f7-20020a926a07000000b0030f3b60ba50mr11516178ilc.21.1674498056324; Mon, 23 Jan 2023 10:20:56 -0800 (PST) X-Received: by 2002:a92:6a07:0:b0:30f:3b60:ba50 with SMTP id f7-20020a926a07000000b0030f3b60ba50mr11516162ilc.21.1674498056101; Mon, 23 Jan 2023 10:20:56 -0800 (PST) Received: from redhat.com ([38.15.36.239]) by smtp.gmail.com with ESMTPSA id z19-20020a05663822b300b003a2b9bcec56sm8573574jas.67.2023.01.23.10.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 10:20:55 -0800 (PST) Date: Mon, 23 Jan 2023 11:20:53 -0700 From: Alex Williamson To: Linus Torvalds Cc: , "kvm@vger.kernel.org" Subject: [GIT PULL] VFIO fixes for v6.2-rc6 Message-ID: <20230123112053.173232a7.alex.williamson@redhat.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755839159410546890?= X-GMAIL-MSGID: =?utf-8?q?1755839159410546890?= Hi Linus, The following changes since commit b7bfaa761d760e72a969d116517eaa12e404c262: Linux 6.2-rc3 (2023-01-08 11:49:43 -0600) are available in the Git repository at: https://github.com/awilliam/linux-vfio.git tags/vfio-v6.2-rc6 for you to fetch changes up to 51cdc8bc120ef6e42f6fb758341f5d91bc955952: kvm/vfio: Fix potential deadlock on vfio group_lock (2023-01-20 08:50:05 -0700) ---------------------------------------------------------------- VFIO fixes for v6.2-rc6 - Honor reserved regions when testing for IOMMU find grained super page support, avoiding a regression on s390 for a firmware device where the existence of the mapping, even if unused can trigger an error state. (Niklas Schnelle) - Fix a deadlock in releasing KVM references by using the alternate .release() rather than .destroy() callback for the kvm-vfio device. (Yi Liu) ---------------------------------------------------------------- Niklas Schnelle (1): vfio/type1: Respect IOMMU reserved regions in vfio_test_domain_fgsp() Yi Liu (1): kvm/vfio: Fix potential deadlock on vfio group_lock drivers/vfio/vfio_iommu_type1.c | 31 ++++++++++++++++++++----------- virt/kvm/vfio.c | 6 +++--- 2 files changed, 23 insertions(+), 14 deletions(-)