Kernel KVM virtualization development
 help / color / mirror / Atom feed
* BUILD_BUG_ON failed for kvm_vmx struct size sanity check in vmx.c
@ 2026-08-27  8:52 Jean-Christophe Guillain
  2026-08-28 23:55 ` Sean Christopherson
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe Guillain @ 2026-08-27  8:52 UTC (permalink / raw)
  To: kvm

Hello,

Since yesterday, my daily compilation of Linus tree fails with this
error:

  CC [M]  arch/x86/kvm/vmx/vmx.o
In file included from <command-line>:
arch/x86/kvm/vmx/vmx.c: In function ‘vmx_init’:
././include/linux/compiler_types.h:702:45: error: call to
‘__compiletime_assert_1411’ declared with attribute error: BUILD_BUG_ON
failed: get_order(sizeof(struct kvm_vmx) - SIZE_OF_MEMSLOTS_HASHTABLE)
&& !IS_ENABLED(CONFIG_DEBUG_KERNEL) && !IS_ENABLED(CONFIG_KASAN)
  702 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |                                             ^
././include/linux/compiler_types.h:683:25: note: in definition of macro
‘__compiletime_assert’
  683 |                         prefix ## suffix();                   
\
      |                         ^~~~~~
././include/linux/compiler_types.h:702:9: note: in expansion of macro
‘_compiletime_assert’
  702 |         _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
      |         ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:40:37: note: in expansion of macro
‘compiletime_assert’
   40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond),
msg)
      |                                     ^~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:51:9: note: in expansion of macro
‘BUILD_BUG_ON_MSG’
   51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: "
#condition)
      |         ^~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/../x86.h:38:9: note: in expansion of macro
‘BUILD_BUG_ON’
   38 |         BUILD_BUG_ON(get_order(sizeof(struct x) -
SIZE_OF_MEMSLOTS_HASHTABLE) &&        \
      |         ^~~~~~~~~~~~
arch/x86/kvm/vmx/vmx.c:8874:9: note: in expansion of macro
‘KVM_SANITY_CHECK_VM_STRUCT_SIZE’
 8874 |         KVM_SANITY_CHECK_VM_STRUCT_SIZE(kvm_vmx);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[7]: *** [scripts/Makefile.build:290: arch/x86/kvm/vmx/vmx.o] Error
1

gcc version 12.2.0 (Debian 12.2.0-14+deb12u1)

My build machine is not very powerfull, so I didn't try a bisect for
the moment in case the issue is obvious...
Tell me if I could help.

Cheers !
Jean-Christophe Guillain

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-01  0:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27  8:52 BUILD_BUG_ON failed for kvm_vmx struct size sanity check in vmx.c Jean-Christophe Guillain
2026-08-28 23:55 ` Sean Christopherson
2026-09-01  0:52   ` Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox