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 <kwolf@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
Showing
- arch/x86/include/asm/kvm_emulate.h 1 addition, 1 deletionarch/x86/include/asm/kvm_emulate.h
- arch/x86/include/asm/kvm_host.h 2 additions, 2 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/emulate.c 46 additions, 7 deletionsarch/x86/kvm/emulate.c
- arch/x86/kvm/svm.c 4 additions, 1 deletionarch/x86/kvm/svm.c
- arch/x86/kvm/vmx.c 5 additions, 3 deletionsarch/x86/kvm/vmx.c
- arch/x86/kvm/x86.c 3 additions, 3 deletionsarch/x86/kvm/x86.c
Please register or sign in to comment