From: Kevin Wolf Date: Wed, 8 Feb 2012 13:34:38 +0000 (+0100) Subject: KVM: x86 emulator: Fix task switch privilege checks X-Git-Tag: v3.4-rc1~59^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f3d35fddd173e52886d03bc34b5b5d6f5bea343;p=pandora-kernel.git KVM: x86 emulator: Fix task switch privilege checks 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. [avi: kill kvm-kmod remnants] Signed-off-by: Kevin Wolf Signed-off-by: Avi Kivity --- Reading git-diff-tree failed