Skip to content

Commit db76514

Browse files
committed
fix qemu script
1 parent 7f481e9 commit db76514

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

scripts/multi/multi-kvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
exit(0)
1717

1818
NUM = 8
19-
QEMU="/srv/vm/qemu/aarch64-softmmu/qemu-system-aarch64"
19+
QEMU="/srv/vm/qemu"
2020
CMD = "./run-guest-n.sh -q {} -k ../tests/Image.sekvm -i /mydata/cloud-{}-{}.img -m tcp:localhost:444{},server,nowait -x {}"
2121

2222
print("Launch %d VM(s)"%NUM)

scripts/multi/multi-sekvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
exit(0)
1717

1818
NUM = 8
19-
QEMU = "../../qemu/aarch64-softmmu/qemu-system-aarch64"
19+
QEMU = "../../qemu"
2020
CMD = "./run-guest-n.sh -q {} -k ../tests/Image.sekvm -i /mydata/cloud-{}-{}.img -m tcp:localhost:444{},server,nowait -x {}"
2121

2222
print("Launch %d VM(s)"%NUM)

scripts/multi/run-guest-n.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ echo $MAC
115115

116116
if [[ $err == 0 ]]; then
117117
echo "Using bridged networking"
118-
BRIDGE_IF="-netdev tap,id=net1,helper=/mydata/sosp-paper211-ae/qemu/qemu-bridge-helper,vhost=on"
118+
BRIDGE_IF="-netdev tap,id=net1,helper=$QEMU/qemu-bridge-helper,vhost=on"
119119
BRIDGE_IF="$BRIDGE_IF -device virtio-net-pci,netdev=net1,mac=$MAC"
120120
#BRIDGE_IF="$BRIDGE_IF -device virtio-net-pci,netdev=net1"
121121
elif [[ "$tap" != "/dev/tap" ]]; then
@@ -126,7 +126,7 @@ elif [[ "$tap" != "/dev/tap" ]]; then
126126
exec 3<>$tap
127127
fi
128128

129-
$QEMU \
129+
$QEMU/aarch64-softmmu/qemu-system-aarch64 \
130130
-smp $SMP -m $MEMSIZE -machine virt${DUMPDTB} -cpu host \
131131
-kernel ${KERNEL} -enable-kvm ${DTB} \
132132
-drive if=none,file=$FS,id=vda,cache=none,format=raw \

scripts/tests/run-guest-kvm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ tap=/dev/tap$(< /sys/class/net/kvmtap0/ifindex) 2>/dev/null
9797

9898
if [[ $err == 0 ]]; then
9999
echo "Using bridged networking"
100-
BRIDGE_IF="-netdev tap,id=net1,helper=../../qemu/qemu-bridge-helper,vhost=on"
100+
BRIDGE_IF="-netdev tap,id=net1,helper=/srv/vm/qemu/qemu-bridge-helper,vhost=on"
101101
BRIDGE_IF="$BRIDGE_IF -device virtio-net-pci,netdev=net1,mac=de:ad:be:ef:f6:bd"
102102
#BRIDGE_IF="$BRIDGE_IF -device virtio-net-pci,netdev=net1"
103103
elif [[ "$tap" != "/dev/tap" ]]; then

0 commit comments

Comments
 (0)