From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932412AbdDQBmZ (ORCPT ); Sun, 16 Apr 2017 21:42:25 -0400 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 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9B463BDD4 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=alex.williamson@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 9B463BDD4 Subject: [PATCH v4 0/2] vfio/type1: Synchronous locked page accounting From: Alex Williamson To: alex.williamson@redhat.com, kvm@vger.kernel.org Cc: eric.auger@redhat.com, kwankhede@nvidia.com, peterx@redhat.com, linux-kernel@vger.kernel.org, slp@redhat.com Date: Sun, 16 Apr 2017 19:42:12 -0600 Message-ID: <20170417014142.25866.16852.stgit@gimli.home> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 17 Apr 2017 01:42:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-)