Skip to content
Commit 21ebf53b authored by Jim Mattson's avatar Jim Mattson Committed by Radim Krčmář
Browse files

KVM: nVMX: Ensure that VMCS12 field offsets do not change



Enforce the invariant that existing VMCS12 field offsets must not
change. Experience has shown that without strict enforcement, this
invariant will not be maintained.

Signed-off-by: default avatarJim Mattson <jmattson@google.com>
Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[Changed the code to use BUILD_BUG_ON_MSG instead of better, but GCC 4.6
 requiring _Static_assert. - Radim.]
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent b348e793
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment