Re: [kvm-unit-tests PATCH v2 3/3] x86/msr.c generalize to any input msr

Paolo Bonzini
2021-09-28T15:36:10Z

On 27/09/21 17:30, ahmeddan@amazon.com wrote:
> From: Daniele Ahmed <ahmeddan@amazon.com>
>
> 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@amazon.com>

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