]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a795aad0a382044fb30b660693a64c96df01699
tree6e176b9777ab7ff13d7ea99e302a1bfa96953bce
parentfa165581a768eefcc7e3f5336c351b178bb69773
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