From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752757AbcF3WFs (ORCPT ); Thu, 30 Jun 2016 18:05:48 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:7937 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752065AbcF3WFr (ORCPT ); Thu, 30 Jun 2016 18:05:47 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Thu, 30 Jun 2016 14:58:35 -0700 Date: Thu, 30 Jun 2016 14:59:45 -0700 From: Neo Jia To: Paolo Bonzini CC: , , Kirti Wankhede , Xiao Guangrong , Andrea Arcangeli , Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH 0/2] KVM: MMU: support VMAs that got remap_pfn_range-ed Message-ID: <20160630215944.GA32150@nvidia.com> References: <1467291711-3230-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1467291711-3230-1-git-send-email-pbonzini@redhat.com> X-NVConfidentiality: public User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL107.nvidia.com (172.20.187.13) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 30, 2016 at 03:01:49PM +0200, Paolo Bonzini wrote: > The vGPU folks would like to trap the first access to a BAR by setting > vm_ops on the VMAs produced by mmap-ing a VFIO device. The fault handler > then can use remap_pfn_range to place some non-reserved pages in the VMA. Hi Paolo, Thanks for the quick patches, I am in the middle of verifying them and will report back asap. Thanks, Neo > > KVM lacks support for this kind of non-linear VM_PFNMAP mapping, and these > patches should fix this. > > Thanks, > > Paolo > > Paolo Bonzini (2): > KVM: MMU: prepare to support mapping of VM_IO and VM_PFNMAP frames > KVM: MMU: try to fix up page faults before giving up > > mm/gup.c | 1 + > virt/kvm/kvm_main.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++----- > 2 files changed, 51 insertions(+), 5 deletions(-) > > -- > 1.8.3.1 >