]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: vmx: detect mismatched size in VMCS read/write
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Dec 2015 14:56:55 +0000 (15:56 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Dec 2015 17:49:47 +0000 (18:49 +0100)
commit6fb8c96f3f34c3fe0f400f67e71aae6a937f9f4b
treeba6acc993b63221e9bbeafb5c68d072dc6cbbd15
parented5e054ec536319c86ce934e82bb43e6bc3d4e8e
KVM: vmx: detect mismatched size in VMCS read/write

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
I am sending this as RFC because the error messages it produces are
very ugly.  Because of inlining, the original line is lost.  The
alternative is to change vmcs_read/write/checkXX into macros, but
then you need to have a single huge BUILD_BUG_ON or BUILD_BUG_ON_MSG
because multiple BUILD_BUG_ON* with the same __LINE__ are not
supported well.
arch/x86/kvm/vmx.c