From 23982c3f9da2c99d3fae333a0c6e89677bded499 Mon Sep 17 00:00:00 2001 From: Donny Kurnia Date: Wed, 14 Dec 2022 17:20:15 +0700 Subject: [PATCH] use long hv-* attributes for qemu 6.0.0 --- quickemu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 31471ea..3cb2e87 100755 --- a/quickemu +++ b/quickemu @@ -568,7 +568,11 @@ function vm_boot() { fi ;; windows) - CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_passthrough" + if [ "${QEMU_VER_SHORT}" -gt 60 ]; then + CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_passthrough" + else + CPU="-cpu host,kvm=on,+hypervisor,+invtsc,l3-cache=on,migratable=no,hv_frequencies,kvm_pv_unhalt,hv_reenlightenment,hv_relaxed,hv_spinlocks=8191,hv_stimer,hv_synic,hv_time,hv_vapic,hv_vendor_id=1234567890ab,hv_vpindex" + fi if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ]; then CPU="${CPU},topoext" fi