From 64a38292ed5f1e9d1bbc15b591cc3b57ce89473f Mon Sep 17 00:00:00 2001 From: Nadav Amit Date: Wed, 10 Dec 2014 11:19:04 +0200 Subject: [PATCH] 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-format-patch failed