From: Paolo Bonzini Date: Tue, 2 Sep 2014 11:23:06 +0000 (+0200) Subject: KVM: x86: propagate exception from permission checks on the nested page fault X-Git-Tag: fixes-for-v3.18-merge-window~23^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54987b7afa902e886b3a751c056c2a4d4701020e;p=pandora-kernel.git KVM: x86: propagate exception from permission checks on the nested page fault Currently, if a permission error happens during the translation of the final GPA to HPA, walk_addr_generic returns 0 but does not fill in walker->fault. To avoid this, add an x86_exception* argument to the translate_gpa function, and let it fill in walker->fault. The nested_page_fault field will be true, since the walk_mmu is the nested_mmu and translate_gpu instead operates on the "outer" (NPT) instance. Reported-by: Valentine Sinitsyn Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed