tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git master head: 0f77e26d68b2d6cad536d27707fc4b4955b3048b commit: 0f77e26d68b2d6cad536d27707fc4b4955b3048b [5/5] KVM: async_pf: avoid async pf injection when in guest mode config: x86_64-randconfig-x015-201723 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 0f77e26d68b2d6cad536d27707fc4b4955b3048b # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): arch/x86/kvm/mmu.c: In function 'try_async_pf': >> arch/x86/kvm/mmu.c:3725:19: error: implicit declaration of function 'can_do_async_pf' [-Werror=implicit-function-declaration] if (!prefault && can_do_async_pf(vcpu)) { ^~~~~~~~~~~~~~~ Cyclomatic Complexity 5 include/linux/compiler.h:__read_once_size Cyclomatic Complexity 5 include/linux/compiler.h:__write_once_size Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_read Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_set Cyclomatic Complexity 1 arch/x86/include/asm/atomic.h:atomic_inc Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:set_bit Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:clear_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:__clear_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:__test_and_set_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:__ffs Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:ffs Cyclomatic Complexity 2 arch/x86/include/asm/jump_label.h:arch_static_branch Cyclomatic Complexity 1 include/linux/jump_label.h:static_key_false Cyclomatic Complexity 1 arch/x86/include/asm/page_64.h:clear_page Cyclomatic Complexity 2 include/linux/list.h:__list_add Cyclomatic Complexity 1 include/linux/list.h:list_add Cyclomatic Complexity 1 include/linux/list.h:list_add_tail Cyclomatic Complexity 1 include/linux/list.h:__list_del Cyclomatic Complexity 2 include/linux/list.h:__list_del_entry Cyclomatic Complexity 1 include/linux/list.h:list_del Cyclomatic Complexity 1 include/linux/list.h:list_move Cyclomatic Complexity 1 include/linux/list.h:list_move_tail Cyclomatic Complexity 1 include/linux/list.h:list_empty Cyclomatic Complexity 3 include/linux/list.h:list_empty_careful Cyclomatic Complexity 2 include/linux/list.h:__hlist_del Cyclomatic Complexity 1 include/linux/list.h:hlist_del Cyclomatic Complexity 2 include/linux/list.h:hlist_add_head Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:native_pte_val Cyclomatic Complexity 1 arch/x86/include/asm/pgtable_types.h:pte_flags Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:pte_val Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_disable Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_enable Cyclomatic Complexity 2 include/linux/thread_info.h:test_ti_thread_flag Cyclomatic Complexity 1 include/linux/thread_info.h:check_object_size Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub Cyclomatic Complexity 1 include/linux/lockdep.h:lock_is_held Cyclomatic Complexity 1 include/linux/spinlock.h:spin_lock Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_acquire Cyclomatic Complexity 1 include/linux/rcupdate.h:rcu_lock_release Cyclomatic Complexity 2 include/linux/srcu.h:srcu_read_lock_held Cyclomatic Complexity 1 include/linux/srcu.h:srcu_read_lock Cyclomatic Complexity 1 include/linux/srcu.h:srcu_read_unlock Cyclomatic Complexity 2 include/linux/mmzone.h:__nr_to_section Cyclomatic Complexity 3 include/linux/mmzone.h:valid_section Cyclomatic Complexity 2 include/linux/mmzone.h:pfn_valid Cyclomatic Complexity 1 arch/x86/include/asm/topology.h:numa_node_id Cyclomatic Complexity 1 include/linux/topology.h:numa_mem_id Cyclomatic Complexity 1 include/linux/gfp.h:gfp_zonelist Cyclomatic Complexity 1 include/linux/gfp.h:node_zonelist Cyclomatic Complexity 1 include/linux/gfp.h:__alloc_pages Cyclomatic Complexity 1 include/linux/gfp.h:__alloc_pages_node Cyclomatic Complexity 2 include/linux/gfp.h:alloc_pages_node Cyclomatic Complexity 1 include/linux/sched.h:spin_needbreak Cyclomatic Complexity 1 include/linux/sched.h:need_resched Cyclomatic Complexity 2 include/linux/page-flags.h:compound_head Cyclomatic Complexity 1 include/linux/page-flags.h:PageTail Cyclomatic Complexity 3 include/linux/page-flags.h:PageCompound Cyclomatic Complexity 1 include/linux/page-flags.h:PageReserved Cyclomatic Complexity 1 include/linux/page-flags.h:PageTransCompound Cyclomatic Complexity 3 include/linux/page-flags.h:PageTransCompoundMap Cyclomatic Complexity 1 include/linux/page_ref.h:page_count Cyclomatic Complexity 1 arch/x86/include/asm/pgtable.h:pte_write Cyclomatic Complexity 1 arch/x86/include/asm/pgtable.h:pte_huge Cyclomatic Complexity 1 arch/x86/include/asm/pgtable.h:pte_pfn Cyclomatic Complexity 1 arch/x86/include/asm/pgtable.h:pte_flags_pkey Cyclomatic Complexity 1 include/asm-generic/pgtable.h:is_zero_pfn Cyclomatic Complexity 1 include/linux/mm.h:lowmem_page_address Cyclomatic Complexity 1 include/linux/slab.h:kmem_cache_zalloc Cyclomatic Complexity 1 include/linux/kasan-checks.h:kasan_check_write Cyclomatic Complexity 1 arch/x86/include/asm/smap.h:clac Cyclomatic Complexity 1 arch/x86/include/asm/smap.h:stac Cyclomatic Complexity 1 arch/x86/include/asm/uaccess_64.h:copy_user_generic Cyclomatic Complexity 10 arch/x86/include/asm/uaccess_64.h:raw_copy_from_user Cyclomatic Complexity 1 include/linux/uaccess.h:__copy_from_user Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_inc Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disabled_dec Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_disable Cyclomatic Complexity 1 include/linux/uaccess.h:pagefault_enable Cyclomatic Complexity 1 include/linux/hash.h:hash_64_generic Cyclomatic Complexity 1 include/linux/percpu_counter.h:percpu_counter_init Cyclomatic Complexity 1 include/linux/percpu_counter.h:percpu_counter_destroy Cyclomatic Complexity 1 include/linux/percpu_counter.h:percpu_counter_add Cyclomatic Complexity 1 include/linux/percpu_counter.h:percpu_counter_read_positive Cyclomatic Complexity 1 arch/x86/include/asm/kvm_host.h:gfn_to_index Cyclomatic Complexity 1 arch/x86/include/asm/kvm_host.h:translate_gpa Cyclomatic Complexity 1 arch/x86/include/asm/kvm_host.h:page_header Cyclomatic Complexity 1 include/linux/kvm_host.h:is_error_pfn Cyclomatic Complexity 1 include/linux/kvm_host.h:is_error_noslot_pfn Cyclomatic Complexity 1 include/linux/kvm_host.h:is_noslot_pfn Cyclomatic Complexity 1 include/linux/kvm_host.h:kvm_is_error_hva Cyclomatic Complexity 6 include/linux/kvm_host.h:__kvm_memslots Cyclomatic Complexity 1 include/linux/kvm_host.h:kvm_memslots Cyclomatic Complexity 1 include/linux/kvm_host.h:kvm_vcpu_memslots vim +/can_do_async_pf +3725 arch/x86/kvm/mmu.c 54bf36aa Paolo Bonzini 2015-04-08 3719 slot = kvm_vcpu_gfn_to_memslot(vcpu, gfn); 3520469d Paolo Bonzini 2015-04-02 3720 async = false; 3520469d Paolo Bonzini 2015-04-02 3721 *pfn = __gfn_to_pfn_memslot(slot, gfn, false, &async, write, writable); af585b92 Gleb Natapov 2010-10-14 3722 if (!async) af585b92 Gleb Natapov 2010-10-14 3723 return false; /* *pfn has correct page already */ af585b92 Gleb Natapov 2010-10-14 3724 78b2c54a Xiao Guangrong 2010-12-07 @3725 if (!prefault && can_do_async_pf(vcpu)) { c9b263d2 Xiao Guangrong 2010-11-01 3726 trace_kvm_try_async_get_page(gva, gfn); af585b92 Gleb Natapov 2010-10-14 3727 if (kvm_find_async_pf_gfn(vcpu, gfn)) { af585b92 Gleb Natapov 2010-10-14 3728 trace_kvm_async_pf_doublefault(gva, gfn); :::::: The code at line 3725 was first introduced by commit :::::: 78b2c54aa4a7e9e4257d2b8e3a4b96d2d0c6e636 KVM: MMU: rename 'no_apf' to 'prefault' :::::: TO: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx> :::::: CC: Avi Kivity <avi@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip