x86/svm: Drop svm_segment_register_t
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Jun 2017 12:12:00 +0000 (12:12 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Jul 2017 18:56:35 +0000 (19:56 +0100)
commitf93b6575d10fd4da91def2acf80cd5c1d7082e84
treedff7ae78aeb62df67e40be8c42230343eec634aa
parent28d9a9a2d41759b9e5163037b759ac557aea767c
x86/svm: Drop svm_segment_register_t

Most SVM code already uses struct segment_register.  Drop the typedef and
adjust the definitions in struct vmcb_struct, and svm_dump_sel().  Introduce
some build-time assertions that struct segment_register from the common
emulation code is usable in struct vmcb_struct.

While making these adjustments, fix some comments to not mix decimal and
hexidecimal offsets, and drop all trailing whitespace in vmcb.h

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/svmdebug.c
xen/arch/x86/hvm/svm/vmcb.c
xen/include/asm-x86/hvm/svm/vmcb.h