Skip to content

Commit d0ddde0

Browse files
author
Itaru Kitayama
committed
64-bit Arm architecture adjustments to the script.
1 parent a01a2e2 commit d0ddde0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_qemu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ build_kernel_cmdline()
683683
"initcall_debug"
684684
"log_buf_len=20M"
685685
"memory_hotplug.memmap_on_memory=force"
686+
"memmap=1G$0x100000000"
686687
)
687688
if [[ $_arg_gdb == "on" ]]; then
688689
kcmd+=(
@@ -1536,7 +1537,7 @@ prepare_qcmd()
15361537
if [[ $(arch) != "aarch64" ]]; then
15371538
machine_args=("q35" "accel=$accel")
15381539
else
1539-
machine_args=("virt,highmem=on" "accel=$accel")
1540+
machine_args=("virt,highmem=on,gic-version=3" "accel=$accel")
15401541
fi
15411542

15421543
if [[ "$num_pmems" -gt 0 ]]; then
@@ -1586,8 +1587,7 @@ prepare_qcmd()
15861587
[[ $mac_lower =~ (..)(..)(..) ]] && guestmac+=("${BASH_REMATCH[@]:1}")
15871588
mac_addr=$(IFS=:; echo "${guestmac[*]}")
15881589

1589-
#qcmd+=("-device" "e1000,netdev=net0,mac=$mac_addr")
1590-
qcmd+=("-device" "virtio-net-pci,netdev=net0")
1590+
qcmd+=("-device" "e1000,netdev=net0,mac=$mac_addr")
15911591
qcmd+=("-netdev" "user,id=net0,hostfwd=tcp::$hostport-:22")
15921592

15931593
if [[ $_arg_kvm = "on" ]]; then

0 commit comments

Comments
 (0)