All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH v7 3/3] KVM: arm64: ioctl to fetch/store tags in a guest
Date: Sat, 16 Jan 2021 02:33:47 +0800	[thread overview]
Message-ID: <202101160226.ttMj4wZG-lkp@intel.com> (raw)
In-Reply-To: <20210115152811.8398-4-steven.price@arm.com>

[-- Attachment #1: Type: text/plain, Size: 3408 bytes --]

Hi Steven,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on arm64/for-next/core]
[also build test WARNING on v5.11-rc3]
[cannot apply to kvmarm/next kvm/linux-next next-20210115]
[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/0day-ci/linux/commits/Steven-Price/MTE-support-for-KVM-guest/20210115-233109
base:   https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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/0day-ci/linux/commit/ddde8cff287aad027c9fa0015afe26ced5041f50
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Steven-Price/MTE-support-for-KVM-guest/20210115-233109
        git checkout ddde8cff287aad027c9fa0015afe26ced5041f50
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

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

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/arm.c: In function 'kvm_vm_ioctl_mte_copy_tags':
>> arch/arm64/kvm/arm.c:1313:9: warning: variable 'pages' set but not used [-Wunused-but-set-variable]
    1313 |  size_t pages;
         |         ^~~~~


vim +/pages +1313 arch/arm64/kvm/arm.c

  1305	
  1306	static int kvm_vm_ioctl_mte_copy_tags(struct kvm *kvm,
  1307					      struct kvm_arm_copy_mte_tags *copy_tags)
  1308	{
  1309		gpa_t guest_ipa = copy_tags->guest_ipa;
  1310		size_t length = copy_tags->length;
  1311		void __user *tags = copy_tags->addr;
  1312		gpa_t gfn;
> 1313		size_t pages;
  1314		bool write = !(copy_tags->flags & KVM_ARM_TAGS_FROM_GUEST);
  1315	
  1316		if (copy_tags->flags & ~KVM_ARM_TAGS_FROM_GUEST)
  1317			return -EINVAL;
  1318	
  1319		if (length & ~PAGE_MASK || guest_ipa & ~PAGE_MASK)
  1320			return -EINVAL;
  1321	
  1322		gfn = gpa_to_gfn(guest_ipa);
  1323		pages = length >> PAGE_SHIFT;
  1324	
  1325		while (length > 0) {
  1326			kvm_pfn_t pfn = gfn_to_pfn_prot(kvm, gfn, write, NULL);
  1327			void *maddr;
  1328			unsigned long num_tags = PAGE_SIZE / MTE_GRANULE_SIZE;
  1329	
  1330			if (is_error_noslot_pfn(pfn))
  1331				return -ENOENT;
  1332	
  1333			maddr = page_address(pfn_to_page(pfn));
  1334	
  1335			if (!write) {
  1336				num_tags = mte_copy_tags_to_user(tags, maddr, num_tags);
  1337				kvm_release_pfn_clean(pfn);
  1338			} else {
  1339				num_tags = mte_copy_tags_from_user(maddr, tags,
  1340								   num_tags);
  1341				kvm_release_pfn_dirty(pfn);
  1342			}
  1343	
  1344			if (num_tags != PAGE_SIZE / MTE_GRANULE_SIZE)
  1345				return -EFAULT;
  1346	
  1347			gfn++;
  1348			tags += num_tags;
  1349			length -= PAGE_SIZE;
  1350		}
  1351	
  1352		return 0;
  1353	}
  1354	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 76471 bytes --]

      reply	other threads:[~2021-01-15 18:33 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 15:28 [PATCH v7 0/3] MTE support for KVM guest Steven Price
2021-01-15 15:28 ` Steven Price
2021-01-15 15:28 ` Steven Price
2021-01-15 15:28 ` Steven Price
2021-01-15 15:28 ` [PATCH v7 1/3] arm64: kvm: Save/restore MTE registers Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 15:28   ` Steven Price
2021-02-02 15:36   ` Marc Zyngier
2021-02-02 15:36     ` Marc Zyngier
2021-02-02 15:36     ` Marc Zyngier
2021-02-02 15:36     ` Marc Zyngier
2021-02-04 14:33     ` Steven Price
2021-02-04 14:33       ` Steven Price
2021-02-04 14:33       ` Steven Price
2021-02-04 14:33       ` Steven Price
2021-02-04 14:56       ` Marc Zyngier
2021-02-04 14:56         ` Marc Zyngier
2021-02-04 14:56         ` Marc Zyngier
2021-02-04 14:56         ` Marc Zyngier
2021-01-15 15:28 ` [PATCH v7 2/3] arm64: kvm: Introduce MTE VCPU feature Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 15:28   ` Steven Price
2021-02-02 17:12   ` Marc Zyngier
2021-02-02 17:12     ` Marc Zyngier
2021-02-02 17:12     ` Marc Zyngier
2021-02-02 17:12     ` Marc Zyngier
2021-02-04 14:33     ` Steven Price
2021-02-04 14:33       ` Steven Price
2021-02-04 14:33       ` Steven Price
2021-02-04 14:33       ` Steven Price
2021-01-15 15:28 ` [RFC PATCH v7 3/3] KVM: arm64: ioctl to fetch/store tags in a guest Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 15:28   ` Steven Price
2021-01-15 18:33   ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202101160226.ttMj4wZG-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.