From: Nadav Amit Date: Wed, 10 Dec 2014 09:19:04 +0000 (+0200) Subject: KVM: x86: Emulate should check #UD before #GP X-Git-Tag: omap-for-v3.19/fixes-rc1~43^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64a38292ed5f1e9d1bbc15b591cc3b57ce89473f;p=pandora-kernel.git KVM: x86: Emulate should check #UD before #GP Intel SDM table 6-2 ("Priority Among Simultaneous Exceptions and Interrupts") shows that faults from decoding the next instruction got higher priority than general protection. Moving the protected-mode check before the CPL check to avoid wrong exception on vm86 mode. Signed-off-by: Nadav Amit Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed