Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1644993ybs; Mon, 25 May 2020 23:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2M1JJSbcwSVXJ5y0MVqOhcOQpZqjDPZP0DVNJfbvt9T78uFZtvkgU4/Hpxjlds25KH/Fs X-Received: by 2002:a17:906:edbd:: with SMTP id sa29mr22123963ejb.128.1590474279339; Mon, 25 May 2020 23:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590474279; cv=none; d=google.com; s=arc-20160816; b=eON2SCrtx9v3ibnjDWoQFDlXOq6kSbqbyhBAMiWfcTjvVqy8bidvwbDHE9cddmXhzD r/wdVQctk2dK/UuS5DyZd7TM6gyJux1lQ0hp3uV04UZ5a596BOiYPnb635sjbYY3xd8b uNlqV7CU+paDeNkD8/F7U5yXs70QqnfrAaL1znWDqT6grBWqme0a965HwQuyHae/7gJY cVjdl1llurmlIgXZOn16yuWKy9DPH00XDUnW/lAkW0z6CuZrz7h65aMtQ23m8uuN5J1v 5ES5EWBOilysvtiiVynhC8c4VUxXfJQ22H3vs98OOoiEsbJynG+BFfmUxgV+szm+3YS3 mZlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=xyHCUTas3F16ZK+n98+gQf/X3rsWdl0q0EXVHn6zcqQ=; b=Yi41zG6ddZ8Im0zyp8w+8Mr671Ehx7RZUOoTVFfKe//usdV65+p/sIQwfikIXmXC31 0S0OpoOYTYBdscS3bD4gtYvqyQqKA9QC2pEWuF/d7JXNcKQlKHTCPs7bGgxVLlC28hhD YBotf8XrOz57nf0u9a9Jn3hq4tsHWj/YFB0ncLTbFj0u7hAbX40WQJI6+wVMlAIfDhbk 2YdKCw7AfKWi9uojQglJIQc3s1egxFW1s8/lZFD5fk9QjMHSU1jV07pVvxYYc0JU6J65 uxTtMAXg0MOs3iZxbVo9vW3V3ge+WiZThehjSADu2v17dKWJ0Tk3eHTQQomRgkhbU+fB 4AEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ey7+nu0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si8003040edy.584.2020.05.25.23.24.17; Mon, 25 May 2020 23:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ey7+nu0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729977AbgEZGWP (ORCPT + 99 others); Tue, 26 May 2020 02:22:15 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:13895 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728138AbgEZGWN (ORCPT ); Tue, 26 May 2020 02:22:13 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 25 May 2020 23:20:42 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 25 May 2020 23:22:10 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 25 May 2020 23:22:10 -0700 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 26 May 2020 06:22:10 +0000 Received: from hqnvemgw03.nvidia.com (10.124.88.68) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 26 May 2020 06:22:10 +0000 Received: from sandstorm.nvidia.com (Not Verified[10.2.58.199]) by hqnvemgw03.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Mon, 25 May 2020 23:22:10 -0700 From: John Hubbard To: LKML CC: Souptick Joarder , John Hubbard , Ingo Molnar , Borislav Petkov , Thomas Gleixner , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , "H . Peter Anvin" , , Subject: [PATCH 0/2] KVM: SVM: convert get_user_pages() --> pin_user_pages(), bug fixes Date: Mon, 25 May 2020 23:22:05 -0700 Message-ID: <20200526062207.1360225-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1590474042; bh=xyHCUTas3F16ZK+n98+gQf/X3rsWdl0q0EXVHn6zcqQ=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=ey7+nu0R2FPsgmiBmHjb7F5Y0ADHbPJ0yum97UBILsXbjXAtn3kOVKjSj1QKjVnQm iQXdYCvx0qaJZMEFGKZahaThMMdnDvoi6FGdpvhkLJCRheWBG1apBurFlPNiNnCKLM wz8F5ThCruyg7jUyt+7loyRsDSmanTCg3FWFjg/nebLBDK7jP6oIIkBJAFm8czFw8R IEbOP4U79X767fLsRqt1lJ3/9zlzV7i1G7spOHS9QkTfDsfkEjuouu35pZxYx03obh u3YgPJ1iyu2URs8jIBpx57ojeauDJfPbINW/655wqs/ISdDx1fkppwOom9ADXqy5J3 UKwU1YIayHCOA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is just for the SEV (Secure Encrypted Virtualization) part of KVM. It converts the get_user_pages_fast() call, after fixing a couple of small bugs in the vicinity. Note that I have only compile-tested these two patches, so any run-time testing coverage would be greatly appreciated. Cc: Ingo Molnar Cc: Borislav Petkov Cc: Thomas Gleixner Cc: Paolo Bonzini Cc: Sean Christopherson Cc: Vitaly Kuznetsov Cc: Wanpeng Li Cc: Jim Mattson Cc: Joerg Roedel Cc: H. Peter Anvin Cc: x86@kernel.org Cc: kvm@vger.kernel.org John Hubbard (2): KVM: SVM: fix svn_pin_memory()'s use of get_user_pages_fast() KVM: SVM: convert get_user_pages() --> pin_user_pages() arch/x86/kvm/svm/sev.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) base-commit: 9cb1fd0efd195590b828b9b865421ad345a4a145 --=20 2.26.2