You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(device): implement MSR fallback for CPU power meter
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 <[email protected]>
0 commit comments