blob b3865ff98e4e224c315523eaab7cb60c7a875e11 1078 bytes (raw)
name: host/rootfs/image/usr/bin/run-vmm # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| | #!/bin/execlineb -s0
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2024-2025 Alyssa Ross <hi@alyssa.is>
s6-ipcserver-socketbinder -B /run/vm/by-id/${1}/vmm
getpid -E vmm_pid
background -d {
ifelse -n { start-vmm $@ }
{ kill $vmm_pid }
if {
if -t {
backtick -E netvm_id {
backtick -E link_path { readlink /run/vm/by-name/sys.netvm }
basename -- $link_path
}
test $1 = $netvm_id
}
assign-devices
}
cd /run/vm/by-id
elglob -0 providers */config/providers/net/*
forx -pE path { $providers }
backtick -E client_id {
awk -v path=${path} -F / "BEGIN { split(path, p); print p[1] }"
}
backtick -E router_id {
backtick -E router { basename -- $path }
backtick -E link_path { readlink /run/vm/by-name/${router} }
basename -- $link_path
}
if -n {
if { test $client_id != $1 }
test $router_id != $1
}
assign-driver-router-iface /run/vm/by-id/${router_id}
}
unexport !
fdmove -c 3 0
redirfd -r 0 /dev/null
if { udevadm wait /dev/kvm }
cloud-hypervisor --api-socket fd=3
|
debug log:
solving b3865ff ...
found b3865ff in https://inbox.spectrum-os.org/spectrum-devel/20251128223038.97536-6-yureka@cyberchaos.dev/
found 5649674 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 5649674c51b29b08532fc2cd985a5b20a78c3764 host/rootfs/image/usr/bin/run-vmm
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251128223038.97536-6-yureka@cyberchaos.dev/
diff --git a/host/rootfs/image/usr/bin/run-vmm b/host/rootfs/image/usr/bin/run-vmm
index 5649674..b3865ff 100755
Checking patch host/rootfs/image/usr/bin/run-vmm...
Applied patch host/rootfs/image/usr/bin/run-vmm cleanly.
index at:
100755 b3865ff98e4e224c315523eaab7cb60c7a875e11 host/rootfs/image/usr/bin/run-vmm
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).