KVM: x86 emulator: fix 0f 01 /5 emulation
[safe/jmp/linux-2.6] / arch / x86 / kvm / emulate.c
index c3b9334..7c7debb 100644 (file)
@@ -2490,6 +2490,9 @@ twobyte_insn:
                                    (c->src.val & 0x0f), ctxt->vcpu);
                        c->dst.type = OP_NONE;
                        break;
+               case 5: /* not defined */
+                       kvm_queue_exception(ctxt->vcpu, UD_VECTOR);
+                       goto done;
                case 7: /* invlpg*/
                        emulate_invlpg(ctxt->vcpu, memop);
                        /* Disable writeback. */