11.09.2023 13:41, Michael Tokarev:
What can be done though is, instead of making kvm_arch_get_supported_cpuid et all a stubs, to replace them in .h file with an empty macro when some condition(s) are met. In other words, fold kvm_enabled() "inside" of kvm_arch_get_supported_cpuid() and use some assert_not_reached() there.
Which is exactly what Philippe did in "Re-introduce few KVM stubs for Clang debug builds". /mjt