rust-vmm / rust-vmm-ci

Apache License 2.0
18 stars 33 forks source link

Expose vhost vdpa device to container #64

Open alxiord opened 3 years ago

alxiord commented 3 years ago

To unblock https://github.com/rust-vmm/vhost/pull/33, several conditions must be met:

  1. CI kernel version should be >= 5.7 (currently 5.4)
  2. vhost vdpa kernel modules should be loaded (see https://github.com/rust-vmm/vhost/pull/33#issuecomment-843225243)
  3. the /dev/vhost-vdpa-0 device should be exposed to the container (see https://github.com/rust-vmm/vhost/pull/33#issuecomment-806000344)

1 and 2 can be fixed by updating the AMIs for the CI runners. This issue tracks step 3, for which we need to update the Buildkite pipeline so that the steps that involve running the unit tests can access the device. The device needs to be passed in the Buildkite yaml as devices: [ "/dev/vhost-vdpa-0" ] (see documentation).