🆕 能成功遍历pci总线下的设备

This commit is contained in:
fslongjin
2022-03-22 18:02:37 +08:00
parent db3749ece4
commit 08fa7b5358
6 changed files with 94 additions and 84 deletions

6
run.sh
View File

@ -94,8 +94,10 @@ if [ $flag_can_run -eq 1 ]; then
else
qemu-system-x86_64 -cdrom ${iso} -m 512M \
-monitor telnet::2333,server,nowait -serial stdio -s -cpu IvyBridge --enable-kvm \
#-drive id=disk,file=bin/disk.img,if=none -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0
-hda bin/disk.img
-drive id=disk,file=bin/disk.img,if=none \
-device ahci,id=ahci \
-device ide-hd,drive=disk,bus=ahci.0 \
-usb
fi
else