commit | fce92dce79dbf5fff39c7ac2fb149729d79b7a39 | [log] [tgz] |
---|---|---|
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | Tue Jul 12 03:28:54 2011 +0800 |
committer | Avi Kivity <avi@redhat.com> | Sun Jul 24 11:50:34 2011 +0300 |
tree | 455461b843f5f94356786ea0e21132740458588a | |
parent | c37079586f317d7e7f1a70d36f0e5177691c89c2 [diff] |
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 <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>