diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index ef117b8423345ca657497334591dbaa8353b2c28..03954f7900f522a496d8249174ec63cc760aa140 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -1491,9 +1491,6 @@ static int __load_segment_descriptor(struct x86_emulate_ctxt *ctxt, goto exception; break; case VCPU_SREG_CS: - if (in_task_switch && rpl != dpl) - goto exception; - if (!(seg_desc.type & 8)) goto exception;