• Andy Lutomirski's avatar
    x86/kvm/vmx: Don't fetch the TSS base from the GDT · e0c23063
    Andy Lutomirski authored
    The current CPU's TSS base is a foregone conclusion, so there's no need
    to parse it out of the segment tables.  This should save a couple cycles
    (as STR is surely microcoded and poorly optimized) but, more importantly,
    it's a cleanup and it means that segment_base() will never be called on
    64-bit kernels.
    
    Cc: Thomas Garnier <thgarnie@google.com>
    Cc: Jim Mattson <jmattson@google.com>
    Cc: Radim Krčmář <rkrcmar@redhat.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: default avatarAndy Lutomirski <luto@kernel.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    e0c23063
vmx.c 329 KB