tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue head: e81c4f4b2dcf427c4fffe0f5772f06f1ef9d15aa commit: fc2f83337b7996e4a34c0eed3fbadddf2b67b9f5 [100/190] KVM: Move vcpu alloc and init invocation to common code config: s390-debug_defconfig (attached as .config) compiler: s390-linux-gcc (GCC) 7.5.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 fc2f83337b7996e4a34c0eed3fbadddf2b67b9f5 # save the attached .config to linux build tree GCC_VERSION=7.5.0 make.cross ARCH=s390 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): arch/s390/kvm/kvm-s390.c: In function 'kvm_arch_vcpu_create': >> arch/s390/kvm/kvm-s390.c:3031:32: error: 'id' undeclared (first use in this function); did you mean 'fd'? vcpu->arch.sie_block->icpua = id; ^~ fd arch/s390/kvm/kvm-s390.c:3031:32: note: each undeclared identifier is reported only once for each function it appears in arch/s390/kvm/kvm-s390.c:3033:39: error: 'kvm' undeclared (first use in this function) vcpu->arch.sie_block->gd = (u32)(u64)kvm->arch.gisa_int.origin; ^~~ vim +3031 arch/s390/kvm/kvm-s390.c 897cc38eaab96d Sean Christopherson 2019-12-18 3013 fc2f83337b7996 Sean Christopherson 2019-12-18 3014 int kvm_arch_vcpu_create(struct kvm_vcpu *vcpu) b0c632db637d68 Heiko Carstens 2008-03-25 3015 { 7feb6bb8e6dbd1 Michael Mueller 2013-06-28 3016 struct sie_page *sie_page; 897cc38eaab96d Sean Christopherson 2019-12-18 3017 int rc; 4d47555a804956 Carsten Otte 2011-10-18 3018 da72ca4d4090a8 QingFeng Hao 2017-06-07 3019 BUILD_BUG_ON(sizeof(struct sie_page) != 4096); 7feb6bb8e6dbd1 Michael Mueller 2013-06-28 3020 sie_page = (struct sie_page *) get_zeroed_page(GFP_KERNEL); 7feb6bb8e6dbd1 Michael Mueller 2013-06-28 3021 if (!sie_page) fc2f83337b7996 Sean Christopherson 2019-12-18 3022 return -ENOMEM; b0c632db637d68 Heiko Carstens 2008-03-25 3023 7feb6bb8e6dbd1 Michael Mueller 2013-06-28 3024 vcpu->arch.sie_block = &sie_page->sie_block; 7feb6bb8e6dbd1 Michael Mueller 2013-06-28 3025 vcpu->arch.sie_block->itdba = (unsigned long) &sie_page->itdb; 7feb6bb8e6dbd1 Michael Mueller 2013-06-28 3026 efed110446226c David Hildenbrand 2015-04-16 3027 /* the real guest size will always be smaller than msl */ efed110446226c David Hildenbrand 2015-04-16 3028 vcpu->arch.sie_block->mso = 0; efed110446226c David Hildenbrand 2015-04-16 3029 vcpu->arch.sie_block->msl = sclp.hamax; efed110446226c David Hildenbrand 2015-04-16 3030 b0c632db637d68 Heiko Carstens 2008-03-25 @3031 vcpu->arch.sie_block->icpua = id; ba5c1e9b6ceebd Carsten Otte 2008-03-25 3032 spin_lock_init(&vcpu->arch.local_int.lock); 982cff42595990 Michael Mueller 2019-01-31 3033 vcpu->arch.sie_block->gd = (u32)(u64)kvm->arch.gisa_int.origin; 4b9f952577fb40 Michael Mueller 2017-06-23 3034 if (vcpu->arch.sie_block->gd && sclp.has_gisaf) 4b9f952577fb40 Michael Mueller 2017-06-23 3035 vcpu->arch.sie_block->gd |= GISA_FORMAT1; 9c23a1318eb12f David Hildenbrand 2016-02-17 3036 seqcount_init(&vcpu->arch.cputm_seqcount); ba5c1e9b6ceebd Carsten Otte 2008-03-25 3037 321f8ee559d697 Sean Christopherson 2019-12-18 3038 vcpu->arch.pfault_token = KVM_S390_PFAULT_TOKEN_INVALID; 321f8ee559d697 Sean Christopherson 2019-12-18 3039 kvm_clear_async_pf_completion_queue(vcpu); 321f8ee559d697 Sean Christopherson 2019-12-18 3040 vcpu->run->kvm_valid_regs = KVM_SYNC_PREFIX | 321f8ee559d697 Sean Christopherson 2019-12-18 3041 KVM_SYNC_GPRS | 321f8ee559d697 Sean Christopherson 2019-12-18 3042 KVM_SYNC_ACRS | 321f8ee559d697 Sean Christopherson 2019-12-18 3043 KVM_SYNC_CRS | 321f8ee559d697 Sean Christopherson 2019-12-18 3044 KVM_SYNC_ARCH0 | 321f8ee559d697 Sean Christopherson 2019-12-18 3045 KVM_SYNC_PFAULT; 321f8ee559d697 Sean Christopherson 2019-12-18 3046 kvm_s390_set_prefix(vcpu, 0); 321f8ee559d697 Sean Christopherson 2019-12-18 3047 if (test_kvm_facility(vcpu->kvm, 64)) 321f8ee559d697 Sean Christopherson 2019-12-18 3048 vcpu->run->kvm_valid_regs |= KVM_SYNC_RICCB; 321f8ee559d697 Sean Christopherson 2019-12-18 3049 if (test_kvm_facility(vcpu->kvm, 82)) 321f8ee559d697 Sean Christopherson 2019-12-18 3050 vcpu->run->kvm_valid_regs |= KVM_SYNC_BPBC; 321f8ee559d697 Sean Christopherson 2019-12-18 3051 if (test_kvm_facility(vcpu->kvm, 133)) 321f8ee559d697 Sean Christopherson 2019-12-18 3052 vcpu->run->kvm_valid_regs |= KVM_SYNC_GSCB; 321f8ee559d697 Sean Christopherson 2019-12-18 3053 if (test_kvm_facility(vcpu->kvm, 156)) 321f8ee559d697 Sean Christopherson 2019-12-18 3054 vcpu->run->kvm_valid_regs |= KVM_SYNC_ETOKEN; 321f8ee559d697 Sean Christopherson 2019-12-18 3055 /* fprs can be synchronized via vrs, even if the guest has no vx. With 321f8ee559d697 Sean Christopherson 2019-12-18 3056 * MACHINE_HAS_VX, (load|store)_fpu_regs() will work with vrs format. 321f8ee559d697 Sean Christopherson 2019-12-18 3057 */ 321f8ee559d697 Sean Christopherson 2019-12-18 3058 if (MACHINE_HAS_VX) 321f8ee559d697 Sean Christopherson 2019-12-18 3059 vcpu->run->kvm_valid_regs |= KVM_SYNC_VRS; 321f8ee559d697 Sean Christopherson 2019-12-18 3060 else 321f8ee559d697 Sean Christopherson 2019-12-18 3061 vcpu->run->kvm_valid_regs |= KVM_SYNC_FPRS; 321f8ee559d697 Sean Christopherson 2019-12-18 3062 321f8ee559d697 Sean Christopherson 2019-12-18 3063 if (kvm_is_ucontrol(vcpu->kvm)) { 321f8ee559d697 Sean Christopherson 2019-12-18 3064 rc = __kvm_ucontrol_vcpu_init(vcpu); 321f8ee559d697 Sean Christopherson 2019-12-18 3065 if (rc) a2017f17fa175b Sean Christopherson 2019-12-18 3066 goto out_free_sie_block; 321f8ee559d697 Sean Christopherson 2019-12-18 3067 } 321f8ee559d697 Sean Christopherson 2019-12-18 3068 8335713ad08caf Christian Borntraeger 2015-12-08 3069 VM_EVENT(kvm, 3, "create cpu %d at 0x%pK, sie block at 0x%pK", id, vcpu, b0c632db637d68 Heiko Carstens 2008-03-25 3070 vcpu->arch.sie_block); ade38c311a0ad8 Cornelia Huck 2012-07-23 3071 trace_kvm_s390_create_vcpu(id, vcpu, vcpu->arch.sie_block); b0c632db637d68 Heiko Carstens 2008-03-25 3072 fc2f83337b7996 Sean Christopherson 2019-12-18 3073 return 0; fc2f83337b7996 Sean Christopherson 2019-12-18 3074 7b06bf2ffa15e1 Wei Yongjun 2010-03-09 3075 out_free_sie_block: 7b06bf2ffa15e1 Wei Yongjun 2010-03-09 3076 free_page((unsigned long)(vcpu->arch.sie_block)); fc2f83337b7996 Sean Christopherson 2019-12-18 3077 return rc; b0c632db637d68 Heiko Carstens 2008-03-25 3078 } b0c632db637d68 Heiko Carstens 2008-03-25 3079 :::::: The code at line 3031 was first introduced by commit :::::: b0c632db637d68ad39d9f97f452ce176253f5f4e KVM: s390: arch backend for the kvm kernel module :::::: TO: Heiko Carstens <heiko.carstens@xxxxxxxxxx> :::::: CC: Avi Kivity <avi@xxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation
Attachment:
.config.gz
Description: application/gzip