KVM: nSVM: remove trailing padding for struct vmcb_control_area
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 May 2020 19:24:46 +0000 (15:24 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Jun 2020 08:25:59 +0000 (04:25 -0400)
commit7923ef4f6ec4a25a902bd827446eac860b01fd1c
tree6f1a3f6585ffc16f238861fe2474fc9d840ec22d
parent2f675917efc8a4d469f8be95e6ea55b2310bfd0d
KVM: nSVM: remove trailing padding for struct vmcb_control_area

Allow placing the VMCB structs on the stack or in other structs without
wasting too much space.  Add BUILD_BUG_ON as a quick safeguard against typos.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/svm.h