summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@amd.com>2026-09-07 06:39:02 +0000
committerSean Christopherson <seanjc@google.com>2026-09-28 16:40:37 -0700
commit8ac111b6dc4a523c406f5d827afb5379fbd4e025 (patch)
treed1effc0c6814f39631c8b020ddb064f4580a9fee /tools/perf/scripts/python/task-analyzer.py
parente1e1934fea48bf4193dcd3c2778421ce5610f5ee (diff)
KVM: VMX: Use cpu_dirty_log_size instead of enable_pml for PML checks
Replace the enable_pml check with cpu_dirty_log_size in VMX PML code to determine whether PML is enabled on a per-VM basis. The enable_pml module parameter is a global setting that doesn't reflect per-VM capabilities, whereas cpu_dirty_log_size accurately indicates whether a specific VM has PML enabled. For example, TDX VMs don't yet support PML. Using cpu_dirty_log_size ensures the check correctly reflects this, while enable_pml would incorrectly indicate PML is available. This also improves consistency with kvm_mmu_update_cpu_dirty_logging(), which already uses cpu_dirty_log_size to determine PML enablement. Suggested-by: Kai Huang <kai.huang@intel.com> Reviewed-by: Kai Huang <kai.huang@intel.com> Reviewed-by: Pankaj Gupta <pankaj.gupta@amd.com> Signed-off-by: Nikunj A Dadhania <nikunj@amd.com> Link: https://patch.msgid.link/20260907063906.1964557-5-nikunj@amd.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions