Skip to contentSkip to conversation

Added x86/tsc_adjust.c to test the ia32_tsc_adjust funtionality.

PATCH New Will Auld 1 participant 1 message Nov 22, 2012 KVM

lore
Share & tools
lore

Will Auld

author
#0 lore raw

PATCH 1/1 Added x86/tsc_adjust.c to test the ia32_tsc_adjust funtionality.

---
 config-x86-common.mak |  5 ++++-
 x86/tsc_adjust.c      | 43 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)
 create mode 100644 x86/tsc_adjust.c
config-x86-common.mak +4 -1
index c76cd11..47a9056 100644
@@ -34,7 +34,8 @@ tests-common = $(TEST_DIR)/vmexit.flat $(TEST_DIR)/tsc.flat \
                $(TEST_DIR)/realmode.flat $(TEST_DIR)/msr.flat \
                $(TEST_DIR)/hypercall.flat $(TEST_DIR)/sieve.flat \
                $(TEST_DIR)/kvmclock_test.flat  $(TEST_DIR)/eventinj.flat \
-               $(TEST_DIR)/s3.flat $(TEST_DIR)/pmu.flat $(TEST_DIR)/asyncpf.flat
+               $(TEST_DIR)/s3.flat $(TEST_DIR)/pmu.flat \
+	       $(TEST_DIR)/tsc_adjust.flat $(TEST_DIR)/asyncpf.flat
 
 ifdef API
 tests-common += api/api-sample
@@ -64,6 +65,8 @@ $(TEST_DIR)/port80.elf: $(cstart.o) $(TEST_DIR)/port80.o
 
 $(TEST_DIR)/tsc.elf: $(cstart.o) $(TEST_DIR)/tsc.o
 
+$(TEST_DIR)/tsc_adjust.elf: $(cstart.o) $(TEST_DIR)/tsc_adjust.o
+
 $(TEST_DIR)/apic.elf: $(cstart.o) $(TEST_DIR)/apic.o
 
 $(TEST_DIR)/realmode.elf: $(TEST_DIR)/realmode.o
x86/tsc_adjust.c new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
1.8.0.rc0