Skip to content

Commit 0dbd05c

Browse files
n-ramacciottiluigix25
authored andcommitted
github/workflows: enable vhost support in QEMU build and install netcat
In preparation to vsock support, QEMU needs to be configured with vhost support enabled. Without the flag `--enable-vhost-kernel`, QEMU would fail to launch with error: `qemu-system-x86_64: -device vhost-vsock-device,guest-cid=3: 'vhost-vsock-device' is not a valid device model name` This flag is disabled by default because of `--without-default-features` Add the flag to enable support for vsock in QEMU and install netcat Signed-off-by: Nicola Ramacciotti <niko.ramak@gmail.com>
1 parent 77c94d8 commit 0dbd05c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/qemu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
--enable-kvm \
9999
--enable-slirp \
100100
--enable-strip \
101+
--enable-vhost-kernel \
101102
--static \
102103
--disable-docs \
103104
--disable-user \
@@ -117,6 +118,9 @@ jobs:
117118
- name: Install TPM 2.0 Reference Implementation build dependencies
118119
run: sudo apt install -y build-essential cmake pkg-config
119120

121+
- name: Install netcat
122+
run: sudo apt install -y ncat
123+
120124
- name: Build test
121125
run: make bin/coconut-test-qemu.igvm
122126

0 commit comments

Comments
 (0)