msr_version.h
#defines for major, minor, and patch versions of msr-safe
as well as helper macros to generate _u32 and string
representation.
Makefile
Removes CURRENT_VERSION and -DVERSION from build.
msrsave now gets the version string from msr_version.h
msrsave_main.c
msr_entry.c
Now #includes msr_version.h and uses MSR_SAFE_VERSION_STR
msr_safe.h
Repurposes a bit of struct padding to hold a _u32-format
msr-safe version number.
README.md
Updates documentation of struct msr_batch_array to note
the new version field. Explains how this will remain
unused in the 1.x.y series. Version 2.x.y will begin
checking this version field to make sure what the user
compiled against is the same version as the loaded
kernel module. This is necessary due to anticipated
batch API changes in version 2.0.0.
Tested on serif (Ubuntu 24.04.1 LTS, Linux 6.8.0, gcc 13.2.0)
* Format cleanup
Per Stephanie.
* remove extra space
* replace tabs with spaces
---------
Co-authored-by: Barry <rountree4@llnl.gov>
Co-authored-by: Stephanie Brink <brink2@llnl.gov>