[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202602100627.0HOjIqkT-lkp@intel.com>
Date: Tue, 10 Feb 2026 06:44:17 +0800
From: kernel test robot <lkp@...el.com>
To: kyle-jk.liao@...iatek.com, Marc Zyngier <maz@...nel.org>,
Oliver Upton <oupton@...nel.org>, Joey Gouly <joey.gouly@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Zenghui Yu <yuzenghui@...wei.com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Quentin Perret <qperret@...gle.com>,
Vincent Donnefort <vdonnefort@...gle.com>,
linux-arm-kernel@...ts.infradead.org, kvmarm@...ts.linux.dev,
linux-kernel@...r.kernel.org, linux-mediatek@...ts.infradead.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
wsd_upstream@...iatek.com, rock.yeh@...iatek.com,
hungwen.chien@...iatek.com,
"kyle-jk.liao" <kyle-jk.liao@...iatek.com>
Subject: Re: [PATCH] KVM: arm64: Allow module-owned pages in host stage-2
range adjustment
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on kvmarm/next]
[also build test ERROR on linus/master v6.19 next-20260209]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/kyle-jk-liao-mediatek-com/KVM-arm64-Allow-module-owned-pages-in-host-stage-2-range-adjustment/20260209-112902
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next
patch link: https://lore.kernel.org/r/20260209032421.1278325-1-kyle-jk.liao%40mediatek.com
patch subject: [PATCH] KVM: arm64: Allow module-owned pages in host stage-2 range adjustment
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260210/202602100627.0HOjIqkT-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100627.0HOjIqkT-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602100627.0HOjIqkT-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/mem_protect.c:513:53: error: use of undeclared identifier 'PKVM_MODULE_OWNED_PAGE'
513 | (state != PKVM_NOPAGE && state != (PKVM_NOPAGE | PKVM_MODULE_OWNED_PAGE)));
| ^
1 error generated.
vim +/PKVM_MODULE_OWNED_PAGE +513 arch/arm64/kvm/hyp/nvhe/mem_protect.c
492
493 static int host_stage2_adjust_range(u64 addr, struct kvm_mem_range *range)
494 {
495 struct kvm_mem_range cur;
496 kvm_pte_t pte;
497 u64 granule;
498 s8 level;
499 int ret;
500 enum pkvm_page_state state;
501
502 hyp_assert_lock_held(&host_mmu.lock);
503 ret = kvm_pgtable_get_leaf(&host_mmu.pgt, addr, &pte, &level);
504 if (ret)
505 return ret;
506
507 if (kvm_pte_valid(pte))
508 return -EAGAIN;
509
510 if (pte) {
511 state = get_host_state(hyp_phys_to_page(addr));
512 WARN_ON(addr_is_memory(addr) &&
> 513 (state != PKVM_NOPAGE && state != (PKVM_NOPAGE | PKVM_MODULE_OWNED_PAGE)));
514 return -EPERM;
515 }
516
517 for (; level <= KVM_PGTABLE_LAST_LEVEL; level++) {
518 if (!kvm_level_supports_block_mapping(level))
519 continue;
520 granule = kvm_granule_size(level);
521 cur.start = ALIGN_DOWN(addr, granule);
522 cur.end = cur.start + granule;
523 if (!range_included(&cur, range))
524 continue;
525 *range = cur;
526 return 0;
527 }
528
529 WARN_ON(1);
530
531 return -EINVAL;
532 }
533
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists