From: Takuya Yoshikawa Date: Thu, 18 Feb 2010 10:15:00 +0000 (+0200) Subject: KVM: Fix load_guest_segment_descriptor() to inject page fault X-Git-Tag: v2.6.34-rc1~193^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f550484a15ea1b468665cdf59f020bf08ccb292;p=pandora-kernel.git KVM: Fix load_guest_segment_descriptor() to inject page fault This patch injects page fault when reading descriptor in load_guest_segment_descriptor() fails with FAULT. Effects of this injection: This function is used by kvm_load_segment_descriptor() which is necessary for the following instructions: - mov seg,r/m16 - jmp far - pop ?s This patch makes it possible to emulate the page faults generated by these instructions. But be sure that unless we change the kvm_load_segment_descriptor()'s ret value propagation this patch has no effect. Signed-off-by: Takuya Yoshikawa Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- Reading git-diff-tree failed