From: Xiao Guangrong Date: Sat, 28 Aug 2010 11:24:13 +0000 (+0800) Subject: KVM: MMU: rewrite audit_mappings_page() function X-Git-Tag: v2.6.37-rc1~142^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=365fb3fdf6769d3553999d8eb6cc2a8c56c747c1;p=pandora-kernel.git KVM: MMU: rewrite audit_mappings_page() function There is a bugs in this function, we call gfn_to_pfn() and kvm_mmu_gva_to_gpa_read() in atomic context(kvm_mmu_audit() is called under the spinlock(mmu_lock)'s protection). This patch fix it by: - introduce gfn_to_pfn_atomic instead of gfn_to_pfn - get the mapping gfn from kvm_mmu_page_get_gfn() And it adds 'notrap' ptes check in unsync/direct sps Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity --- Reading git-diff-tree failed