On 27/09/21 17:30, ahmeddan@xxxxxxxxxx wrote:
From: Daniele Ahmed <ahmeddan@xxxxxxxxxx> If an MSR description is provided as input by the user, run the test against that MSR. This allows the user to run tests on custom MSR's. Otherwise run all default tests. This is to validate custom MSR handling in user space with an easy-to-use tool. This kvm-unit-test submodule is a perfect fit. I'm extending it with a mode that takes an MSR index and a value to test arbitrary MSR accesses. Signed-off-by: Daniele Ahmed <ahmeddan@xxxxxxxxxx>
I don't understand; is this a debugging tool, or is it meant to be driven by another test suite?
I'm not sure this fits the purpose of kvm-unit-tests very well, though. An alternative is BITS (https://github.com/biosbits/bits/), which is relatively easy to use and comes with Python bindings to RDMSR/WRMSR.
Paolo