tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git kvm-arm64/nv-wip-v5.0-rc1 head: 688c386ca096f2c1f2eee386697586c88df5d5bc commit: 78eb72890679e738e27f7ca4d06924c283492d70 [57/75] KVM: arm64: nv: Nested GICv3 Support config: arm-axm55xx_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 78eb72890679e738e27f7ca4d06924c283492d70 # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=arm All errors (new ones prefixed by >>): arch/arm/kvm/../../../virt/kvm/arm/arm.c:125:43: error: 'struct kvm_arch' has no member named 'mmu' ret = kvm_init_stage2_mmu(kvm, &kvm->arch.mmu); ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c:129:11: error: 'struct kvm_arch' has no member named 'nested_mmus' kvm->arch.nested_mmus = NULL; ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c:130:11: error: 'struct kvm_arch' has no member named 'nested_mmus_size' kvm->arch.nested_mmus_size = 0; ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c:144:32: error: 'struct kvm_arch' has no member named 'mmu' kvm_free_stage2_pgd(&kvm->arch.mmu); ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'kvm_arch_vcpu_init': arch/arm/kvm/../../../virt/kvm/arm/arm.c:343:12: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' vcpu->arch.hw_mmu = &vcpu->kvm->arch.mmu; ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c:343:38: error: 'struct kvm_arch' has no member named 'mmu' vcpu->arch.hw_mmu = &vcpu->kvm->arch.mmu; ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'kvm_arch_vcpu_load': arch/arm/kvm/../../../virt/kvm/arm/arm.c:352:2: error: implicit declaration of function 'kvm_vcpu_load_hw_mmu'; did you mean 'kvm_vcpu_load_sysregs'? [-Werror=implicit-function-declaration] kvm_vcpu_load_hw_mmu(vcpu); ^~~~~~~~~~~~~~~~~~~~ kvm_vcpu_load_sysregs In file included from include/asm-generic/percpu.h:7:0, from arch/arm/include/asm/percpu.h:50, from include/linux/percpu.h:13, from include/linux/context_tracking_state.h:5, from include/linux/vtime.h:5, from include/linux/hardirq.h:8, from include/linux/kvm_host.h:10, from arch/arm/kvm/../../../virt/kvm/arm/arm.c:23: arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:36: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^ include/linux/percpu-defs.h:219:47: note: in definition of macro '__verify_pcpu_ptr' const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \ ^~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:13: note: in expansion of macro 'this_cpu_ptr' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^~~~~~~~~~~~ In file included from include/linux/compiler_types.h:68:0, from <command-line>:0: arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:36: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^ include/linux/compiler-gcc.h:57:34: note: in definition of macro 'RELOC_HIDE' __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ ^~~ include/linux/percpu-defs.h:249:2: note: in expansion of macro 'SHIFT_PERCPU_PTR' SHIFT_PERCPU_PTR(ptr, my_cpu_offset); \ ^~~~~~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:13: note: in expansion of macro 'this_cpu_ptr' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:36: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^ include/linux/compiler-gcc.h:57:34: note: in definition of macro 'RELOC_HIDE' __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ ^~~ include/linux/percpu-defs.h:249:2: note: in expansion of macro 'SHIFT_PERCPU_PTR' SHIFT_PERCPU_PTR(ptr, my_cpu_offset); \ ^~~~~~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:13: note: in expansion of macro 'this_cpu_ptr' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:36: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^ include/linux/compiler-gcc.h:58:10: note: in definition of macro 'RELOC_HIDE' (typeof(ptr)) (__ptr + (off)); \ ^~~ include/linux/percpu-defs.h:249:2: note: in expansion of macro 'SHIFT_PERCPU_PTR' SHIFT_PERCPU_PTR(ptr, my_cpu_offset); \ ^~~~~~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:13: note: in expansion of macro 'this_cpu_ptr' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:36: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^ include/linux/compiler-gcc.h:58:10: note: in definition of macro 'RELOC_HIDE' (typeof(ptr)) (__ptr + (off)); \ ^~~ include/linux/percpu-defs.h:249:2: note: in expansion of macro 'SHIFT_PERCPU_PTR' SHIFT_PERCPU_PTR(ptr, my_cpu_offset); \ ^~~~~~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:354:13: note: in expansion of macro 'this_cpu_ptr' last_ran = this_cpu_ptr(vcpu->arch.hw_mmu->last_vcpu_ran); ^~~~~~~~~~~~ arch/arm/kvm/../../../virt/kvm/arm/arm.c:361:39: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' u64 vttbr = kvm_get_vttbr(vcpu->arch.hw_mmu); ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'kvm_arch_vcpu_put': arch/arm/kvm/../../../virt/kvm/arm/arm.c:389:2: error: implicit declaration of function 'kvm_vcpu_put_hw_mmu'; did you mean 'kvm_vcpu_dabt_is_cm'? [-Werror=implicit-function-declaration] kvm_vcpu_put_hw_mmu(vcpu); ^~~~~~~~~~~~~~~~~~~ kvm_vcpu_dabt_is_cm arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'check_vcpu_requests': >> arch/arm/kvm/../../../virt/kvm/arm/arm.c:627:25: error: 'KVM_REQ_GUEST_HYP_IRQ_PENDING' undeclared (first use in this function); did you mean 'KVM_REQ_IRQ_PENDING'? if (kvm_check_request(KVM_REQ_GUEST_HYP_IRQ_PENDING, vcpu)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KVM_REQ_IRQ_PENDING arch/arm/kvm/../../../virt/kvm/arm/arm.c:627:25: note: each undeclared identifier is reported only once for each function it appears in arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'kvm_arch_vcpu_ioctl_run': arch/arm/kvm/../../../virt/kvm/arm/arm.c:677:26: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' update_vmid(&vcpu->arch.hw_mmu->vmid); ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c:724:48: error: 'struct kvm_vcpu_arch' has no member named 'hw_mmu' if (ret <= 0 || need_new_vmid_gen(&vcpu->arch.hw_mmu->vmid) || ^ arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'kvm_vcpu_set_target': arch/arm/kvm/../../../virt/kvm/arm/arm.c:959:15: error: 'KVM_ARM_VCPU_NESTED_VIRT' undeclared (first use in this function); did you mean 'KVM_ARM_VCPU_TIMER_CTRL'? if (test_bit(KVM_ARM_VCPU_NESTED_VIRT, vcpu->arch.features)) { ^~~~~~~~~~~~~~~~~~~~~~~~ KVM_ARM_VCPU_TIMER_CTRL arch/arm/kvm/../../../virt/kvm/arm/arm.c:962:8: error: implicit declaration of function 'cpus_have_const_cap'; did you mean 'cpu_have_feature'? [-Werror=implicit-function-declaration] if (!cpus_have_const_cap(ARM64_HAS_NESTED_VIRT)) ^~~~~~~~~~~~~~~~~~~ cpu_have_feature arch/arm/kvm/../../../virt/kvm/arm/arm.c:962:28: error: 'ARM64_HAS_NESTED_VIRT' undeclared (first use in this function); did you mean 'KVM_ARM_VCPU_NESTED_VIRT'? if (!cpus_have_const_cap(ARM64_HAS_NESTED_VIRT)) ^~~~~~~~~~~~~~~~~~~~~ KVM_ARM_VCPU_NESTED_VIRT arch/arm/kvm/../../../virt/kvm/arm/arm.c:965:9: error: implicit declaration of function 'kvm_vcpu_init_nested'; did you mean 'kvm_vcpu_initialized'? [-Werror=implicit-function-declaration] ret = kvm_vcpu_init_nested(vcpu); ^~~~~~~~~~~~~~~~~~~~ kvm_vcpu_initialized arch/arm/kvm/../../../virt/kvm/arm/arm.c: In function 'kvm_arch_vcpu_ioctl_vcpu_init': arch/arm/kvm/../../../virt/kvm/arm/arm.c:989:3: error: implicit declaration of function 'kvm_nested_s2_clear'; did you mean '__nodes_clear'? [-Werror=implicit-function-declaration] kvm_nested_s2_clear(vcpu->kvm); ^~~~~~~~~~~~~~~~~~~ __nodes_clear cc1: some warnings being treated as errors -- arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c: In function 'kvm_vgic_flush_hwstate': >> arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c:920:21: error: 'KVM_REQ_GUEST_HYP_IRQ_PENDING' undeclared (first use in this function); did you mean 'KVM_REQ_IRQ_PENDING'? kvm_make_request(KVM_REQ_GUEST_HYP_IRQ_PENDING, vcpu); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ KVM_REQ_IRQ_PENDING arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c:920:21: note: each undeclared identifier is reported only once for each function it appears in arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c: In function 'vgic_state_is_nested': >> arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c:1028:13: error: implicit declaration of function '__vcpu_sys_reg'; did you mean 'vcpu_set_reg'? [-Werror=implicit-function-declaration] bool imo = __vcpu_sys_reg(vcpu, HCR_EL2) & HCR_IMO; ^~~~~~~~~~~~~~ vcpu_set_reg >> arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c:1028:34: error: 'HCR_EL2' undeclared (first use in this function); did you mean 'HCR_DC'? bool imo = __vcpu_sys_reg(vcpu, HCR_EL2) & HCR_IMO; ^~~~~~~ HCR_DC >> arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic.c:1033:52: error: implicit declaration of function 'is_hyp_ctxt'; did you mean '__hyp_text'? [-Werror=implicit-function-declaration] return nested_virt_in_use(vcpu) && imo && fmo && !is_hyp_ctxt(vcpu); ^~~~~~~~~~~ __hyp_text cc1: some warnings being treated as errors vim +627 arch/arm/kvm/../../../virt/kvm/arm/arm.c 614 615 static void check_vcpu_requests(struct kvm_vcpu *vcpu) 616 { 617 if (kvm_request_pending(vcpu)) { 618 if (kvm_check_request(KVM_REQ_SLEEP, vcpu)) 619 vcpu_req_sleep(vcpu); 620 621 /* 622 * Clear IRQ_PENDING requests that were made to guarantee 623 * that a VCPU sees new virtual interrupts. 624 */ 625 kvm_check_request(KVM_REQ_IRQ_PENDING, vcpu); 626 > 627 if (kvm_check_request(KVM_REQ_GUEST_HYP_IRQ_PENDING, vcpu)) 628 kvm_inject_nested_irq(vcpu); 629 } 630 } 631 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm