]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Add build-time error check on kvm_run size
authorPeter Xu <peterx@redhat.com>
Thu, 9 Jan 2020 14:57:12 +0000 (09:57 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 18:59:52 +0000 (19:59 +0100)
commit93a4052cf049ac45091a9e5500224ba631dfe6d9
tree5dd4881c265a5b2dcc72ce056de2c359cd6822e3
parenta622ddb4bd8dd13b5aece099988a363645ac306f
KVM: Add build-time error check on kvm_run size

It's already going to reach 2400 Bytes (which is over half of page
size on 4K page archs), so maybe it's good to have this build-time
check in case it overflows when adding new fields.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c