Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4186916ioo; Wed, 25 May 2022 17:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMzDnJPB4HcQIyBLhivvCBOOjoSoUktnc2VIGdF3brBIFKrUhNF+K6jus8G5h7B2D02LFs X-Received: by 2002:a17:906:4795:b0:6f3:d1cc:7127 with SMTP id cw21-20020a170906479500b006f3d1cc7127mr32677621ejc.461.1653526020176; Wed, 25 May 2022 17:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653526020; cv=none; d=google.com; s=arc-20160816; b=qgfLZmodtuhXXBzMpQc9NUZi5liXS3oq+mKteYAUfUt1x4JHQCuKov6aJRyEbCMhq9 zidF0ynq1HV5I86if85y1NLTDrfxr/q9Y8xra7/2qSsKSOu8HG4m2NyH6gT++NPjbbyg whDvpMbl2NoqePMac8Ap/Fgv7QtNOEtNd0rEGimyfp/ts4eNRA9vtV5xCmbbkSycUV4Y gv9PSHtc+PcDr54yEke/nwM360Fn/Y/Cn28jNBWo0zNGfOvbbdHA1dbqC30vYpQia2Pe cVJ6YkSP4G7VhI4bv3bkd2+G3hXrcwgLieleR7rhLJ/wFBd/PnyqURqXgBPwtDIJlM8q dHTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yUpGvcIEN6ejGXXL88BmSRf6wkMAo40L7+C4nhP5NxM=; b=N/Qen2K7cQ+ZXKvUULvF46JxWwAjNFeBCZjAv6r7IAlnbiAsRc5NjxVNSCjnhy/7hx BEFcYvSfYjCP6JPeCiuKJyJgdqRNFokhWbrLXT5/Y1KWYRZu/Y7Y/6TmtrBZvaNTwZ8k ynyn9CiNqW+dgwcXv9km3whK+j7QrGjFnNJVmUjrg8JACcZYmy406DBqUtzGu5hR12OS bt+RZtwCxIW+HYGVuOHQorKOesXluw7njp+4K6XmkKlzFwDAMY21z338u8Su9cX3NNkv ESrcWLcUA1HRRz+A95PBFEtStAw5Afgi1pHd5g5IUu4Eb1Wn/EYL1IHcIjTiY2zqHj1e ADOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FuNYdouK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a17090699c400b006fefcf40922si144707ejn.311.2022.05.25.17.46.34; Wed, 25 May 2022 17:47:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FuNYdouK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343590AbiEYRxb (ORCPT + 99 others); Wed, 25 May 2022 13:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343572AbiEYRx1 (ORCPT ); Wed, 25 May 2022 13:53:27 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EAAFBF78; Wed, 25 May 2022 10:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653501204; x=1685037204; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OBl8VqVg26hgXRW1FrdHxYUiLB4y0jncmZM7TnohZuE=; b=FuNYdouKTfFyKuue9M+iMFEORnfXOZb47tW80Eb7P6gjVWQYTzdkkbJB cJkmQG5RXtsnX4++Om8SoPeFdn0/W4qiLcZKUuluAAp1iAB+TlnDf18sW 8/rRhmZKJ0ENlIuT6IevSos7bL0cXryzbSLFYjNOwcojrj1KbgxtNOSwj xKxGo5mq5DWr4Nn+Myolf9uDPjPBaDgzz+AsMtwL5Nzd04/AHo30Cf839 1+xd8CpC0SjRQpIfHEOpKCambpXh3GppAcAitYKgseGrGfugFh39me6tt 272q8ubjV9FS01iTgo3VcDfE5PTQtpq/6nkYPWfzexcCczZURduuTCmlz g==; X-IronPort-AV: E=McAfee;i="6400,9594,10358"; a="253763447" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="253763447" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 10:53:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="664528898" Received: from lkp-server01.sh.intel.com (HELO db63a1be7222) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 25 May 2022 10:53:04 -0700 Received: from kbuild by db63a1be7222 with local (Exim 4.95) (envelope-from ) id 1ntvBv-0003DC-DD; Wed, 25 May 2022 17:53:03 +0000 Date: Thu, 26 May 2022 01:52:58 +0800 From: kernel test robot To: Eugenio =?iso-8859-1?Q?P=E9rez?= , "Michael S. Tsirkin" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, Jason Wang Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Zhu Lingshan , martinh@xilinx.com, Stefano Garzarella , ecree.xilinx@gmail.com, Eli Cohen , Dan Carpenter , Parav Pandit , Wu Zongyong , dinang@xilinx.com, Christophe JAILLET , Xie Yongji , gautam.dawar@amd.com, lulu@redhat.com, martinpo@xilinx.com, pabloc@xilinx.com, Longpeng , Piotr.Uminski@intel.com, tanuj.kamde@amd.com, Si-Wei Liu , habetsm.xilinx@gmail.com, lvivier@redhat.com, Zhang Min , hanand@xilinx.com Subject: Re: [PATCH v3 3/4] vhost-vdpa: uAPI to stop the device Message-ID: <202205260121.6V500tTl-lkp@intel.com> References: <20220525105922.2413991-4-eperezma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220525105922.2413991-4-eperezma@redhat.com> X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi "Eugenio, Thank you for the patch! Yet something to improve: [auto build test ERROR on mst-vhost/linux-next] [also build test ERROR on next-20220525] [cannot apply to horms-ipvs/master linux/master linus/master v5.18] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Eugenio-P-rez/Implement-vdpasim-stop-operation/20220525-190143 base: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220526/202205260121.6V500tTl-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d52a6e75b0c402c7f3b42a2b1b2873f151220947) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/515f6b6d2a0164df801ddbe61e1cb1ae4e763873 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Eugenio-P-rez/Implement-vdpasim-stop-operation/20220525-190143 git checkout 515f6b6d2a0164df801ddbe61e1cb1ae4e763873 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/vhost/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/vhost/vdpa.c:668:7: error: use of undeclared identifier 'VHOST_STOP' case VHOST_STOP: ^ 1 error generated. vim +/VHOST_STOP +668 drivers/vhost/vdpa.c 587 588 static long vhost_vdpa_unlocked_ioctl(struct file *filep, 589 unsigned int cmd, unsigned long arg) 590 { 591 struct vhost_vdpa *v = filep->private_data; 592 struct vhost_dev *d = &v->vdev; 593 void __user *argp = (void __user *)arg; 594 u64 __user *featurep = argp; 595 u64 features; 596 long r = 0; 597 598 if (cmd == VHOST_SET_BACKEND_FEATURES) { 599 if (copy_from_user(&features, featurep, sizeof(features))) 600 return -EFAULT; 601 if (features & ~(VHOST_VDPA_BACKEND_FEATURES | 602 BIT_ULL(VHOST_BACKEND_F_STOP))) 603 return -EOPNOTSUPP; 604 if ((features & BIT_ULL(VHOST_BACKEND_F_STOP)) && 605 !vhost_vdpa_can_stop(v)) 606 return -EOPNOTSUPP; 607 vhost_set_backend_features(&v->vdev, features); 608 return 0; 609 } 610 611 mutex_lock(&d->mutex); 612 613 switch (cmd) { 614 case VHOST_VDPA_GET_DEVICE_ID: 615 r = vhost_vdpa_get_device_id(v, argp); 616 break; 617 case VHOST_VDPA_GET_STATUS: 618 r = vhost_vdpa_get_status(v, argp); 619 break; 620 case VHOST_VDPA_SET_STATUS: 621 r = vhost_vdpa_set_status(v, argp); 622 break; 623 case VHOST_VDPA_GET_CONFIG: 624 r = vhost_vdpa_get_config(v, argp); 625 break; 626 case VHOST_VDPA_SET_CONFIG: 627 r = vhost_vdpa_set_config(v, argp); 628 break; 629 case VHOST_GET_FEATURES: 630 r = vhost_vdpa_get_features(v, argp); 631 break; 632 case VHOST_SET_FEATURES: 633 r = vhost_vdpa_set_features(v, argp); 634 break; 635 case VHOST_VDPA_GET_VRING_NUM: 636 r = vhost_vdpa_get_vring_num(v, argp); 637 break; 638 case VHOST_VDPA_GET_GROUP_NUM: 639 r = copy_to_user(argp, &v->vdpa->ngroups, 640 sizeof(v->vdpa->ngroups)); 641 break; 642 case VHOST_VDPA_GET_AS_NUM: 643 r = copy_to_user(argp, &v->vdpa->nas, sizeof(v->vdpa->nas)); 644 break; 645 case VHOST_SET_LOG_BASE: 646 case VHOST_SET_LOG_FD: 647 r = -ENOIOCTLCMD; 648 break; 649 case VHOST_VDPA_SET_CONFIG_CALL: 650 r = vhost_vdpa_set_config_call(v, argp); 651 break; 652 case VHOST_GET_BACKEND_FEATURES: 653 features = VHOST_VDPA_BACKEND_FEATURES; 654 if (vhost_vdpa_can_stop(v)) 655 features |= BIT_ULL(VHOST_BACKEND_F_STOP); 656 if (copy_to_user(featurep, &features, sizeof(features))) 657 r = -EFAULT; 658 break; 659 case VHOST_VDPA_GET_IOVA_RANGE: 660 r = vhost_vdpa_get_iova_range(v, argp); 661 break; 662 case VHOST_VDPA_GET_CONFIG_SIZE: 663 r = vhost_vdpa_get_config_size(v, argp); 664 break; 665 case VHOST_VDPA_GET_VQS_COUNT: 666 r = vhost_vdpa_get_vqs_count(v, argp); 667 break; > 668 case VHOST_STOP: 669 r = vhost_vdpa_stop(v, argp); 670 break; 671 default: 672 r = vhost_dev_ioctl(&v->vdev, cmd, argp); 673 if (r == -ENOIOCTLCMD) 674 r = vhost_vdpa_vring_ioctl(v, cmd, argp); 675 break; 676 } 677 678 mutex_unlock(&d->mutex); 679 return r; 680 } 681 -- 0-DAY CI Kernel Test Service https://01.org/lkp