diff options
| author | Nikunj A Dadhania <nikunj@amd.com> | 2026-09-07 06:39:03 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-28 16:40:37 -0700 |
| commit | 8301c447b24031b73d51ba04de04636c59317828 (patch) | |
| tree | 753e8df34080312ab33b091ab3fd54d1c46d78ae /tools/perf/scripts/python | |
| parent | 8ac111b6dc4a523c406f5d827afb5379fbd4e025 (diff) | |
KVM: x86: Carve out common dirty logging update
Move the PML enable/disable decision logic from the VMX into a new
common wrapper kvm_update_cpu_dirty_logging() in x86.c to avoid
code duplication. Update the update_cpu_dirty_logging() signature to
accept a bool enable parameter accordingly.
Note, this subtly changes the ordering for VMX: currently
guard(vmx_vmcs01) is taken before the atomic_read of
nr_memslots_dirty_logging; after this refactoring the atomic_read
happens in common code before guard(vmx_vmcs01) is taken. The ordering
flip is harmless as a concurrent change to nr_memslots_dirty_logging
will queue another update request.
No functional change intended for VMX, restructuring to prepare for SVM
PML support.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://patch.msgid.link/20260907063906.1964557-6-nikunj@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
