]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/xen: Explicitly pad struct compat_vcpu_info to 64 bytes
authorSean Christopherson <seanjc@google.com>
Wed, 10 Feb 2021 18:26:09 +0000 (10:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Feb 2021 13:03:02 +0000 (08:03 -0500)
commit6e6bf3504119bf5f10c1e1ec6d252873b3c4babb
treedd3b2b7af22a6f6671a0dad8bc37884b271ff7e9
parent1050c60a44d8e46a7d0634f57881ab7d0be7489f
KVM: x86/xen: Explicitly pad struct compat_vcpu_info to 64 bytes

Add a 2 byte pad to struct compat_vcpu_info so that the sum size of its
fields is actually 64 bytes.  The effective size without the padding is
also 64 bytes due to the compiler aligning evtchn_pending_sel to a 4-byte
boundary, but depending on compiler alignment is subtle and unnecessary.

Opportunistically replace spaces with tables in the other fields.

Cc: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210210182609.435200-6-seanjc@google.com>
Reviewed-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/xen.h