Re: [PATCH v2 1/3] KVM: x86 emulator: Fix task switch privilege checks

2012-01-30 Thread Avi Kivity
On 01/27/2012 09:23 PM, Kevin Wolf wrote: Currently, all task switches check privileges against the DPL of the TSS. This is only correct for jmp/call to a TSS. If a task gate is used, the DPL of this take gate is used for the check instead. Exceptions, external interrupts and iret shouldn't

Re: [PATCH v2 1/3] KVM: x86 emulator: Fix task switch privilege checks

2012-01-30 Thread Kevin Wolf
Am 30.01.2012 11:39, schrieb Avi Kivity: On 01/27/2012 09:23 PM, Kevin Wolf wrote: Currently, all task switches check privileges against the DPL of the TSS. This is only correct for jmp/call to a TSS. If a task gate is used, the DPL of this take gate is used for the check instead. Exceptions,

[PATCH v2 1/3] KVM: x86 emulator: Fix task switch privilege checks

2012-01-27 Thread Kevin Wolf
Currently, all task switches check privileges against the DPL of the TSS. This is only correct for jmp/call to a TSS. If a task gate is used, the DPL of this take gate is used for the check instead. Exceptions, external interrupts and iret shouldn't perform any check. Signed-off-by: Kevin Wolf