Public bug reported: Attempting to build the 3.13.0-139.188 kernel with CONFIG_PARAVIRT_CLOCK=y but with CONFIG_KVM_GUEST unset fails.
arch/x86/built-in.o: In function `kaiser_init': (.init.text+0x14a84): undefined reference to `kvm_clock' This appears to be because kvmclock.o is included based on CONFIG_KVM_GUEST, but the code in arch/x86/mm/kaiser.c referencing kvm_clock is included based only on CONFIG_PARAVIRT_CLOCK: #ifdef CONFIG_PARAVIRT_CLOCK for (idx = 0; kvm_clock.archdata.vclock_mode == VCLOCK_PVCLOCK && idx <= (PVCLOCK_FIXMAP_END-PVCLOCK_FIXMAP_BEGIN); idx++) { kaiser_add_user_map_early((void *)__fix_to_virt(PVCLOCK_FIXMAP_BEGIN + idx), PAGE_SIZE, __PAGE_KERNEL_VVAR | _PAGE_GLOBAL); } #endif I found this cross-compiling, so the output of ubuntu-bug, cat version_signature and lspci are not correct for the target system. ** Affects: linux (Ubuntu) Importance: Undecided Status: Incomplete -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1742472 Title: 3.13.0-139.188 build fails with CONFIG_PARAVIRT_CLOCK but not CONFIG_KVM_GUEST Status in linux package in Ubuntu: Incomplete Bug description: Attempting to build the 3.13.0-139.188 kernel with CONFIG_PARAVIRT_CLOCK=y but with CONFIG_KVM_GUEST unset fails. arch/x86/built-in.o: In function `kaiser_init': (.init.text+0x14a84): undefined reference to `kvm_clock' This appears to be because kvmclock.o is included based on CONFIG_KVM_GUEST, but the code in arch/x86/mm/kaiser.c referencing kvm_clock is included based only on CONFIG_PARAVIRT_CLOCK: #ifdef CONFIG_PARAVIRT_CLOCK for (idx = 0; kvm_clock.archdata.vclock_mode == VCLOCK_PVCLOCK && idx <= (PVCLOCK_FIXMAP_END-PVCLOCK_FIXMAP_BEGIN); idx++) { kaiser_add_user_map_early((void *)__fix_to_virt(PVCLOCK_FIXMAP_BEGIN + idx), PAGE_SIZE, __PAGE_KERNEL_VVAR | _PAGE_GLOBAL); } #endif I found this cross-compiling, so the output of ubuntu-bug, cat version_signature and lspci are not correct for the target system. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1742472/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp