KVM: x86: do not check CS.DPL against RPL during task switch
[sfrench/cifs-2.6.git] / arch / x86 / kvm / emulate.c
index ef117b8423345ca657497334591dbaa8353b2c28..03954f7900f522a496d8249174ec63cc760aa140 100644 (file)
@@ -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;