]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Add option to rseq test to override /dev/cpu_dma_latency
authorSean Christopherson <seanjc@google.com>
Tue, 1 Apr 2025 14:22:38 +0000 (07:22 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 4 Apr 2025 11:07:39 +0000 (07:07 -0400)
commit0297cdc12a87629ad904ac8c0630f7702f9a2d48
tree5b5269d148a9e3ed4ff67ba2ab6fe5778e320ab5
parentef01cac401f18647d62720cf773d7bb0541827da
KVM: selftests: Add option to rseq test to override /dev/cpu_dma_latency

Add a "-l <latency>" param to the rseq test so that the user can override
/dev/cpu_dma_latency, as described by the test's suggested workaround for
not being able to complete enough migrations.

cpu_dma_latency is not a normal file, even as far as procfs files go.
Writes to cpu_dma_latency only persist so long as the file is open, e.g.
so that the kernel automatically reverts back to a power-optimized state
once the sensitive workload completes.  Provide the necessary functionality
instead of effectively forcing the user to write a non-obvious wrapper.

Cc: Dongsheng Zhang <dongsheng.x.zhang@intel.com>
Cc: Zide Chen <zide.chen@intel.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20250401142238.819487-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/rseq_test.c