-
Notifications
You must be signed in to change notification settings - Fork 214
feat(device): implement MSR fallback for CPU power meter #2273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Introduces enhancement proposal for adding MSR (Model Specific Register) support as a fallback mechanism when Intel RAPL powercap sysfs interface is unavailable. This improves Kepler's deployment flexibility in environments with restricted powercap access. The proposal includes: - Architecture design using powerReader abstraction - Security considerations for MSR access (PLATYPUS mitigation) - Phased implementation plan with backward compatibility - Configuration for opt-in MSR fallback behavior Signed-off-by: Sunil Thaha <sthaha@redhat.com>
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2273 +/- ##
==========================================
- Coverage 92.27% 88.78% -3.50%
==========================================
Files 39 42 +3
Lines 4142 4501 +359
==========================================
+ Hits 3822 3996 +174
- Misses 257 410 +153
- Partials 63 95 +32 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This commit implements EP-002 MSR fallback power meter enhancement proposal. Add MSR (Model Specific Register) support as fallback when powercap interface is unavailable. This enhancement improves Kepler's compatibility across different systems and kernel configurations. Key changes: - Add MSR reader implementation with Intel RAPL register support - Create raplReader interface abstracting powercap and MSR backends - Extract existing powercap logic into dedicated reader component - Enhance RAPL power meter with automatic fallback detection - Add MSR configuration with security-conscious opt-in defaults - Implement comprehensive test coverage with mock MSR data The MSR fallback is disabled by default due to PLATYPUS attack vectors (CVE-2020-8694/8695) and must be explicitly enabled via configuration. When enabled, the system automatically falls back to MSR if powercap is unavailable, maintaining transparent operation. Signed-off-by: Sunil Thaha <sthaha@redhat.com>
707625d
to
7f7308a
Compare
|
This commit implements EP-002 MSR fallback power meter enhancement proposal.
Add MSR (Model Specific Register) support as fallback when powercap interface
is unavailable. This enhancement improves Kepler's compatibility across
different systems and kernel configurations.
Key changes:
The MSR fallback is disabled by default due to PLATYPUS attack vectors
(CVE-2020-8694/8695) and must be explicitly enabled via configuration.
When enabled, the system automatically falls back to MSR if powercap
is unavailable, maintaining transparent operation.