diff options
-rw-r--r-- | arch/x86/kvm/emulate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index c280c2352f7e..2db760ff887c 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -2126,6 +2126,12 @@ special_insn: | |||
2126 | int err; | 2126 | int err; |
2127 | 2127 | ||
2128 | sel = c->src.val; | 2128 | sel = c->src.val; |
2129 | |||
2130 | if (c->modrm_reg == VCPU_SREG_CS) { | ||
2131 | kvm_queue_exception(ctxt->vcpu, UD_VECTOR); | ||
2132 | goto done; | ||
2133 | } | ||
2134 | |||
2129 | if (c->modrm_reg == VCPU_SREG_SS) | 2135 | if (c->modrm_reg == VCPU_SREG_SS) |
2130 | toggle_interruptibility(ctxt, X86_SHADOW_INT_MOV_SS); | 2136 | toggle_interruptibility(ctxt, X86_SHADOW_INT_MOV_SS); |
2131 | 2137 | ||