From: Nadav Amit Date: Wed, 13 Aug 2014 13:50:13 +0000 (+0300) Subject: KVM: x86: Avoid emulating instructions on #UD mistakenly X-Git-Tag: omap-for-v3.17/fixes-against-rc2~36^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a6095a0173ad8f20c508446880558c9f9224324;p=pandora-kernel.git KVM: x86: Avoid emulating instructions on #UD mistakenly Commit d40a6898e5 mistakenly caused instructions which are not marked as EmulateOnUD to be emulated upon #UD exception. The commit caused the check of whether the instruction flags include EmulateOnUD to never be evaluated. As a result instructions whose emulation is broken may be emulated. This fix moves the evaluation of EmulateOnUD so it would be evaluated. Signed-off-by: Nadav Amit [Tweak operand order in &&, remove EmulateOnUD where it's now superfluous. - Paolo] Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed