This gets the script to where it can boot with kvm: - Use -cpu host with kvm so that the host CPU is used - Show the full QEMU arguments
Signed-off-by: Simon Glass <s...@chromium.org> --- (no changes since v1) scripts/build-qemu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-qemu.sh b/scripts/build-qemu.sh index f9ee0072573..03f06105246 100755 --- a/scripts/build-qemu.sh +++ b/scripts/build-qemu.sh @@ -93,7 +93,7 @@ while getopts "a:Beko:rR:sS:w" opt; do extra+=" -netdev user,id=net0" ;; k) - kvm="-enable-kvm" + kvm="-enable-kvm -cpu host" ;; o) os=$OPTARG @@ -150,7 +150,7 @@ run_qemu() { else extra+=" -serial mon:stdio" fi - echo "Running ${qemu} ${extra}" + echo "Running ${qemu} -bios "$DIR/${BIOS}" ${kvm} ${extra}" "${qemu}" -bios "$DIR/${BIOS}" \ -m 512 \ -nic none \ -- 2.43.0