From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH 0/2] KVM: MMU: support VMAs that got remap_pfn_range-ed Date: Mon, 4 Jul 2016 15:40:58 +0800 Message-ID: <577A130A.6090504@linux.intel.com> References: <1467291711-3230-1-git-send-email-pbonzini@redhat.com> <577A049A.4000402@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Kirti Wankhede , Neo Jia , Andrea Arcangeli , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= To: Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 07/04/2016 03:38 PM, Paolo Bonzini wrote: > > > On 04/07/2016 08:39, Xiao Guangrong wrote: >> Why the memory mapped by this mmap() is not a portion of MMIO from >> underlayer physical device? If it is a valid system memory, is this >> interface >> really needed to implemented in vfio? (you at least need to set VM_MIXEDMAP >> if it mixed system memory with MMIO) > > The KVM code does not care if VM_MIXEDMAP is set or not, it works in > either case. Yes, it is. I mean nvdia's vfio patchset should use VM_MIXEDMAP if the memory is mixed. :)