IOMMU isolated network support #47

Manually merged
ryan merged 15 commits from iommu-net into main 2025-05-01 20:46:10 +00:00
1 changed files with 11 additions and 2 deletions
Showing only changes of commit 22469ca0b9 - Show all commits

View File

@ -82,10 +82,19 @@ function cmd_start(){
-boot order=d \
-chardev socket,path=/var/run/netvm_qga.sock,server=on,wait=off,id=qga0 \
$net_args \
-device qemu-xhci \
-device virtio-serial \
-device virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 &
echo $! > "${LOCKFILE}"
#TODO: Poll here for VM to come up and respond to QMP agent ping
pid=$!
echo "$pid" > "${LOCKFILE}"
until qemu_ga guest-ping; do
ps -p $pid >/dev/null || {
echo "Error: netvm exited unexpectedly";
exit 1;
rm "${LOCKFILE}"
}
sleep 1
done
}
function cmd_stop(){