[platform][pc] add support for TSC based clock

-Detect if under KVM hypervisor and read tick rate or
-calibrate tick against PIT
This commit is contained in:
Travis Geiselbrecht
2025-03-30 21:59:39 -07:00
parent 09412c194f
commit 2987f73d08
10 changed files with 276 additions and 37 deletions

View File

@@ -70,7 +70,7 @@ elif (( $DO_LEGACY )); then
else
QEMU="qemu-system-i386"
PROJECT="pc-x86-test"
CPU=pentium3
CPU=max
MACHINE=pc
fi
@@ -86,7 +86,7 @@ fi
ARGS=""
if (( $DO_KVM )); then
ARGS+=" -enable-kvm -cpu host"
ARGS+=" -accel kvm -cpu host"
else
ARGS+=" -cpu $CPU"
fi