From 717c7a671520a7fcc4d49e4ad205ba0bcd89e4ae Mon Sep 17 00:00:00 2001 From: fslongjin Date: Mon, 11 Jul 2022 18:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E5=90=AF=E7=94=A8x2apic;=20?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84flags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 97121e36..9578a20f 100644 --- a/run.sh +++ b/run.sh @@ -99,6 +99,7 @@ sudo touch ${root_folder}/bin/disk_mount/dev/keyboard.dev sync bash u* cd .. +allflags=$(qemu-system-x86_64 -cpu help | awk '/flags/ {y=1; getline}; y {print}' | tr ' ' '\n' | grep -Ev "^$" | sed -r 's|^|+|' | tr '\n' ',' | sed -r "s|,$||") if [ $flag_can_run -eq 1 ]; then if [ ${IA32_USE_QEMU} == 0 ]; then @@ -106,7 +107,7 @@ if [ $flag_can_run -eq 1 ]; then else qemu-system-x86_64 -cdrom ${iso} -m 512M -smp 2,cores=2,threads=1,sockets=1 \ -boot order=d \ - -monitor stdio -d cpu_reset,guest_errors,trace:check_exception,exec,cpu,out_asm,in_asm -s -S -cpu IvyBridge --enable-kvm -rtc clock=host,base=localtime -serial file:serial_opt.txt \ + -monitor stdio -d cpu_reset,guest_errors,trace:check_exception,exec,cpu,out_asm,in_asm -s -S -cpu "IvyBridge,+apic,+x2apic,check,${allflags}" --enable-kvm -rtc clock=host,base=localtime -serial file:serial_opt.txt \ -drive id=disk,file=bin/disk.img,if=none \ -device ahci,id=ahci \ -device ide-hd,drive=disk,bus=ahci.0 \