You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Introduce `BackendType::Uds` for VM communication via Unix sockets
- Refactor address generation logic with `generate_vm_sock_addrs`
- Add CLI parameter `--vm-sock` to specify UDS path
- Update documentation and error handling
Signed-off-by: Hang SU <[email protected]>
Suggested-by: Xuewei Niu <[email protected]>
--uds-path=/tmp/vm.sock --backend=uds # for uds backend
87
104
```
88
105
>Note: In case the backend is "nested" there is no need to provide
89
-
"--socket-count" and "--tcp-port" parameters.
106
+
"--socket-count", "--tcp-port" and "--uds-path" parameters.
90
107
91
108
The QEMU invocation needs to create a chardev socket the device can
92
109
use to communicate as well as share the guests memory over a memfd.
@@ -119,9 +136,26 @@ host# qemu-system
119
136
...
120
137
```
121
138
139
+
#### Test the device with UML
140
+
Start the daemon as above section, then run the following cmdline for
141
+
Kernel Mode Linux [`virtio console`](https://github.com/torvalds/linux/blob/848e076317446f9c663771ddec142d7c2eb4cb43/include/uapi/linux/virtio_ids.h#L34):
142
+
```text
143
+
host# linux root=/dev/ubda1 rw ubd0=$YOUR-PATH/kata-ubuntu-latest.image \
>Note: `stty -icanon -echo` is used to force the tty layer to disable buffering and send / receive each character individually. After closing the connection please run `stty echo` so character are printed back on the local terminal console.
0 commit comments