commit | 64a38292ed5f1e9d1bbc15b591cc3b57ce89473f | [log] [tgz] |
---|---|---|
author | Nadav Amit <namit@cs.technion.ac.il> | Wed Dec 10 11:19:04 2014 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Dec 10 12:53:37 2014 +0100 |
tree | d3be824a5fc8c034cea5aa3e157ebec6efeda7e7 | |
parent | bc397a6c914c75d8ae21dad23eba9ae82e34dad3 [diff] |
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 <namit@cs.technion.ac.il> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>