]> git.baikalelectronics.ru Git - kernel.git/commit
x86/kvm/vmx: Don't fetch the TSS base from the GDT
authorAndy Lutomirski <luto@kernel.org>
Mon, 20 Feb 2017 16:56:10 +0000 (08:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Feb 2017 10:48:40 +0000 (11:48 +0100)
commitb9fc087164c0824d893166b930c6be5ebd2383d9
tree12daed95fe9c1dbb389a2e32917e3ac08b2dea87
parent2de850da26b6aeecc66297e3e2146a2aaf6dcb0e
x86/kvm/vmx: Don't fetch the TSS base from the GDT

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: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c