| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/02 21:06 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"access_pmmir",
"get_pmmir",
"set_pmmir",
"kvm_arm_pmu_v3_set_pmu",
"compute_pmceid1",
"kvm_pmu_get_pmceid",
"kvm_arm_pmu_v3_enable",
"kvm_arm_pmu_get_max_counters",
"kvm_arm_set_default_pmu",
"kvm_vcpu_init_check_features",
"kvm_setup_vcpu"
],
"Reasoning": "The patch adds a new KVM feature KVM_ARM_VCPU_PMU_V3_STRICT for ARM64, which modifies PMU initialization and exposes a new sys_reg PMMIR_EL1 to the guest. This is functional code in the KVM ARM64 subsystem that is reachable from userspace via KVM ioctls and guest execution.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/02 21:06 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit a5853d9a8fb34b46fa5a25383a38692bb5e7e03a\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Jul 2 21:06:43 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst\nindex 52bbbb553ce107..79b024a7ba163b 100644\n--- a/Documentation/virt/kvm/api.rst\n+++ b/Documentation/virt/kvm/api.rst\n@@ -3515,6 +3515,11 @@ Possible features:\n \t Depends on KVM_CAP_ARM_PSCI_0_2.\n \t- KVM_ARM_VCPU_PMU_V3: Emulate PMUv3 for the CPU.\n \t Depends on KVM_CAP_ARM_PMU_V3.\n+\t- KVM_ARM_VCPU_PMU_V3_STRICT: Enable strict PMUv3 UAPI.\n+\t Requires KVM_ARM_VCPU_PMU_V3. If set, KVM does not create a default\n+\t PMU; userspace must select a PMU implementation with\n+\t KVM_ARM_VCPU_PMU_V3_SET_PMU before the first KVM_RUN. The selected\n+\t PMU exposes the SLOTS field of its PMMIR_EL1 register to the guest.\n \n \t- KVM_ARM_VCPU_PTRAUTH_ADDRESS: Enables Address Pointer authentication\n \t for arm64 only.\ndiff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h\nindex 65eead8362e0b4..b896d6eef822a9 100644\n--- a/arch/arm64/include/asm/kvm_host.h\n+++ b/arch/arm64/include/asm/kvm_host.h\n@@ -39,7 +39,7 @@\n \n #define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS\n \n-#define KVM_VCPU_MAX_FEATURES 9\n+#define KVM_VCPU_MAX_FEATURES 10\n #define KVM_VCPU_VALID_FEATURES\t(BIT(KVM_VCPU_MAX_FEATURES) - 1)\n \n #define KVM_REQ_SLEEP \\\n@@ -387,6 +387,9 @@ struct kvm_arch {\n \t/* Maximum number of counters for the guest */\n \tu8 nr_pmu_counters;\n \n+\t/* PMMIR_EL1.SLOTS value exposed to the guest. */\n+\tu8 pmmir_slots;\n+\n \t/* Hypercall features firmware registers' descriptor */\n \tstruct kvm_smccc_features smccc_feat;\n \tstruct maple_tree smccc_filter;\ndiff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h\nindex 1c13bfa2d38aad..019e5e3d892e6d 100644\n--- a/arch/arm64/include/uapi/asm/kvm.h\n+++ b/arch/arm64/include/uapi/asm/kvm.h\n@@ -106,6 +106,7 @@ struct kvm_regs {\n #define KVM_ARM_VCPU_PTRAUTH_GENERIC\t6 /* VCPU uses generic authentication */\n #define KVM_ARM_VCPU_HAS_EL2\t\t7 /* Support nested virtualization */\n #define KVM_ARM_VCPU_HAS_EL2_E2H0\t8 /* Limit NV support to E2H RES0 */\n+#define KVM_ARM_VCPU_PMU_V3_STRICT\t9 /* No default PMU creation */\n \n struct kvm_vcpu_init {\n \t__u32 target;\ndiff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c\nindex 9453321ef8c676..d1914bee1e76ef 100644\n--- a/arch/arm64/kvm/arm.c\n+++ b/arch/arm64/kvm/arm.c\n@@ -1548,8 +1548,10 @@ static unsigned long system_supported_vcpu_features(void)\n \tif (!cpus_have_final_cap(ARM64_HAS_32BIT_EL1))\n \t\tclear_bit(KVM_ARM_VCPU_EL1_32BIT, \u0026features);\n \n-\tif (!kvm_supports_guest_pmuv3())\n+\tif (!kvm_supports_guest_pmuv3()) {\n \t\tclear_bit(KVM_ARM_VCPU_PMU_V3, \u0026features);\n+\t\tclear_bit(KVM_ARM_VCPU_PMU_V3_STRICT, \u0026features);\n+\t}\n \n \tif (!system_supports_sve())\n \t\tclear_bit(KVM_ARM_VCPU_SVE, \u0026features);\n@@ -1590,6 +1592,11 @@ static int kvm_vcpu_init_check_features(struct kvm_vcpu *vcpu,\n \t test_bit(KVM_ARM_VCPU_PTRAUTH_GENERIC, \u0026features))\n \t\treturn -EINVAL;\n \n+\t/* Strict PMUv3 UAPI requires PMUv3. */\n+\tif (test_bit(KVM_ARM_VCPU_PMU_V3_STRICT, \u0026features) \u0026\u0026\n+\t !test_bit(KVM_ARM_VCPU_PMU_V3, \u0026features))\n+\t\treturn -EINVAL;\n+\n \tif (!test_bit(KVM_ARM_VCPU_EL1_32BIT, \u0026features))\n \t\treturn 0;\n \n@@ -1619,10 +1626,13 @@ static int kvm_setup_vcpu(struct kvm_vcpu *vcpu)\n \tint ret = 0;\n \n \t/*\n-\t * When the vCPU has a PMU, but no PMU is set for the guest\n-\t * yet, set the default one.\n+\t * When the vCPU has a PMU, but no PMU is set for the guest yet, set\n+\t * the default one. If KVM_ARM_VCPU_PMU_V3_STRICT is set, no default\n+\t * PMU is created, and userspace must select a PMU via\n+\t * KVM_ARM_VCPU_PMU_V3_SET_PMU.\n \t */\n-\tif (kvm_vcpu_has_pmu(vcpu) \u0026\u0026 !kvm-\u003earch.arm_pmu)\n+\tif (kvm_vcpu_has_pmu(vcpu) \u0026\u0026 !kvm-\u003earch.arm_pmu \u0026\u0026\n+\t !kvm_vcpu_has_pmuv3_strict(vcpu))\n \t\tret = kvm_arm_set_default_pmu(kvm);\n \n \t/* Prepare for nested if required */\ndiff --git a/arch/arm64/kvm/pmu-emul.c b/arch/arm64/kvm/pmu-emul.c\nindex e1860acae641fa..89eec5a1a49973 100644\n--- a/arch/arm64/kvm/pmu-emul.c\n+++ b/arch/arm64/kvm/pmu-emul.c\n@@ -851,9 +851,9 @@ static u64 __compute_pmceid(struct arm_pmu *pmu, bool pmceid1)\n \treturn ((u64)hi[pmceid1] \u003c\u003c 32) | lo[pmceid1];\n }\n \n-static u64 compute_pmceid0(struct arm_pmu *pmu)\n+static u64 compute_pmceid0(struct kvm_vcpu *vcpu)\n {\n-\tu64 val = __compute_pmceid(pmu, 0);\n+\tu64 val = __compute_pmceid(vcpu-\u003ekvm-\u003earch.arm_pmu, 0);\n \n \t/* always support SW_INCR */\n \tval |= BIT(ARMV8_PMUV3_PERFCTR_SW_INCR);\n@@ -862,32 +862,33 @@ static u64 compute_pmceid0(struct arm_pmu *pmu)\n \treturn val;\n }\n \n-static u64 compute_pmceid1(struct arm_pmu *pmu)\n+static u64 compute_pmceid1(struct kvm_vcpu *vcpu)\n {\n-\tu64 val = __compute_pmceid(pmu, 1);\n+\tu64 val = __compute_pmceid(vcpu-\u003ekvm-\u003earch.arm_pmu, 1);\n \n \t/*\n-\t * Don't advertise STALL_SLOT*, as PMMIR_EL0 is handled\n-\t * as RAZ\n+\t * If KVM_ARM_VCPU_PMU_V3_STRICT is not set, PMMIR_EL1 is\n+\t * unconditionally RAZ, so don't advertise STALL_SLOT* events.\n \t */\n-\tval \u0026= ~(BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT - 32) |\n-\t\t BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_FRONTEND - 32) |\n-\t\t BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_BACKEND - 32));\n+\tif (!kvm_vcpu_has_pmuv3_strict(vcpu))\n+\t\tval \u0026= ~(BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT - 32) |\n+\t\t\t BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_FRONTEND - 32) |\n+\t\t\t BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_BACKEND - 32));\n+\n \treturn val;\n }\n \n u64 kvm_pmu_get_pmceid(struct kvm_vcpu *vcpu, bool pmceid1)\n {\n-\tstruct arm_pmu *cpu_pmu = vcpu-\u003ekvm-\u003earch.arm_pmu;\n \tunsigned long *bmap = vcpu-\u003ekvm-\u003earch.pmu_filter;\n \tu64 val, mask = 0;\n \tint base, i, nr_events;\n \n \tif (!pmceid1) {\n-\t\tval = compute_pmceid0(cpu_pmu);\n+\t\tval = compute_pmceid0(vcpu);\n \t\tbase = 0;\n \t} else {\n-\t\tval = compute_pmceid1(cpu_pmu);\n+\t\tval = compute_pmceid1(vcpu);\n \t\tbase = 32;\n \t}\n \n@@ -923,6 +924,9 @@ void kvm_vcpu_reload_pmu(struct kvm_vcpu *vcpu)\n \n int kvm_arm_pmu_v3_enable(struct kvm_vcpu *vcpu)\n {\n+\tif (!vcpu-\u003ekvm-\u003earch.arm_pmu)\n+\t\treturn -EINVAL;\n+\n \tif (!vcpu-\u003earch.pmu.created)\n \t\treturn -EINVAL;\n \n@@ -1021,6 +1025,14 @@ u8 kvm_arm_pmu_get_max_counters(struct kvm *kvm)\n {\n \tstruct arm_pmu *arm_pmu = kvm-\u003earch.arm_pmu;\n \n+\t/*\n+\t * Under KVM_ARM_VCPU_PMU_V3_STRICT no PMU exists until userspace sets\n+\t * one, so this can be reached before arm_pmu is set. Report no\n+\t * counters in that case.\n+\t */\n+\tif (!arm_pmu)\n+\t\treturn 0;\n+\n \t/*\n \t * PMUv3 requires that all event counters are capable of counting any\n \t * event, though the same may not be true of non-PMUv3 hardware.\n@@ -1062,7 +1074,8 @@ static void kvm_arm_set_pmu(struct kvm *kvm, struct arm_pmu *arm_pmu)\n }\n \n /**\n- * kvm_arm_set_default_pmu - No PMU set, get the default one.\n+ * kvm_arm_set_default_pmu - No PMU set and KVM_ARM_VCPU_PMU_V3_STRICT not\n+ * set, get the default one.\n * @kvm: The kvm pointer\n *\n * The observant among you will notice that the supported_cpus\n@@ -1105,6 +1118,17 @@ static int kvm_arm_pmu_v3_set_pmu(struct kvm_vcpu *vcpu, int pmu_id)\n \n \t\t\tkvm_arm_set_pmu(kvm, arm_pmu);\n \t\t\tcpumask_copy(kvm-\u003earch.supported_cpus, \u0026arm_pmu-\u003esupported_cpus);\n+\n+\t\t\t/*\n+\t\t\t * Since a specific PMU is explicitly selected,\n+\t\t\t * PMMIR_EL1.SLOTS is deterministic to the guest.\n+\t\t\t * If KVM_ARM_VCPU_PMU_V3_STRICT is set, snapshot\n+\t\t\t * the value to allow the guest to read it.\n+\t\t\t */\n+\t\t\tif (kvm_vcpu_has_pmuv3_strict(vcpu))\n+\t\t\t\tkvm-\u003earch.pmmir_slots =\n+\t\t\t\t\tFIELD_GET(ARMV8_PMU_SLOTS,\n+\t\t\t\t\t\t arm_pmu-\u003ereg_pmmir);\n \t\t\tret = 0;\n \t\t\tbreak;\n \t\t}\ndiff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c\nindex 148fc3400ea815..edfbb8de152865 100644\n--- a/arch/arm64/kvm/sys_regs.c\n+++ b/arch/arm64/kvm/sys_regs.c\n@@ -1370,6 +1370,64 @@ static bool access_pminten(struct kvm_vcpu *vcpu, struct sys_reg_params *p,\n \treturn true;\n }\n \n+static bool access_pmmir(struct kvm_vcpu *vcpu, struct sys_reg_params *p,\n+\t\t\t const struct sys_reg_desc *r)\n+{\n+\tif (p-\u003eis_write)\n+\t\treturn write_to_read_only(vcpu, p, r);\n+\n+\t/*\n+\t * If KVM_ARM_VCPU_PMU_V3_STRICT is set and PMU was explicitly\n+\t * selected, the underlying hardware SLOTS value was read into this\n+\t * field. Otherwise, it stays 0. All other PMMIR_EL1 fields are RAZ.\n+\t */\n+\tp-\u003eregval = FIELD_PREP(ARMV8_PMU_SLOTS, vcpu-\u003ekvm-\u003earch.pmmir_slots);\n+\treturn true;\n+}\n+\n+static int get_pmmir(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r,\n+\t\t u64 *val)\n+{\n+\t*val = FIELD_PREP(ARMV8_PMU_SLOTS, vcpu-\u003ekvm-\u003earch.pmmir_slots);\n+\treturn 0;\n+}\n+\n+static int set_pmmir(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r,\n+\t\t u64 val)\n+{\n+\tstruct kvm *kvm = vcpu-\u003ekvm;\n+\tu8 slots = FIELD_GET(ARMV8_PMU_SLOTS, val);\n+\n+\t/*\n+\t * Only the SLOTS field is exposed (get_pmmir returns just that field),\n+\t * so reject a write that sets any other bit rather than silently\n+\t * masking it.\n+\t */\n+\tif (val \u0026 ~(u64)ARMV8_PMU_SLOTS)\n+\t\treturn -EINVAL;\n+\n+\tguard(mutex)(\u0026kvm-\u003earch.config_lock);\n+\n+\t/*\n+\t * Once the VM has started PMMIR_EL1 is immutable. Reject any write\n+\t * that does not match the current value.\n+\t */\n+\tif (kvm_vm_has_ran_once(kvm))\n+\t\treturn slots == kvm-\u003earch.pmmir_slots ? 0 : -EBUSY;\n+\n+\t/*\n+\t * Only SLOTS = 0 is honored for backwards compatibility with the\n+\t * old RAZ behavior. Reject any non-zero write that does not match\n+\t * the current value.\n+\t */\n+\tif (!slots)\n+\t\tkvm-\u003earch.pmmir_slots = 0;\n+\telse if (slots != kvm-\u003earch.pmmir_slots)\n+\t\treturn -EINVAL;\n+\n+\treturn 0;\n+}\n+\n static bool access_pmovs(struct kvm_vcpu *vcpu, struct sys_reg_params *p,\n \t\t\t const struct sys_reg_desc *r)\n {\n@@ -3456,7 +3514,8 @@ static const struct sys_reg_desc sys_reg_descs[] = {\n \t{ PMU_SYS_REG(PMINTENCLR_EL1),\n \t .access = access_pminten, .reg = PMINTENSET_EL1,\n \t .get_user = get_pmreg, .set_user = set_pmreg },\n-\t{ SYS_DESC(SYS_PMMIR_EL1), trap_raz_wi },\n+\t{ PMU_SYS_REG(PMMIR_EL1), .access = access_pmmir, .reset = NULL,\n+\t .get_user = get_pmmir, .set_user = set_pmmir },\n \n \t{ SYS_DESC(SYS_MAIR_EL1), access_vm_reg, reset_unknown, MAIR_EL1 },\n \t{ SYS_DESC(SYS_PIRE0_EL1), NULL, reset_unknown, PIRE0_EL1,\n@@ -4600,7 +4659,7 @@ static const struct sys_reg_desc cp15_regs[] = {\n \t{ CP15_PMU_SYS_REG(HI, 0, 9, 14, 4), .access = access_pmceid },\n \t{ CP15_PMU_SYS_REG(HI, 0, 9, 14, 5), .access = access_pmceid },\n \t/* PMMIR */\n-\t{ CP15_PMU_SYS_REG(DIRECT, 0, 9, 14, 6), .access = trap_raz_wi },\n+\t{ CP15_PMU_SYS_REG(DIRECT, 0, 9, 14, 6), .access = access_pmmir },\n \n \t/* PRRR/MAIR0 */\n \t{ AA32(LO), Op1( 0), CRn(10), CRm( 2), Op2( 0), access_vm_reg, NULL, MAIR_EL1 },\ndiff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h\nindex 0a36a3d5c8944d..13468bd5bbf233 100644\n--- a/include/kvm/arm_pmu.h\n+++ b/include/kvm/arm_pmu.h\n@@ -76,6 +76,9 @@ void kvm_vcpu_pmu_resync_el0(void);\n #define kvm_vcpu_has_pmu(vcpu)\t\t\t\t\t\\\n \t(vcpu_has_feature(vcpu, KVM_ARM_VCPU_PMU_V3))\n \n+#define kvm_vcpu_has_pmuv3_strict(vcpu)\t\t\t\t\\\n+\t(vcpu_has_feature(vcpu, KVM_ARM_VCPU_PMU_V3_STRICT))\n+\n /*\n * Updates the vcpu's view of the pmu events for this cpu.\n * Must be called before every vcpu run after disabling interrupts, to ensure\n@@ -161,6 +164,7 @@ static inline u64 kvm_pmu_get_pmceid(struct kvm_vcpu *vcpu, bool pmceid1)\n }\n \n #define kvm_vcpu_has_pmu(vcpu)\t\t({ false; })\n+#define kvm_vcpu_has_pmuv3_strict(vcpu)\t({ false; })\n static inline void kvm_pmu_update_vcpu_events(struct kvm_vcpu *vcpu) {}\n static inline void kvm_vcpu_pmu_restore_guest(struct kvm_vcpu *vcpu) {}\n static inline void kvm_vcpu_pmu_restore_host(struct kvm_vcpu *vcpu) {}\ndiff --git a/tools/arch/arm64/include/uapi/asm/kvm.h b/tools/arch/arm64/include/uapi/asm/kvm.h\nindex 1c13bfa2d38aad..019e5e3d892e6d 100644\n--- a/tools/arch/arm64/include/uapi/asm/kvm.h\n+++ b/tools/arch/arm64/include/uapi/asm/kvm.h\n@@ -106,6 +106,7 @@ struct kvm_regs {\n #define KVM_ARM_VCPU_PTRAUTH_GENERIC\t6 /* VCPU uses generic authentication */\n #define KVM_ARM_VCPU_HAS_EL2\t\t7 /* Support nested virtualization */\n #define KVM_ARM_VCPU_HAS_EL2_E2H0\t8 /* Limit NV support to E2H RES0 */\n+#define KVM_ARM_VCPU_PMU_V3_STRICT\t9 /* No default PMU creation */\n \n struct kvm_vcpu_init {\n \t__u32 target;\ndiff --git a/tools/testing/selftests/kvm/arm64/get-reg-list.c b/tools/testing/selftests/kvm/arm64/get-reg-list.c\nindex 0a3a94c4cca16f..cfa99979d57c8e 100644\n--- a/tools/testing/selftests/kvm/arm64/get-reg-list.c\n+++ b/tools/testing/selftests/kvm/arm64/get-reg-list.c\n@@ -532,6 +532,7 @@ static __u64 base_regs[] = {\n static __u64 pmu_regs[] = {\n \tARM64_SYS_REG(3, 0, 9, 14, 1),\t/* PMINTENSET_EL1 */\n \tARM64_SYS_REG(3, 0, 9, 14, 2),\t/* PMINTENCLR_EL1 */\n+\tARM64_SYS_REG(3, 0, 9, 14, 6),\t/* PMMIR_EL1 */\n \tARM64_SYS_REG(3, 3, 9, 12, 0),\t/* PMCR_EL0 */\n \tARM64_SYS_REG(3, 3, 9, 12, 1),\t/* PMCNTENSET_EL0 */\n \tARM64_SYS_REG(3, 3, 9, 12, 2),\t/* PMCNTENCLR_EL0 */\n"
} |
| 2/1 | 2026/07/02 21:06 | agent | patch-evaluator |
1mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"access_pmmir",
"get_pmmir",
"set_pmmir",
"kvm_arm_pmu_v3_set_pmu",
"compute_pmceid1",
"kvm_pmu_get_pmceid",
"kvm_arm_pmu_v3_enable",
"kvm_arm_pmu_get_max_counters",
"kvm_arm_set_default_pmu",
"kvm_vcpu_init_check_features",
"kvm_setup_vcpu"
],
"Reasoning": "The patch adds a new KVM feature KVM_ARM_VCPU_PMU_V3_STRICT for ARM64, which modifies PMU initialization and exposes a new sys_reg PMMIR_EL1 to the guest. This is functional code in the KVM ARM64 subsystem that is reachable from userspace via KVM ioctls and guest execution.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit a5853d9a8fb34b46fa5a25383a38692bb5e7e03a
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Jul 2 21:06:43 2026 +0000
syz-cluster: applied patch under review
diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/kvm/api.rst
index 52bbbb553ce107..79b024a7ba163b 100644
--- a/Documentation/virt/kvm/api.rst
+++ b/Documentation/virt/kvm/api.rst
@@ -3515,6 +3515,11 @@ Possible features:
Depends on KVM_CAP_ARM_PSCI_0_2.
- KVM_ARM_VCPU_PMU_V3: Emulate PMUv3 for the CPU.
Depends on KVM_CAP_ARM_PMU_V3.
+ - KVM_ARM_VCPU_PMU_V3_STRICT: Enable strict PMUv3 UAPI.
+ Requires KVM_ARM_VCPU_PMU_V3. If set, KVM does not create a default
+ PMU; userspace must select a PMU implementation with
+ KVM_ARM_VCPU_PMU_V3_SET_PMU before the first KVM_RUN. The selected
+ PMU exposes the SLOTS field of its PMMIR_EL1 register to the guest.
- KVM_ARM_VCPU_PTRAUTH_ADDRESS: Enables Address Pointer authentication
for arm64 only.
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 65eead8362e0b4..b896d6eef822a9 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -39,7 +39,7 @@
#define KVM_MAX_VCPUS VGIC_V3_MAX_CPUS
-#define KVM_VCPU_MAX_FEATURES 9
+#define KVM_VCPU_MAX_FEATURES 10
#define KVM_VCPU_VALID_FEATURES (BIT(KVM_VCPU_MAX_FEATURES) - 1)
#define KVM_REQ_SLEEP \
@@ -387,6 +387,9 @@ struct kvm_arch {
/* Maximum number of counters for the guest */
u8 nr_pmu_counters;
+ /* PMMIR_EL1.SLOTS value exposed to the guest. */
+ u8 pmmir_slots;
+
/* Hypercall features firmware registers' descriptor */
struct kvm_smccc_features smccc_feat;
struct maple_tree smccc_filter;
diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h
index 1c13bfa2d38aad..019e5e3d892e6d 100644
--- a/arch/arm64/include/uapi/asm/kvm.h
+++ b/arch/arm64/include/uapi/asm/kvm.h
@@ -106,6 +106,7 @@ struct kvm_regs {
#define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 /* VCPU uses generic authentication */
#define KVM_ARM_VCPU_HAS_EL2 7 /* Support nested virtualization */
#define KVM_ARM_VCPU_HAS_EL2_E2H0 8 /* Limit NV support to E2H RES0 */
+#define KVM_ARM_VCPU_PMU_V3_STRICT 9 /* No default PMU creation */
struct kvm_vcpu_init {
__u32 target;
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
index 9453321ef8c676..d1914bee1e76ef 100644
--- a/arch/arm64/kvm/arm.c
+++ b/arch/arm64/kvm/arm.c
@@ -1548,8 +1548,10 @@ static unsigned long system_supported_vcpu_features(void)
if (!cpus_have_final_cap(ARM64_HAS_32BIT_EL1))
clear_bit(KVM_ARM_VCPU_EL1_32BIT, &features);
- if (!kvm_supports_guest_pmuv3())
+ if (!kvm_supports_guest_pmuv3()) {
clear_bit(KVM_ARM_VCPU_PMU_V3, &features);
+ clear_bit(KVM_ARM_VCPU_PMU_V3_STRICT, &features);
+ }
if (!system_supports_sve())
clear_bit(KVM_ARM_VCPU_SVE, &features);
@@ -1590,6 +1592,11 @@ static int kvm_vcpu_init_check_features(struct kvm_vcpu *vcpu,
test_bit(KVM_ARM_VCPU_PTRAUTH_GENERIC, &features))
return -EINVAL;
+ /* Strict PMUv3 UAPI requires PMUv3. */
+ if (test_bit(KVM_ARM_VCPU_PMU_V3_STRICT, &features) &&
+ !test_bit(KVM_ARM_VCPU_PMU_V3, &features))
+ return -EINVAL;
+
if (!test_bit(KVM_ARM_VCPU_EL1_32BIT, &features))
return 0;
@@ -1619,10 +1626,13 @@ static int kvm_setup_vcpu(struct kvm_vcpu *vcpu)
int ret = 0;
/*
- * When the vCPU has a PMU, but no PMU is set for the guest
- * yet, set the default one.
+ * When the vCPU has a PMU, but no PMU is set for the guest yet, set
+ * the default one. If KVM_ARM_VCPU_PMU_V3_STRICT is set, no default
+ * PMU is created, and userspace must select a PMU via
+ * KVM_ARM_VCPU_PMU_V3_SET_PMU.
*/
- if (kvm_vcpu_has_pmu(vcpu) && !kvm->arch.arm_pmu)
+ if (kvm_vcpu_has_pmu(vcpu) && !kvm->arch.arm_pmu &&
+ !kvm_vcpu_has_pmuv3_strict(vcpu))
ret = kvm_arm_set_default_pmu(kvm);
/* Prepare for nested if required */
diff --git a/arch/arm64/kvm/pmu-emul.c b/arch/arm64/kvm/pmu-emul.c
index e1860acae641fa..89eec5a1a49973 100644
--- a/arch/arm64/kvm/pmu-emul.c
+++ b/arch/arm64/kvm/pmu-emul.c
@@ -851,9 +851,9 @@ static u64 __compute_pmceid(struct arm_pmu *pmu, bool pmceid1)
return ((u64)hi[pmceid1] << 32) | lo[pmceid1];
}
-static u64 compute_pmceid0(struct arm_pmu *pmu)
+static u64 compute_pmceid0(struct kvm_vcpu *vcpu)
{
- u64 val = __compute_pmceid(pmu, 0);
+ u64 val = __compute_pmceid(vcpu->kvm->arch.arm_pmu, 0);
/* always support SW_INCR */
val |= BIT(ARMV8_PMUV3_PERFCTR_SW_INCR);
@@ -862,32 +862,33 @@ static u64 compute_pmceid0(struct arm_pmu *pmu)
return val;
}
-static u64 compute_pmceid1(struct arm_pmu *pmu)
+static u64 compute_pmceid1(struct kvm_vcpu *vcpu)
{
- u64 val = __compute_pmceid(pmu, 1);
+ u64 val = __compute_pmceid(vcpu->kvm->arch.arm_pmu, 1);
/*
- * Don't advertise STALL_SLOT*, as PMMIR_EL0 is handled
- * as RAZ
+ * If KVM_ARM_VCPU_PMU_V3_STRICT is not set, PMMIR_EL1 is
+ * unconditionally RAZ, so don't advertise STALL_SLOT* events.
*/
- val &= ~(BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT - 32) |
- BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_FRONTEND - 32) |
- BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_BACKEND - 32));
+ if (!kvm_vcpu_has_pmuv3_strict(vcpu))
+ val &= ~(BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT - 32) |
+ BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_FRONTEND - 32) |
+ BIT_ULL(ARMV8_PMUV3_PERFCTR_STALL_SLOT_BACKEND - 32));
+
return val;
}
u64 kvm_pmu_get_pmceid(struct kvm_vcpu *vcpu, bool pmceid1)
{
- struct arm_pmu *cpu_pmu = vcpu->kvm->arch.arm_pmu;
unsigned long *bmap = vcpu->kvm->arch.pmu_filter;
u64 val, mask = 0;
int base, i, nr_events;
if (!pmceid1) {
- val = compute_pmceid0(cpu_pmu);
+ val = compute_pmceid0(vcpu);
base = 0;
} else {
- val = compute_pmceid1(cpu_pmu);
+ val = compute_pmceid1(vcpu);
base = 32;
}
@@ -923,6 +924,9 @@ void kvm_vcpu_reload_pmu(struct kvm_vcpu *vcpu)
int kvm_arm_pmu_v3_enable(struct kvm_vcpu *vcpu)
{
+ if (!vcpu->kvm->arch.arm_pmu)
+ return -EINVAL;
+
if (!vcpu->arch.pmu.created)
return -EINVAL;
@@ -1021,6 +1025,14 @@ u8 kvm_arm_pmu_get_max_counters(struct kvm *kvm)
{
struct arm_pmu *arm_pmu = kvm->arch.arm_pmu;
+ /*
+ * Under KVM_ARM_VCPU_PMU_V3_STRICT no PMU exists until userspace sets
+ * one, so this can be reached before arm_pmu is set. Report no
+ * counters in that case.
+ */
+ if (!arm_pmu)
+ return 0;
+
/*
* PMUv3 requires that all event counters are capable of counting any
* event, though the same may not be true of non-PMUv3 hardware.
@@ -1062,7 +1074,8 @@ static void kvm_arm_set_pmu(struct kvm *kvm, struct arm_pmu *arm_pmu)
}
/**
- * kvm_arm_set_default_pmu - No PMU set, get the default one.
+ * kvm_arm_set_default_pmu - No PMU set and KVM_ARM_VCPU_PMU_V3_STRICT not
+ * set, get the default one.
* @kvm: The kvm pointer
*
* The observant among you will notice that the supported_cpus
@@ -1105,6 +1118,17 @@ static int kvm_arm_pmu_v3_set_pmu(struct kvm_vcpu *vcpu, int pmu_id)
kvm_arm_set_pmu(kvm, arm_pmu);
cpumask_copy(kvm->arch.supported_cpus, &arm_pmu->supported_cpus);
+
+ /*
+ * Since a specific PMU is explicitly selected,
+ * PMMIR_EL1.SLOTS is deterministic to the guest.
+ * If KVM_ARM_VCPU_PMU_V3_STRICT is set, snapshot
+ * the value to allow the guest to read it.
+ */
+ if (kvm_vcpu_has_pmuv3_strict(vcpu))
+ kvm->arch.pmmir_slots =
+ FIELD_GET(ARMV8_PMU_SLOTS,
+ arm_pmu->reg_pmmir);
ret = 0;
break;
}
diff --git a/arch/arm64/kvm/sys_regs.c b/arch/arm64/kvm/sys_regs.c
index 148fc3400ea815..edfbb8de152865 100644
--- a/arch/arm64/kvm/sys_regs.c
+++ b/arch/arm64/kvm/sys_regs.c
@@ -1370,6 +1370,64 @@ static bool access_pminten(struct kvm_vcpu *vcpu, struct sys_reg_params *p,
return true;
}
+static bool access_pmmir(struct kvm_vcpu *vcpu, struct sys_reg_params *p,
+ const struct sys_reg_desc *r)
+{
+ if (p->is_write)
+ return write_to_read_only(vcpu, p, r);
+
+ /*
+ * If KVM_ARM_VCPU_PMU_V3_STRICT is set and PMU was explicitly
+ * selected, the underlying hardware SLOTS value was read into this
+ * field. Otherwise, it stays 0. All other PMMIR_EL1 fields are RAZ.
+ */
+ p->regval = FIELD_PREP(ARMV8_PMU_SLOTS, vcpu->kvm->arch.pmmir_slots);
+ return true;
+}
+
+static int get_pmmir(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r,
+ u64 *val)
+{
+ *val = FIELD_PREP(ARMV8_PMU_SLOTS, vcpu->kvm->arch.pmmir_slots);
+ return 0;
+}
+
+static int set_pmmir(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r,
+ u64 val)
+{
+ struct kvm *kvm = vcpu->kvm;
+ u8 slots = FIELD_GET(ARMV8_PMU_SLOTS, val);
+
+ /*
+ * Only the SLOTS field is exposed (get_pmmir returns just that field),
+ * so reject a write that sets any other bit rather than silently
+ * masking it.
+ */
+ if (val & ~(u64)ARMV8_PMU_SLOTS)
+ return -EINVAL;
+
+ guard(mutex)(&kvm->arch.config_lock);
+
+ /*
+ * Once the VM has started PMMIR_EL1 is immutable. Reject any write
+ * that does not match the current value.
+ */
+ if (kvm_vm_has_ran_once(kvm))
+ return slots == kvm->arch.pmmir_slots ? 0 : -EBUSY;
+
+ /*
+ * Only SLOTS = 0 is honored for backwards compatibility with the
+ * old RAZ behavior. Reject any non-zero write that does not match
+ * the current value.
+ */
+ if (!slots)
+ kvm->arch.pmmir_slots = 0;
+ else if (slots != kvm->arch.pmmir_slots)
+ return -EINVAL;
+
+ return 0;
+}
+
static bool access_pmovs(struct kvm_vcpu *vcpu, struct sys_reg_params *p,
const struct sys_reg_desc *r)
{
@@ -3456,7 +3514,8 @@ static const struct sys_reg_desc sys_reg_descs[] = {
{ PMU_SYS_REG(PMINTENCLR_EL1),
.access = access_pminten, .reg = PMINTENSET_EL1,
.get_user = get_pmreg, .set_user = set_pmreg },
- { SYS_DESC(SYS_PMMIR_EL1), trap_raz_wi },
+ { PMU_SYS_REG(PMMIR_EL1), .access = access_pmmir, .reset = NULL,
+ .get_user = get_pmmir, .set_user = set_pmmir },
{ SYS_DESC(SYS_MAIR_EL1), access_vm_reg, reset_unknown, MAIR_EL1 },
{ SYS_DESC(SYS_PIRE0_EL1), NULL, reset_unknown, PIRE0_EL1,
@@ -4600,7 +4659,7 @@ static const struct sys_reg_desc cp15_regs[] = {
{ CP15_PMU_SYS_REG(HI, 0, 9, 14, 4), .access = access_pmceid },
{ CP15_PMU_SYS_REG(HI, 0, 9, 14, 5), .access = access_pmceid },
/* PMMIR */
- { CP15_PMU_SYS_REG(DIRECT, 0, 9, 14, 6), .access = trap_raz_wi },
+ { CP15_PMU_SYS_REG(DIRECT, 0, 9, 14, 6), .access = access_pmmir },
/* PRRR/MAIR0 */
{ AA32(LO), Op1( 0), CRn(10), CRm( 2), Op2( 0), access_vm_reg, NULL, MAIR_EL1 },
diff --git a/include/kvm/arm_pmu.h b/include/kvm/arm_pmu.h
index 0a36a3d5c8944d..13468bd5bbf233 100644
--- a/include/kvm/arm_pmu.h
+++ b/include/kvm/arm_pmu.h
@@ -76,6 +76,9 @@ void kvm_vcpu_pmu_resync_el0(void);
#define kvm_vcpu_has_pmu(vcpu) \
(vcpu_has_feature(vcpu, KVM_ARM_VCPU_PMU_V3))
+#define kvm_vcpu_has_pmuv3_strict(vcpu) \
+ (vcpu_has_feature(vcpu, KVM_ARM_VCPU_PMU_V3_STRICT))
+
/*
* Updates the vcpu's view of the pmu events for this cpu.
* Must be called before every vcpu run after disabling interrupts, to ensure
@@ -161,6 +164,7 @@ static inline u64 kvm_pmu_get_pmceid(struct kvm_vcpu *vcpu, bool pmceid1)
}
#define kvm_vcpu_has_pmu(vcpu) ({ false; })
+#define kvm_vcpu_has_pmuv3_strict(vcpu) ({ false; })
static inline void kvm_pmu_update_vcpu_events(struct kvm_vcpu *vcpu) {}
static inline void kvm_vcpu_pmu_restore_guest(struct kvm_vcpu *vcpu) {}
static inline void kvm_vcpu_pmu_restore_host(struct kvm_vcpu *vcpu) {}
diff --git a/tools/arch/arm64/include/uapi/asm/kvm.h b/tools/arch/arm64/include/uapi/asm/kvm.h
index 1c13bfa2d38aad..019e5e3d892e6d 100644
--- a/tools/arch/arm64/include/uapi/asm/kvm.h
+++ b/tools/arch/arm64/include/uapi/asm/kvm.h
@@ -106,6 +106,7 @@ struct kvm_regs {
#define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 /* VCPU uses generic authentication */
#define KVM_ARM_VCPU_HAS_EL2 7 /* Support nested virtualization */
#define KVM_ARM_VCPU_HAS_EL2_E2H0 8 /* Limit NV support to E2H RES0 */
+#define KVM_ARM_VCPU_PMU_V3_STRICT 9 /* No default PMU creation */
struct kvm_vcpu_init {
__u32 target;
diff --git a/tools/testing/selftests/kvm/arm64/get-reg-list.c b/tools/testing/selftests/kvm/arm64/get-reg-list.c
index 0a3a94c4cca16f..cfa99979d57c8e 100644
--- a/tools/testing/selftests/kvm/arm64/get-reg-list.c
+++ b/tools/testing/selftests/kvm/arm64/get-reg-list.c
@@ -532,6 +532,7 @@ static __u64 base_regs[] = {
static __u64 pmu_regs[] = {
ARM64_SYS_REG(3, 0, 9, 14, 1), /* PMINTENSET_EL1 */
ARM64_SYS_REG(3, 0, 9, 14, 2), /* PMINTENCLR_EL1 */
+ ARM64_SYS_REG(3, 0, 9, 14, 6), /* PMMIR_EL1 */
ARM64_SYS_REG(3, 3, 9, 12, 0), /* PMCR_EL0 */
ARM64_SYS_REG(3, 3, 9, 12, 1), /* PMCNTENSET_EL0 */
ARM64_SYS_REG(3, 3, 9, 12, 2), /* PMCNTENCLR_EL0 */
|
| 3/2 | 2026/07/02 21:06 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 7640 output: 34 thoughts: 251 Thoughts: **Analyzing the KVM ARM64 Patch** Okay, so I'm looking at this patch and it's introducing a new KVM feature, `KVM_ARM_VCPU_PMU_V3_STRICT`, specifically for ARM64. The file changes confirm this is core functionality within the ARM64 KVM subsystem, hitting `arm.c`, `pmu-emul.c`, and `sys_regs.c`. It looks like we're adding handling for a new system register, `PMMIR_EL1`, including `access_pmmir`, `get_pmmir`, and `set_pmmir` functions, and then modifying `compute_pmceid1` and `kvm_arm_pmu_v3_set_pmu`. The crucial question is, can this be triggered within a virtualized environment? Given KVM's extensive fuzzing with syzkaller, the chances are high. And, since this patch is explicitly for ARM64 KVM, that should narrow the scope. Now, I'll need to check the Kconfig options. Clearly `CONFIG_KVM` is the primary one, but I'll also check `arch/arm64/kvm/Kconfig` to see if there are any specific enabling configurations that need to be met. I will need to verify any related dependencies. |
| 4/2 | 2026/07/02 21:06 | tool | grepper |
0mArgs:{
"Expression": "config KVM",
"PathPrefix": "arch/arm64/kvm/Kconfig"
}Results: {
"Output": "arch/arm64/kvm/Kconfig=18=if VIRTUALIZATION\narch/arm64/kvm/Kconfig-19-\narch/arm64/kvm/Kconfig:20:menuconfig KVM\narch/arm64/kvm/Kconfig-21-\tbool \"Kernel-based Virtual Machine (KVM) support\"\n"
} |
| 5/2 | 2026/07/02 21:06 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 8317 output: 36 thoughts: 29 Thoughts: Okay, here's my interpretation of those thoughts, tailored for an expert audience, presented in the first person: **Navigating the Virtualization Configuration Labyrinth** Alright, so I'm looking at this configuration, and immediately, my brain zeroes in on `KVM`. That's the core hypervisor, no surprises there. But then, as always, I have to dig deeper. I need to make sure I'm not missing anything crucial. My mind immediately jumps to performance monitoring. Wait a minute, what about the Performance Monitoring Unit? Are we appropriately leveraging the `HW_PERF_EVENTS` infrastructure, or something similar, related to Performance Monitoring Units? I need to think through how these things are being tracked, what tools are at play, and where these metrics are exposed. Is the configuration accounting for all of the potential performance overhead associated with virtualization, so we can make the right trade offs? |
| 6/2 | 2026/07/02 21:06 | tool | grepper |
0mError:no matches Args: {
"Expression": "depends on.*PMU",
"PathPrefix": "arch/arm64/kvm/Kconfig"
}Results: {
"error": "no matches"
} |
| 7/2 | 2026/07/02 21:06 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 8585 output: 37 thoughts: 47 Thoughts: Okay, here's the summary, rendered as if it's my thought process: **Diving into ARM64 KVM PMU and System Register Emulation** Alright, I need to get a handle on how the Performance Monitor Unit (PMU) emulation and system register handling are implemented in the ARM64 KVM environment. Given my experience, I'm thinking a good starting point is to zero in on the conditional compilation aspects. So, I need to check `arch/arm64/kvm/pmu-emul.c` to see if the PMU emulation code is selectively included, perhaps based on the presence of specific hardware features or kernel configurations. Similarly, I'll need to scrutinize `arch/arm64/kvm/sys_regs.c` to understand the conditions under which the system register handling code is compiled. This will clarify when and why these emulation paths are even enabled. This focus on conditional compilation gives a clearer picture of the overall architecture and which parts are relevant to my current needs. |
| 8/2 | 2026/07/02 21:06 | tool | grepper |
0mArgs:{
"Expression": "pmu-emul.o",
"PathPrefix": "arch/arm64/kvm/Makefile"
}Results: {
"Output": "arch/arm64/kvm/Makefile=16=kvm-y += arm.o mmu.o mmio.o psci.o hypercalls.o pvtime.o \\\n--\narch/arm64/kvm/Makefile-28-\narch/arm64/kvm/Makefile:29:kvm-$(CONFIG_HW_PERF_EVENTS) += pmu-emul.o pmu.o\narch/arm64/kvm/Makefile-30-kvm-$(CONFIG_ARM64_PTR_AUTH) += pauth.o\n"
} |
| 9/2 | 2026/07/02 21:06 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 9036 output: 35 thoughts: 69 Thoughts: **Investigating Hardware Performance Events** Okay, so I see that `CONFIG_HW_PERF_EVENTS` is essential for getting `pmu-emul.o` to work. Now, let's step back and consider the dependencies. My initial thought is to confirm whether the presence of `KVM` and `HW_PERF_EVENTS` alone are enough to satisfy the requirements. But then again, doesn't `HW_PERF_EVENTS` get selected based on something like `ARM_PMU`, or something similar? I need to investigate that relationship further to be certain of the complete picture. |
| 10/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "config HW_PERF_EVENTS",
"PathPrefix": "arch/arm64/Kconfig"
}Results: {
"Output": "arch/arm64/Kconfig=1549=config ARCH_SPARSEMEM_ENABLE\n--\narch/arm64/Kconfig-1552-\narch/arm64/Kconfig:1553:config HW_PERF_EVENTS\narch/arm64/Kconfig-1554-\tdef_bool y\n"
} |
| 11/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 9365 output: 51 thoughts: 317 Thoughts: **Analyzing the KVM Patch for ARM64 Performance Monitoring** Okay, so `HW_PERF_EVENTS` is enabled (`def_bool y`) on arm64. That tells me that KVM is the central configuration we're dealing with here, which makes sense. I need to get a handle on what's changed and what's being introduced. Right, so let's identify the core symbols this patch is touching. I can see additions for `access_pmmir`, `get_pmmir`, and `set_pmmir`. Those look like potential memory interface routines, which could be important. Then there are modifications to several existing functions: `kvm_arm_pmu_v3_set_pmu`, `compute_pmceid1`, `kvm_pmu_get_pmceid`, `kvm_arm_pmu_get_max_counters`, `kvm_arm_set_default_pmu`, `kvm_vcpu_init_check_features`, and `kvm_setup_vcpu`. That's a good initial list. Now, to get a better grasp on the implications of this, let's list the functions that are either brand new or have undergone significant modification. That gives us a more manageable scope: `access_pmmir`, `get_pmmir`, `set_pmmir`, `kvm_arm_pmu_v3_set_pmu`, `compute_pmceid1`, `kvm_pmu_get_pmceid`, and `kvm_arm_pmu_get_max_counters`. That's a solid list of the key areas of focus. Just to be absolutely certain I'm on the right track, let me verify that `kvm_arm_pmu_v3_set_pmu` is the correct function name. |
| 12/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "kvm_arm_pmu_v3_set_pmu",
"PathPrefix": "arch/arm64/kvm/pmu-emul.c"
}Results: {
"Output": "arch/arm64/kvm/pmu-emul.c=1089=int kvm_arm_set_default_pmu(struct kvm *kvm)\n--\narch/arm64/kvm/pmu-emul.c-1099-\narch/arm64/kvm/pmu-emul.c:1100:static int kvm_arm_pmu_v3_set_pmu(struct kvm_vcpu *vcpu, int pmu_id)\narch/arm64/kvm/pmu-emul.c-1101-{\n--\narch/arm64/kvm/pmu-emul.c=1155=int kvm_arm_pmu_v3_set_attr(struct kvm_vcpu *vcpu, struct kvm_device_attr *attr)\n--\narch/arm64/kvm/pmu-emul.c-1248-\narch/arm64/kvm/pmu-emul.c:1249:\t\treturn kvm_arm_pmu_v3_set_pmu(vcpu, pmu_id);\narch/arm64/kvm/pmu-emul.c-1250-\t}\n"
} |
| 13/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 10455 output: 42 thoughts: 34 Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue: **Checking and Pondering PMU Configuration** Right, `kvm_arm_pmu_v3_set_pmu`... seems solid. The logic there aligns with how I'd expect the PMU configuration to be handled at this stage. Good. Now, I need to double-check something that's always a point of subtle detail, and that's the calculation of `compute_pmceid1`. That function, as I recall, plays a critical role in correctly setting up the PMU's event selection. I need to ensure the parameters it's using are correctly derived from the guest's context, especially when dealing with the finer granularity of event monitoring. Making sure that's correct will save me a lot of debugging later. |
| 14/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "compute_pmceid1",
"PathPrefix": "arch/arm64/kvm/pmu-emul.c"
}Results: {
"Output": "arch/arm64/kvm/pmu-emul.c=854=static u64 compute_pmceid0(struct kvm_vcpu *vcpu)\n--\narch/arm64/kvm/pmu-emul.c-864-\narch/arm64/kvm/pmu-emul.c:865:static u64 compute_pmceid1(struct kvm_vcpu *vcpu)\narch/arm64/kvm/pmu-emul.c-866-{\n--\narch/arm64/kvm/pmu-emul.c=881=u64 kvm_pmu_get_pmceid(struct kvm_vcpu *vcpu, bool pmceid1)\n--\narch/arm64/kvm/pmu-emul.c-890-\t} else {\narch/arm64/kvm/pmu-emul.c:891:\t\tval = compute_pmceid1(vcpu);\narch/arm64/kvm/pmu-emul.c-892-\t\tbase = 32;\n"
} |
| 15/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 11004 output: 36 thoughts: 36 Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience: **Confirming and Cross-Referencing** Alright, looks like the `compute_pmceid1` function is behaving as expected, no red flags there. Now, let's circle back to those core access functions: I want to double-check `access_pmmir`, `get_pmmir`, and `set_pmmir`. They're the critical gatekeepers, so any issues there would propagate. Gotta make sure those read/write operations on the PMIR are functioning correctly and that there aren't any sneaky side effects lurking within them. Need to quickly verify they are interacting with the PMIR as expected, and that there's no unexpected state being introduced or altered. This is a crucial step before moving on, as any errors in these functions would have a cascading effect on anything dependent on the PMIR. |
| 16/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "pmmir",
"PathPrefix": "arch/arm64/kvm/sys_regs.c"
}Results: {
"Output": "arch/arm64/kvm/sys_regs.c=1349=static bool access_pminten(struct kvm_vcpu *vcpu, struct sys_reg_params *p,\n--\narch/arm64/kvm/sys_regs.c-1372-\narch/arm64/kvm/sys_regs.c:1373:static bool access_pmmir(struct kvm_vcpu *vcpu, struct sys_reg_params *p,\narch/arm64/kvm/sys_regs.c-1374-\t\t\t const struct sys_reg_desc *r)\n--\narch/arm64/kvm/sys_regs.c-1383-\t */\narch/arm64/kvm/sys_regs.c:1384:\tp-\u003eregval = FIELD_PREP(ARMV8_PMU_SLOTS, vcpu-\u003ekvm-\u003earch.pmmir_slots);\narch/arm64/kvm/sys_regs.c-1385-\treturn true;\n--\narch/arm64/kvm/sys_regs.c-1387-\narch/arm64/kvm/sys_regs.c:1388:static int get_pmmir(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r,\narch/arm64/kvm/sys_regs.c-1389-\t\t u64 *val)\narch/arm64/kvm/sys_regs.c-1390-{\narch/arm64/kvm/sys_regs.c:1391:\t*val = FIELD_PREP(ARMV8_PMU_SLOTS, vcpu-\u003ekvm-\u003earch.pmmir_slots);\narch/arm64/kvm/sys_regs.c-1392-\treturn 0;\n--\narch/arm64/kvm/sys_regs.c-1394-\narch/arm64/kvm/sys_regs.c:1395:static int set_pmmir(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r,\narch/arm64/kvm/sys_regs.c-1396-\t\t u64 val)\n--\narch/arm64/kvm/sys_regs.c-1401-\t/*\narch/arm64/kvm/sys_regs.c:1402:\t * Only the SLOTS field is exposed (get_pmmir returns just that field),\narch/arm64/kvm/sys_regs.c-1403-\t * so reject a write that sets any other bit rather than silently\n--\narch/arm64/kvm/sys_regs.c-1415-\tif (kvm_vm_has_ran_once(kvm))\narch/arm64/kvm/sys_regs.c:1416:\t\treturn slots == kvm-\u003earch.pmmir_slots ? 0 : -EBUSY;\narch/arm64/kvm/sys_regs.c-1417-\n--\narch/arm64/kvm/sys_regs.c-1423-\tif (!slots)\narch/arm64/kvm/sys_regs.c:1424:\t\tkvm-\u003earch.pmmir_slots = 0;\narch/arm64/kvm/sys_regs.c:1425:\telse if (slots != kvm-\u003earch.pmmir_slots)\narch/arm64/kvm/sys_regs.c-1426-\t\treturn -EINVAL;\n--\narch/arm64/kvm/sys_regs.c=3261=static const struct sys_reg_desc sys_reg_descs[] = {\n--\narch/arm64/kvm/sys_regs.c-3516-\t .get_user = get_pmreg, .set_user = set_pmreg },\narch/arm64/kvm/sys_regs.c:3517:\t{ PMU_SYS_REG(PMMIR_EL1), .access = access_pmmir, .reset = NULL,\narch/arm64/kvm/sys_regs.c:3518:\t .get_user = get_pmmir, .set_user = set_pmmir },\narch/arm64/kvm/sys_regs.c-3519-\n--\narch/arm64/kvm/sys_regs.c=4609=static const struct sys_reg_desc cp15_regs[] = {\n--\narch/arm64/kvm/sys_regs.c-4661-\t/* PMMIR */\narch/arm64/kvm/sys_regs.c:4662:\t{ CP15_PMU_SYS_REG(DIRECT, 0, 9, 14, 6), .access = access_pmmir },\narch/arm64/kvm/sys_regs.c-4663-\n"
} |
| 17/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 12507 output: 49 thoughts: 169 Thoughts: **Analyzing the KVM ARM PMU Function Landscape** Okay, so I'm trying to get a handle on the key functions related to the KVM ARM Performance Monitoring Unit. Right now, I'm focusing on the symbols involved. Let's see... the core ones seem to be: * `access_pmmir` * `get_pmmir` * `set_pmmir` * `kvm_arm_pmu_v3_set_pmu` * `compute_pmceid1` Ah, right, now I remember, `compute_pmceid1` is defined statically. And those other access functions: `access_pmmir`, `get_pmmir`, `set_pmmir` and `kvm_arm_pmu_v3_set_pmu` are also static. The question is, can I include static functions in the list? Yes, of course I can, Syzkaller can handle those just fine. I need to be thorough here. While I'm at it, I should also check and confirm `kvm_arm_pmu_get_max_counters` and `kvm_arm_set_default_pmu`, just to be sure. |
| 18/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "kvm_arm_pmu_get_max_counters",
"PathPrefix": "arch/arm64/kvm/pmu-emul.c"
}Results: {
"Output": "arch/arm64/kvm/pmu-emul.c=995=static bool pmu_irq_is_valid(struct kvm *kvm, int irq)\n--\narch/arm64/kvm/pmu-emul.c-1020-/**\narch/arm64/kvm/pmu-emul.c:1021: * kvm_arm_pmu_get_max_counters - Return the max number of PMU counters.\narch/arm64/kvm/pmu-emul.c-1022- * @kvm: The kvm pointer\narch/arm64/kvm/pmu-emul.c-1023- */\narch/arm64/kvm/pmu-emul.c:1024:u8 kvm_arm_pmu_get_max_counters(struct kvm *kvm)\narch/arm64/kvm/pmu-emul.c-1025-{\n--\narch/arm64/kvm/pmu-emul.c=1068=static void kvm_arm_set_pmu(struct kvm *kvm, struct arm_pmu *arm_pmu)\n--\narch/arm64/kvm/pmu-emul.c-1072-\tkvm-\u003earch.arm_pmu = arm_pmu;\narch/arm64/kvm/pmu-emul.c:1073:\tkvm_arm_set_nr_counters(kvm, kvm_arm_pmu_get_max_counters(kvm));\narch/arm64/kvm/pmu-emul.c-1074-}\n--\narch/arm64/kvm/pmu-emul.c=1141=static int kvm_arm_pmu_v3_set_nr_counters(struct kvm_vcpu *vcpu, unsigned int n)\n--\narch/arm64/kvm/pmu-emul.c-1147-\narch/arm64/kvm/pmu-emul.c:1148:\tif (n \u003e kvm_arm_pmu_get_max_counters(kvm))\narch/arm64/kvm/pmu-emul.c-1149-\t\treturn -EINVAL;\n"
} |
| 19/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 13581 output: 47 thoughts: 38 Thoughts: Okay, here's my interpretation of those thoughts, presented as a personal thought process, as requested: **Assessing the PMU Counter Changes** Alright, so the clue here is that `kvm_arm_pmu_get_max_counters` has been modified. That's a good starting point. I need to understand the implications of that change, because that particular function is pretty fundamental in determining the capabilities of the Performance Monitoring Unit within the ARM KVM virtualization context. Any alterations there likely cascade. Okay, my next thought is to investigate `kvm_arm_set_default_pmu`. I need to see how the system is initializing or handling the default PMU configuration, as any changes in the maximum counter retrieval could influence what the system thinks the PMU is capable of. It would be good to understand the relationship between what is reported as possible and how the system attempts to configure the hardware. I need to see if any of those changes interact. |
| 20/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "kvm_arm_set_default_pmu",
"PathPrefix": "arch/arm64/kvm/pmu-emul.c"
}Results: {
"Output": "arch/arm64/kvm/pmu-emul.c=1068=static void kvm_arm_set_pmu(struct kvm *kvm, struct arm_pmu *arm_pmu)\n--\narch/arm64/kvm/pmu-emul.c-1076-/**\narch/arm64/kvm/pmu-emul.c:1077: * kvm_arm_set_default_pmu - No PMU set and KVM_ARM_VCPU_PMU_V3_STRICT not\narch/arm64/kvm/pmu-emul.c-1078- * set, get the default one.\n--\narch/arm64/kvm/pmu-emul.c-1088- */\narch/arm64/kvm/pmu-emul.c:1089:int kvm_arm_set_default_pmu(struct kvm *kvm)\narch/arm64/kvm/pmu-emul.c-1090-{\n"
} |
| 21/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 14141 output: 43 thoughts: 46 Thoughts: Okay, here's my interpretation of those thoughts, summarized from my perspective as someone well-versed in this area: **Analyzing KVM-ARM PMU Initialization** Alright, so the `kvm_arm_set_default_pmu` function has been updated, I'll need to dig into that. Let's make sure this change is consistent with the rest of the relevant code. Specifically, I should look at `kvm_vcpu_init_check_features` and `kvm_setup_vcpu`. Those are the usual suspects where PMU-related feature initialization and VCPU setup would be handled, so I need to see how the new `kvm_arm_set_default_pmu` function integrates with those parts of the code. I anticipate that the changes will cascade to how features are handled during VCPU creation. |
| 22/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "kvm_vcpu_init_check_features",
"PathPrefix": "arch/arm64/kvm/arm.c"
}Results: {
"Output": "arch/arm64/kvm/arm.c=1544=static unsigned long system_supported_vcpu_features(void)\n--\narch/arm64/kvm/arm.c-1569-\narch/arm64/kvm/arm.c:1570:static int kvm_vcpu_init_check_features(struct kvm_vcpu *vcpu,\narch/arm64/kvm/arm.c-1571-\t\t\t\t\tconst struct kvm_vcpu_init *init)\n--\narch/arm64/kvm/arm.c=1675=static int kvm_vcpu_set_target(struct kvm_vcpu *vcpu,\n--\narch/arm64/kvm/arm.c-1683-\narch/arm64/kvm/arm.c:1684:\tret = kvm_vcpu_init_check_features(vcpu, init);\narch/arm64/kvm/arm.c-1685-\tif (ret)\n"
} |
| 23/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 14679 output: 39 thoughts: 18 Thoughts: Here's my take on the changes: **Analyzing the KVM VCPU Feature Initialization** Okay, so I see that `kvm_vcpu_init_check_features` has been touched. Right away, this means something fundamental to the virtual CPU's feature setup has likely been adjusted. It could be a refinement to how features are identified, enabled, or disabled during the initial VCPU boot process. Given this is a core function, I need to dig deeper. I'll need to understand *why* it was modified. Was it to handle a new CPU feature from a recent architecture update? Perhaps a security hardening measure? Or maybe it's just a refactoring for better performance or code clarity? Knowing the exact changes is critical. Understanding the context around those modifications will tell the story of the KVM's evolution. |
| 24/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "kvm_setup_vcpu",
"PathPrefix": "arch/arm64/kvm/arm.c"
}Results: {
"Output": "arch/arm64/kvm/arm.c=1614=static bool kvm_vcpu_init_changed(struct kvm_vcpu *vcpu,\n--\narch/arm64/kvm/arm.c-1622-\narch/arm64/kvm/arm.c:1623:static int kvm_setup_vcpu(struct kvm_vcpu *vcpu)\narch/arm64/kvm/arm.c-1624-{\n--\narch/arm64/kvm/arm.c=1645=static int __kvm_vcpu_set_target(struct kvm_vcpu *vcpu,\n--\narch/arm64/kvm/arm.c-1659-\narch/arm64/kvm/arm.c:1660:\tret = kvm_setup_vcpu(vcpu);\narch/arm64/kvm/arm.c-1661-\tif (ret)\n"
} |
| 25/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 15165 output: 27 thoughts: 228 Thoughts: **Analyzing KVM Changes for a New Feature** Okay, so I see that `kvm_setup_vcpu` has definitely been touched. That's good information. Now, let's nail down exactly where the changes are centered. My list of target symbols to investigate is: `access_pmmir`, `get_pmmir`, `set_pmmir`, `kvm_arm_pmu_v3_set_pmu`, `compute_pmceid1`, `kvm_arm_pmu_get_max_counters`, `kvm_arm_set_default_pmu`, `kvm_vcpu_init_check_features`, and, of course, `kvm_setup_vcpu`. This gives me a solid starting point for debugging. The relevant config seems to be `KVM`, naturally. I need to make sure `HW_PERF_EVENTS` is enabled. It is, but it's defined as `def_bool y` on arm64. That's a little annoying because syzkaller's not always the best with these implicit defaults. Ideally, I'd have a straightforward `y` or `n`. Since it's needed, I'll list it explicitly if it's required for the new functionality. But, hang on... `HW_PERF_EVENTS` isn't user-configurable anyway. Okay, that's fine. I'll make sure there aren't any other configs I'm missing that would impact this. |
| 26/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "config HW_PERF_EVENTS",
"PathPrefix": ""
}Results: {
"Output": "arch/arm/Kconfig=1251=config CPU_TTBR0_PAN\n--\narch/arm/Kconfig-1257-\narch/arm/Kconfig:1258:config HW_PERF_EVENTS\narch/arm/Kconfig-1259-\tdef_bool y\n--\narch/arm64/Kconfig=1549=config ARCH_SPARSEMEM_ENABLE\n--\narch/arm64/Kconfig-1552-\narch/arm64/Kconfig:1553:config HW_PERF_EVENTS\narch/arm64/Kconfig-1554-\tdef_bool y\n--\narch/mips/Kconfig=2690=config NODES_SHIFT\n--\narch/mips/Kconfig-2694-\narch/mips/Kconfig:2695:config HW_PERF_EVENTS\narch/mips/Kconfig-2696-\tbool \"Enable hardware performance counter support for perf events\"\n--\narch/sh/Kconfig=626=config GUSA_RB\n--\narch/sh/Kconfig-635-\narch/sh/Kconfig:636:config HW_PERF_EVENTS\narch/sh/Kconfig-637-\tbool \"Enable hardware performance counter support for perf events\"\n"
} |
| 27/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 16076 output: 48 thoughts: 291 Thoughts: **Analyzing the KVM ARM64 Patch** Okay, so I see that `HW_PERF_EVENTS` is already enabled by default on ARM64 – it's `def_bool y`, so no need to explicitly list it. The critical piece here seems to be `KVM`, which is the core of this whole thing. Now, let's break down the reasoning behind this. The patch introduces a new KVM feature, `KVM_ARM_VCPU_PMU_V3_STRICT`. This is where the core functionality resides. It's modifying the PMU initialization and exposing a new system register, `PMMIR_EL1`, to the guest. It's functional KVM code, specifically in the ARM64 subsystem, directly accessible from userspace through KVM ioctls and during guest execution. That's good to know. I'll double-check the relevant symbols, making sure I haven't missed anything crucial. I see: `access_pmmir`, `get_pmmir`, `set_pmmir`, `kvm_arm_pmu_v3_set_pmu`, `compute_pmceid1`, `kvm_arm_pmu_get_max_counters`, `kvm_arm_set_default_pmu`, `kvm_vcpu_init_check_features`, and `kvm_setup_vcpu`. Yep, those all look like the key functions involved. Wait, looking closer, I also see that `kvm_pmu_get_pmceid` is modified, which is important to notice. And `kvm_arm_pmu_v3_enable` is also being modified. Good. This confirms the impact is well understood. |
| 28/2 | 2026/07/02 21:07 | tool | grepper |
0mArgs:{
"Expression": "kvm_arm_pmu_v3_enable",
"PathPrefix": "arch/arm64/kvm/pmu-emul.c"
}Results: {
"Output": "arch/arm64/kvm/pmu-emul.c=914=void kvm_vcpu_reload_pmu(struct kvm_vcpu *vcpu)\n--\narch/arm64/kvm/pmu-emul.c-924-\narch/arm64/kvm/pmu-emul.c:925:int kvm_arm_pmu_v3_enable(struct kvm_vcpu *vcpu)\narch/arm64/kvm/pmu-emul.c-926-{\n"
} |
| 29/2 | 2026/07/02 21:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 16941 output: 244 thoughts: 196 Thoughts: **Analyzing the KVM ARM PMU v3 Modification** Okay, so I see that the `kvm_arm_pmu_v3_enable` function has been modified. That's the key starting point. Let's make sure we have a comprehensive understanding of the changes and their impact. To do that, I need to list all the relevant functions that are likely to be involved, directly or indirectly. Let's see... I've got: * `access_pmmir` * `get_pmmir` * `set_pmmir` * `kvm_arm_pmu_v3_set_pmu` * `compute_pmceid1` * `kvm_pmu_get_pmceid` * `kvm_arm_pmu_v3_enable` (Obviously) * `kvm_arm_pmu_get_max_counters` * `kvm_arm_set_default_pmu` * `kvm_vcpu_init_check_features` * `kvm_setup_vcpu` This seems like a good, solid list to start with. It covers the various aspects of PMU configuration, access, and initialization within the KVM/ARM environment. We're clearly dealing with changes tied to the PMU v3 implementation. The broader context here is KVM configurations, as `KVM` is mentioned as the configuration. Alright, I think I have a good handle on the functions that need reviewing. Now, I'll need to call `set-results` to properly assess the effects and proceed with this analysis. |
| 30/2 | 2026/07/02 21:07 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"access_pmmir",
"get_pmmir",
"set_pmmir",
"kvm_arm_pmu_v3_set_pmu",
"compute_pmceid1",
"kvm_pmu_get_pmceid",
"kvm_arm_pmu_v3_enable",
"kvm_arm_pmu_get_max_counters",
"kvm_arm_set_default_pmu",
"kvm_vcpu_init_check_features",
"kvm_setup_vcpu"
],
"Reasoning": "The patch adds a new KVM feature KVM_ARM_VCPU_PMU_V3_STRICT for ARM64, which modifies PMU initialization and exposes a new sys_reg PMMIR_EL1 to the guest. This is functional code in the KVM ARM64 subsystem that is reachable from userspace via KVM ioctls and guest execution.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"KVM"
],
"FocusSymbols": [
"access_pmmir",
"get_pmmir",
"set_pmmir",
"kvm_arm_pmu_v3_set_pmu",
"compute_pmceid1",
"kvm_pmu_get_pmceid",
"kvm_arm_pmu_v3_enable",
"kvm_arm_pmu_get_max_counters",
"kvm_arm_set_default_pmu",
"kvm_vcpu_init_check_features",
"kvm_setup_vcpu"
],
"Reasoning": "The patch adds a new KVM feature KVM_ARM_VCPU_PMU_V3_STRICT for ARM64, which modifies PMU initialization and exposes a new sys_reg PMMIR_EL1 to the guest. This is functional code in the KVM ARM64 subsystem that is reachable from userspace via KVM ioctls and guest execution.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|