KVM: VMX: use correct vmcs_read/write for guest segment selector/base
authorChao Peng <chao.p.peng@linux.intel.com>
Tue, 21 Feb 2017 08:50:01 +0000 (03:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Mar 2017 02:02:40 +0000 (10:02 +0800)
commit7c3bab189c16a21742172b09979fd84c13698202
tree6fbc694c90993957f8336da7c936f198905e01b9
parent035dcc8e87f63b36f3456b39a352f0a1c785b93b
KVM: VMX: use correct vmcs_read/write for guest segment selector/base

commit 96794e4ed4d758272c486e1529e431efb7045265 upstream.

Guest segment selector is 16 bit field and guest segment base is natural
width field. Fix two incorrect invocations accordingly.

Without this patch, build fails when aggressive inlining is used with ICC.

Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c