Commit c2cfd1d
feat: AF_VSOCK with SOCK_STREAM (#12)
* starry: support AF_VSOCK Stream mode
Signed-off-by: Weikang Guo <guoweikang@kylinos.cn>
* vsock: default disable qemu vsock device
Signed-off-by: Weikang Guo <guoweikang@kylinos.cn>
* Unified terminology using VSOCK
Signed-off-by: Weikang Guo <guoweikang@kylinos.cn>
* vsock: update arceos support vsock
Signed-off-by: Weikang Guo <guoweikang@kylinos.cn>
* vsock: add linux sockaddr_vm define
Signed-off-by: Weikang Guo <guoweikang@kylinos.cn>
* chore: cleanup
---------
Signed-off-by: Weikang Guo <guoweikang@kylinos.cn>
Co-authored-by: Weikang Guo <guoweikang@kylinos.cn>
Co-authored-by: Asakura Mizu <asakuramizu111@gmail.com>1 parent 7a2d82d commit c2cfd1d
File tree
7 files changed
+83
-14
lines changed- api/src
- syscall/net
7 files changed
+83
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
105 | 108 | | |
106 | 109 | | |
107 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
198 | 243 | | |
199 | 244 | | |
200 | 245 | | |
201 | 246 | | |
202 | 247 | | |
| 248 | + | |
203 | 249 | | |
204 | 250 | | |
205 | 251 | | |
| |||
208 | 254 | | |
209 | 255 | | |
210 | 256 | | |
| 257 | + | |
211 | 258 | | |
212 | 259 | | |
213 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
- .gitignore+2
- Makefile+2
- api/axfeat/Cargo.toml+3
- modules/axdriver/Cargo.toml+11-7
- modules/axdriver/build.rs+13-1
- modules/axdriver/src/drivers.rs+8
- modules/axdriver/src/lib.rs+15
- modules/axdriver/src/macros.rs+13
- modules/axdriver/src/prelude.rs+5
- modules/axdriver/src/structs/dyn.rs+4
- modules/axdriver/src/structs/mod.rs+6
- modules/axdriver/src/structs/static.rs+8
- modules/axdriver/src/virtio.rs+16
- modules/axnet/Cargo.toml+1
- modules/axnet/src/device/mod.rs+4
- modules/axnet/src/device/vsock.rs+231
- modules/axnet/src/lib.rs+20-1
- modules/axnet/src/socket.rs+26-1
- modules/axnet/src/state.rs+77
- modules/axnet/src/tcp.rs+2-74
- modules/axnet/src/vsock.rs+148
- modules/axnet/src/vsock/connection_manager.rs+551
- modules/axnet/src/vsock/stream.rs+383
- modules/axruntime/Cargo.toml+1
- modules/axruntime/src/lib.rs+2
- scripts/make/qemu.mk+3
0 commit comments