From: kernel test robot <lkp@intel.com>
To: Oliver Upton <oliver.upton@linux.dev>, kvmarm@lists.linux.dev
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Marc Zyngier <maz@kernel.org>, Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Zenghui Yu <yuzenghui@huawei.com>,
Mingwei Zhang <mizhang@google.com>,
Colton Lewis <coltonlewis@google.com>,
Raghavendra Rao Ananta <rananta@google.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Oliver Upton <oliver.upton@linux.dev>
Subject: Re: [PATCH 09/18] KVM: arm64: Drop kvm_arm_pmu_available static key
Date: Thu, 19 Dec 2024 07:23:07 +0800 [thread overview]
Message-ID: <202412190743.1bLEb7Ps-lkp@intel.com> (raw)
In-Reply-To: <20241217212048.3709204-10-oliver.upton@linux.dev>
Hi Oliver,
kernel test robot noticed the following build errors:
[auto build test ERROR on 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8]
url: https://github.com/intel-lab-lkp/linux/commits/Oliver-Upton/drivers-perf-apple_m1-Refactor-event-select-filter-configuration/20241218-054416
base: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
patch link: https://lore.kernel.org/r/20241217212048.3709204-10-oliver.upton%40linux.dev
patch subject: [PATCH 09/18] KVM: arm64: Drop kvm_arm_pmu_available static key
config: arm64-randconfig-001-20241219 (https://download.01.org/0day-ci/archive/20241219/202412190743.1bLEb7Ps-lkp@intel.com/config)
compiler: clang version 16.0.6 (https://github.com/llvm/llvm-project 7cbf1a2591520c2491aa35339f227775f4d3adf6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241219/202412190743.1bLEb7Ps-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412190743.1bLEb7Ps-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/arm64/kvm/arm.c:394:7: error: call to undeclared function 'kvm_supports_guest_pmuv3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
r = kvm_supports_guest_pmuv3();
^
arch/arm64/kvm/arm.c:1400:7: error: call to undeclared function 'kvm_supports_guest_pmuv3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
if (!kvm_supports_guest_pmuv3())
^
2 errors generated.
vim +/kvm_supports_guest_pmuv3 +394 arch/arm64/kvm/arm.c
309
310 int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
311 {
312 int r;
313
314 if (kvm && kvm_vm_is_protected(kvm) && !pkvm_ext_allowed(kvm, ext))
315 return 0;
316
317 switch (ext) {
318 case KVM_CAP_IRQCHIP:
319 r = vgic_present;
320 break;
321 case KVM_CAP_IOEVENTFD:
322 case KVM_CAP_USER_MEMORY:
323 case KVM_CAP_SYNC_MMU:
324 case KVM_CAP_DESTROY_MEMORY_REGION_WORKS:
325 case KVM_CAP_ONE_REG:
326 case KVM_CAP_ARM_PSCI:
327 case KVM_CAP_ARM_PSCI_0_2:
328 case KVM_CAP_READONLY_MEM:
329 case KVM_CAP_MP_STATE:
330 case KVM_CAP_IMMEDIATE_EXIT:
331 case KVM_CAP_VCPU_EVENTS:
332 case KVM_CAP_ARM_IRQ_LINE_LAYOUT_2:
333 case KVM_CAP_ARM_NISV_TO_USER:
334 case KVM_CAP_ARM_INJECT_EXT_DABT:
335 case KVM_CAP_SET_GUEST_DEBUG:
336 case KVM_CAP_VCPU_ATTRIBUTES:
337 case KVM_CAP_PTP_KVM:
338 case KVM_CAP_ARM_SYSTEM_SUSPEND:
339 case KVM_CAP_IRQFD_RESAMPLE:
340 case KVM_CAP_COUNTER_OFFSET:
341 r = 1;
342 break;
343 case KVM_CAP_SET_GUEST_DEBUG2:
344 return KVM_GUESTDBG_VALID_MASK;
345 case KVM_CAP_ARM_SET_DEVICE_ADDR:
346 r = 1;
347 break;
348 case KVM_CAP_NR_VCPUS:
349 /*
350 * ARM64 treats KVM_CAP_NR_CPUS differently from all other
351 * architectures, as it does not always bound it to
352 * KVM_CAP_MAX_VCPUS. It should not matter much because
353 * this is just an advisory value.
354 */
355 r = min_t(unsigned int, num_online_cpus(),
356 kvm_arm_default_max_vcpus());
357 break;
358 case KVM_CAP_MAX_VCPUS:
359 case KVM_CAP_MAX_VCPU_ID:
360 if (kvm)
361 r = kvm->max_vcpus;
362 else
363 r = kvm_arm_default_max_vcpus();
364 break;
365 case KVM_CAP_MSI_DEVID:
366 if (!kvm)
367 r = -EINVAL;
368 else
369 r = kvm->arch.vgic.msis_require_devid;
370 break;
371 case KVM_CAP_ARM_USER_IRQ:
372 /*
373 * 1: EL1_VTIMER, EL1_PTIMER, and PMU.
374 * (bump this number if adding more devices)
375 */
376 r = 1;
377 break;
378 case KVM_CAP_ARM_MTE:
379 r = system_supports_mte();
380 break;
381 case KVM_CAP_STEAL_TIME:
382 r = kvm_arm_pvtime_supported();
383 break;
384 case KVM_CAP_ARM_EL1_32BIT:
385 r = cpus_have_final_cap(ARM64_HAS_32BIT_EL1);
386 break;
387 case KVM_CAP_GUEST_DEBUG_HW_BPS:
388 r = get_num_brps();
389 break;
390 case KVM_CAP_GUEST_DEBUG_HW_WPS:
391 r = get_num_wrps();
392 break;
393 case KVM_CAP_ARM_PMU_V3:
> 394 r = kvm_supports_guest_pmuv3();
395 break;
396 case KVM_CAP_ARM_INJECT_SERROR_ESR:
397 r = cpus_have_final_cap(ARM64_HAS_RAS_EXTN);
398 break;
399 case KVM_CAP_ARM_VM_IPA_SIZE:
400 r = get_kvm_ipa_limit();
401 break;
402 case KVM_CAP_ARM_SVE:
403 r = system_supports_sve();
404 break;
405 case KVM_CAP_ARM_PTRAUTH_ADDRESS:
406 case KVM_CAP_ARM_PTRAUTH_GENERIC:
407 r = kvm_has_full_ptr_auth();
408 break;
409 case KVM_CAP_ARM_EAGER_SPLIT_CHUNK_SIZE:
410 if (kvm)
411 r = kvm->arch.mmu.split_page_chunk_size;
412 else
413 r = KVM_ARM_EAGER_SPLIT_CHUNK_SIZE_DEFAULT;
414 break;
415 case KVM_CAP_ARM_SUPPORTED_BLOCK_SIZES:
416 r = kvm_supported_block_sizes();
417 break;
418 case KVM_CAP_ARM_SUPPORTED_REG_MASK_RANGES:
419 r = BIT(0);
420 break;
421 default:
422 r = 0;
423 }
424
425 return r;
426 }
427
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-12-18 23:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-17 21:20 [PATCH 00/18] KVM: arm64: Support FEAT_PMUv3 on Apple hardware Oliver Upton
2024-12-17 21:20 ` [PATCH 01/18] drivers/perf: apple_m1: Refactor event select/filter configuration Oliver Upton
2024-12-17 21:20 ` [PATCH 02/18] drivers/perf: apple_m1: Support host/guest event filtering Oliver Upton
2024-12-17 21:20 ` [PATCH 03/18] drivers/perf: apple_m1: Map generic branch events Oliver Upton
2024-12-17 21:20 ` [PATCH 04/18] drivers/perf: apple_m1: Provide helper for mapping PMUv3 events Oliver Upton
2024-12-17 21:20 ` [PATCH 05/18] KVM: arm64: Compute PMCEID from arm_pmu's event bitmaps Oliver Upton
2024-12-17 21:20 ` [PATCH 06/18] KVM: arm64: Always support SW_INCR PMU event Oliver Upton
2024-12-17 21:20 ` [PATCH 07/18] KVM: arm64: Remap PMUv3 events onto hardware Oliver Upton
2024-12-17 21:20 ` [PATCH 08/18] KVM: arm64: Use a cpucap to determine if system supports FEAT_PMUv3 Oliver Upton
2024-12-17 21:20 ` [PATCH 09/18] KVM: arm64: Drop kvm_arm_pmu_available static key Oliver Upton
2024-12-18 23:23 ` kernel test robot [this message]
2024-12-17 21:20 ` [PATCH 10/18] KVM: arm64: Use guard() to cleanup usage of arm_pmus_lock Oliver Upton
2024-12-17 21:20 ` [PATCH 11/18] KVM: arm64: Move PMUVer filtering into KVM code Oliver Upton
2024-12-17 21:20 ` [PATCH 12/18] KVM: arm64: Compute synthetic sysreg ESR for Apple PMUv3 traps Oliver Upton
2024-12-17 21:20 ` [PATCH 13/18] KVM: arm64: Advertise PMUv3 if IMPDEF traps are present Oliver Upton
2024-12-17 21:22 ` [PATCH 14/18] KVM: arm64: Advertise 0 event counters for IMPDEF PMU Oliver Upton
2024-12-17 21:22 ` [PATCH 15/18] arm64: Enable IMP DEF PMUv3 traps on Apple M2 Oliver Upton
2024-12-17 21:23 ` [RFC PATCH 16/18] drivers/perf: apple_m1: Map a few more PMUv3 events Oliver Upton
2024-12-17 21:23 ` [RFC PATCH 17/18] KVM: arm64: Provide 1 event counter on IMPDEF hardware Oliver Upton
2024-12-17 21:23 ` [HACK PATCH 18/18] KVM: arm64: selftests: Add test for probing PMUv3 sysregs Oliver Upton
2024-12-21 13:45 ` [PATCH 00/18] KVM: arm64: Support FEAT_PMUv3 on Apple hardware Janne Grunau
2024-12-21 22:00 ` Oliver Upton
2025-01-08 12:38 ` Will Deacon
2025-01-08 20:14 ` Oliver Upton
2025-01-08 21:26 ` Marc Zyngier
2025-01-08 23:06 ` [PATCH 00/18] KVM: arm64: Support FEAT_PMUv3 on Apple hardware\ Oliver Upton
2025-01-10 16:22 ` [PATCH 00/18] KVM: arm64: Support FEAT_PMUv3 on Apple hardware Will Deacon
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=202412190743.1bLEb7Ps-lkp@intel.com \
--to=lkp@intel.com \
--cc=catalin.marinas@arm.com \
--cc=coltonlewis@google.com \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=mizhang@google.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oliver.upton@linux.dev \
--cc=rananta@google.com \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
--cc=yuzenghui@huawei.com \
/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.