Re: [PATCH] KVM: x86: Remove redundant and incorrect cpl check on task-switch

2014-07-31 Thread Nadav Amit
cc'ing the kvm mailing list that was mistakenly omitted. On 7/30/14 9:57 AM, Nadav Amit wrote: > Task-switch emulation checks the privilage level prior to performing the > task-switch. This check is incorrect in the case of task-gates, in which the > tss.dpl is ignored, and can cause superfluous

[PATCH] KVM: x86: Remove redundant and incorrect cpl check on task-switch

2014-07-29 Thread Nadav Amit
Task-switch emulation checks the privilage level prior to performing the task-switch. This check is incorrect in the case of task-gates, in which the tss.dpl is ignored, and can cause superfluous exceptions. Moreover this check is unnecassary, since the CPU checks the privilage levels prior to ex