From: Nadav Amit Date: Thu, 2 Oct 2014 22:10:03 +0000 (+0300) Subject: KVM: x86: Emulator performs code segment checks on read access X-Git-Tag: omap-for-v3.20/drop-legacy-3517~40^2~105 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c49c759f7a68b70d2fed019760a66843b3df39b8;p=pandora-kernel.git KVM: x86: Emulator performs code segment checks on read access When read access is performed using a readable code segment, the "conforming" and "non-conforming" checks should not be done. As a result, read using non-conforming readable code segment fails. This is according to Intel SDM 5.6.1 ("Accessing Data in Code Segments"). The fix is not to perform the "non-conforming" checks if the access is not a fetch; the relevant checks are already done when loading the segment. Signed-off-by: Nadav Amit Reviewed-by: Radim Krčmář Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed