genkernel kernel, 2.6.25-gentoo-r9, provided .config has CONFIG_HAVE_KVM=y provided use flags are modules -havekernel, attempt to emerge kvm says [ebuild U ] app-emulation/kvm-79 [78] USE="-havekernel*" * ERROR: app-emulation/kvm-79 failed. * Call stack: * ebuild.sh, line 49: Called pkg_setup * kvm-79.ebuild, line 63: Called die * The specific snippet of code: * die "KVM support not detected!" Adding the line CONFIG_HAVE_KVM=y + CONFIG_KVM=y produces a successful build. Reproducible: Always
CONFIG_HAVE_KVM isn't the config you need. You actually have to build the kvm module itself (CONFIG_KVM) to get some symbols built in that kvm needs to have to build *it's* modules. I don't think a standard genkernel provided .config is sufficient, hence the check.