shawnanastasio / libkvmchan

An implementation of the Xen vchan API on KVM
Other
10 stars 4 forks source link

Investigate creation of a userspace ivshmem driver #7

Closed shawnanastasio closed 5 years ago

shawnanastasio commented 5 years ago

Currently, a kernel-mode driver on guests is used to expose the ivshmem device to userspace via the UIO framework.

Using Linux's userspace facilities for directly interfacing with PCI devices (VFIO?), it should be possible to accomplish this without the use of a kernel driver. This would not only reduce attack surface, but decrease the maintenance costs of keeping up with internal kernel APIs.

Critically, a userspace driver must be able to directly map the PCI device's memory without incurring extra overhead on each copy.

shawnanastasio commented 5 years ago

VFIO support added in 70910786.