support/testing: add test for msr-tools

Add a simple test to verify that msr-tools are working.

The test needs to build a custom x86_64 kernel with support for CPUID and
MSR.

As the TSC_AUX MSR is emulated on qemu we can use it to test that a value
written with wrmsr can indeed be read back with rdmsr.

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Vincent Stehlé
2022-07-15 11:59:25 +02:00
committed by Yann E. MORIN
parent 49fde7057e
commit 019d4b312d
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
CONFIG_X86_CPUID=y
CONFIG_X86_MSR=y