x86/kvm/vmx: Get rid of segment_base() on 64-bit kernels
authorAndy Lutomirski <luto@kernel.org>
Mon, 20 Feb 2017 16:56:11 +0000 (08:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 21 Feb 2017 10:48:46 +0000 (11:48 +0100)
commite28baeadcf0d657c6b6e849ae1b4faccb4faf326
tree6e176b9777ab7ff13d7ea99e302a1bfa96953bce
parente0c230634af99967da79a6ed1faecc720fb623ca
x86/kvm/vmx: Get rid of segment_base() on 64-bit kernels

It was a bit buggy (it didn't list all segment types that needed
64-bit fixups), but the bug was irrelevant because it wasn't called
in any interesting context on 64-bit kernels and was only used for
data segents on 32-bit kernels.

To avoid confusion, make it explicitly 32-bit only.

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