Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e1e5ffe authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity
Browse files

KVM: x86 emulator: fix 0f 01 /5 emulation



It is undefined and should generate #UD.

Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 5e3ae6c5
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2490,6 +2490,9 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
				    (c->src.val & 0x0f), ctxt->vcpu);
				    (c->src.val & 0x0f), ctxt->vcpu);
			c->dst.type = OP_NONE;
			c->dst.type = OP_NONE;
			break;
			break;
		case 5: /* not defined */
			kvm_queue_exception(ctxt->vcpu, UD_VECTOR);
			goto done;
		case 7: /* invlpg*/
		case 7: /* invlpg*/
			emulate_invlpg(ctxt->vcpu, memop);
			emulate_invlpg(ctxt->vcpu, memop);
			/* Disable writeback. */
			/* Disable writeback. */