diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 929d7fccf7cd9133213d621659624346fdea240b..4f3ac8b753b6851a2eaa7b0e2e09b1b107cf519a 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2710,6 +2710,7 @@ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id)
 		goto vcpu_decrement;
 	}
 
+	BUILD_BUG_ON(sizeof(struct kvm_run) > PAGE_SIZE);
 	page = alloc_page(GFP_KERNEL | __GFP_ZERO);
 	if (!page) {
 		r = -ENOMEM;