From: Xiao Guangrong Date: Mon, 11 Jul 2011 19:28:54 +0000 (+0800) Subject: KVM: MMU: filter out the mmio pfn from the fault pfn X-Git-Tag: v3.1-rc1~264^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fce92dce79dbf5fff39c7ac2fb149729d79b7a39;p=pandora-kernel.git KVM: MMU: filter out the mmio pfn from the fault pfn If the page fault is caused by mmio, the gfn can not be found in memslots, and 'bad_pfn' is returned on gfn_to_hva path, so we can use 'bad_pfn' to identify the mmio page fault. And, to clarify the meaning of mmio pfn, we return fault page instead of bad page when the gfn is not allowd to prefetch Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity --- Reading git-diff-tree failed