From edb1657bb1fe2a8a488e5f2baa351c1cf5a798d0 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 14 Mar 2025 20:01:59 +0100 Subject: [PATCH] Update proc.sh --- src/proc.sh | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/proc.sh b/src/proc.sh index de2b7bb..e158d9d 100644 --- a/src/proc.sh +++ b/src/proc.sh @@ -24,31 +24,6 @@ if [[ "$CPU" == "Rockchip RK3588"* ]] && [[ "$CORES" == "8" ]]; then [ -z "$CPU_PIN" ] && CPU_PIN="4,5,6,7" fi -MSRS="/sys/module/kvm/parameters/ignore_msrs" -if [ -e "$MSRS" ]; then - result=$(<"$MSRS") - if [[ "$result" == "0" ]] || [[ "${result^^}" == "N" ]]; then - echo 1 | tee "$MSRS" > /dev/null 2>&1 || true - fi -fi - -CLOCKSOURCE="tsc" -[[ "${ARCH,,}" == "arm64" ]] && CLOCKSOURCE="arch_sys_counter" -CLOCK="/sys/devices/system/clocksource/clocksource0/current_clocksource" - -if [ ! -f "$CLOCK" ]; then - warn "file \"$CLOCK\" cannot not found?" -else - result=$(<"$CLOCK") - case "${result,,}" in - "${CLOCKSOURCE,,}" ) ;; - "kvm-clock" ) info "Nested KVM virtualization detected.." ;; - "hyperv_clocksource_tsc_page" ) info "Nested Hyper-V virtualization detected.." ;; - "hpet" ) warn "unsupported clock source detected: '$result'. Please set host clock source to '$CLOCKSOURCE'" ;; - *) warn "unexpected clock source detected: '$result'. Please set host clock source to '$CLOCKSOURCE'" ;; - esac -fi - if [[ "${ARCH,,}" != "arm64" ]]; then KVM="N" warn "your CPU architecture is ${ARCH^^} and cannot provide KVM acceleration for ARM64 instructions, this will cause a major loss of performance."