x86/asm: Tidy up TSS limit code
authorAndy Lutomirski <luto@kernel.org>
Wed, 22 Feb 2017 15:36:16 +0000 (07:36 -0800)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 1 Mar 2017 16:03:22 +0000 (17:03 +0100)
commitb7ceaec112aa35aa287325754d8c52b8304892cd
treeaf5014f643adf8db9d82178bfb22f68062ed41c2
parente3736c3eb3a6f7c0966923b629c9f92b558aa9c7
x86/asm: Tidy up TSS limit code

In an earlier version of the patch ("x86/kvm/vmx: Defer TR reload
after VM exit") that introduced TSS limit validity tracking, I
confused which helper was which.  On reflection, the names I chose
sucked.  Rename the helpers to make it more obvious what's going on
and add some comments.

While I'm at it, clear __tss_limit_invalid when force-reloading as
well as when contitionally reloading, since any TR reload fixes the
limit.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/include/asm/desc.h
arch/x86/kernel/ioport.c
arch/x86/kernel/process.c