From: Alex Williamson Subject: [PATCH v4 0/2] vfio/type1: Synchronous locked page accounting Date: Sun, 16 Apr 2017 19:42:12 -0600 Message-ID: <20170417014142.25866.16852.stgit@gimli.home> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: eric.auger@redhat.com, kwankhede@nvidia.com, peterx@redhat.com, linux-kernel@vger.kernel.org, slp@redhat.com To: alex.williamson@redhat.com, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:54636 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757173AbdDQBmX (ORCPT ); Sun, 16 Apr 2017 21:42:23 -0400 Sender: kvm-owner@vger.kernel.org List-ID: v4: vfio_lock_acct() should not fail due to RLIMIT_MEMLOCK if task has CAP_IPC_LOCK capability. Introduced 2nd patch to remove redundancy from vfio_pin_page_external() and fix return value. Please re-review. Thanks! Alex --- Alex Williamson (2): vfio/type1: Remove locked page accounting workqueue vfio/type1: Prune vfio_pin_page_external() drivers/vfio/vfio_iommu_type1.c | 127 ++++++++++++++------------------------- 1 file changed, 46 insertions(+), 81 deletions(-)