[arm-platforms:kvm-arm64/vcpu-xarray 2/2] arch/x86/kvm/vmx/posted_intr.c:261:32: error: 'struct kvm' has no member named 'vcpus'

kernel test robot lkp at intel.com
Sat Jan 2 03:44:14 EST 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/vcpu-xarray
head:   8069e9ac6315f0b552565c8d96f32cc6d77d0456
commit: 8069e9ac6315f0b552565c8d96f32cc6d77d0456 [2/2] KVM: Convert the kvm->vcpus array to a xarray
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=8069e9ac6315f0b552565c8d96f32cc6d77d0456
        git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
        git fetch --no-tags arm-platforms kvm-arm64/vcpu-xarray
        git checkout 8069e9ac6315f0b552565c8d96f32cc6d77d0456
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   arch/x86/kvm/vmx/posted_intr.c: In function 'pi_update_irte':
>> arch/x86/kvm/vmx/posted_intr.c:261:32: error: 'struct kvm' has no member named 'vcpus'
     261 |      !kvm_vcpu_apicv_active(kvm->vcpus[0]))
         |                                ^~


vim +261 arch/x86/kvm/vmx/posted_intr.c

8888cdd0996c2d5 Xiaoyao Li 2020-09-23  238  
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  239  
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  240  /*
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  241   * pi_update_irte - set IRTE for Posted-Interrupts
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  242   *
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  243   * @kvm: kvm
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  244   * @host_irq: host irq of the interrupt
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  245   * @guest_irq: gsi of the interrupt
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  246   * @set: set or unset PI
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  247   * returns 0 on success, < 0 on failure
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  248   */
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  249  int pi_update_irte(struct kvm *kvm, unsigned int host_irq, uint32_t guest_irq,
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  250  		   bool set)
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  251  {
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  252  	struct kvm_kernel_irq_routing_entry *e;
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  253  	struct kvm_irq_routing_table *irq_rt;
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  254  	struct kvm_lapic_irq irq;
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  255  	struct kvm_vcpu *vcpu;
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  256  	struct vcpu_data vcpu_info;
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  257  	int idx, ret = 0;
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  258  
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  259  	if (!kvm_arch_has_assigned_device(kvm) ||
8888cdd0996c2d5 Xiaoyao Li 2020-09-23  260  	    !irq_remapping_cap(IRQ_POSTING_CAP) ||
8888cdd0996c2d5 Xiaoyao Li 2020-09-23 @261  	    !kvm_vcpu_apicv_active(kvm->vcpus[0]))

:::::: The code at line 261 was first introduced by commit
:::::: 8888cdd0996c2d51cd417f9a60a282c034f3fa28 KVM: VMX: Extract posted interrupt support to separate files

:::::: TO: Xiaoyao Li <xiaoyao.li at intel.com>
:::::: CC: Paolo Bonzini <pbonzini at redhat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 45918 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210102/a4e6e8ac/attachment-0001.gz>


More information about the linux-arm-kernel mailing list