Commit Graph

2 Commits

Author SHA1 Message Date
Timos Ampelikiotis
c7397703d4 vhost-device-console: use worker's epoll for input events
Eliminate the use of select and 'nix' package. This is done by
registering the input events (stdin or tcplistener) onto the main
worker's epoll.

Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
2024-11-09 16:41:28 +00:00
Timos Ampelikiotis
079d9024be vhost-device-console: Add initial implementation
The device was tested with:
1) Upstream QEMU's vhost-user-device

    qemu-system-x86_64  \
            <normal QEMU options> \
            -machine <machine options>,memory-backend=mem0 \
            -object memory-backend-memfd,id=mem0,size=<Guest RAM size> \ # size == -m size
            -chardev socket,id=con0,path=/tmp/console.sock0 \
            -device vhost-user-device-pci,chardev=con0,virtio-id=3,num_vqs=4,config_size=12 \
            ...

2) A new QEMU vhost-user-console device which can be found in the following repo:
- https://github.com/virtualopensystems/qemu/tree/vhu-console-rfc

For more information, please check the README.md file under
staging/vhost-device-console/.

Co-authored-by: dorindabassey <53014273+dorindabassey@users.noreply.github.com>
Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
2024-08-29 17:11:30 +02:00