Why? vhost will call get_user_pages() or copy_*_user() which ought toI was speaking generally, not specifically to Ira's architecture. What
do the right thing.
I mean is that vbus was designed to work without assuming that the
memory is pageable. There are environments in which the host is not
capable of mapping hvas/*page, but the memctx->copy_to/copy_from
paradigm could still work (think rdma, for instance).
a) what about non-ethernets?As an aside: a bigger issue is that, iiuc, Ira wants more than a singleWhy? Instantiate as many vhost-nets as needed.
ethernet channel in his design (multiple ethernets, consoles, etc). A
vhost solution in this environment is incomplete.
b) what do you suppose this protocol to aggregate the connections would
look like? (hint: this is what a vbus-connector does).
c) how do you manage the configuration, especially on a per-board basis?
Actually I have patches queued to allow vbus to be managed via ioctls as
well, per your feedback (and it solves the permissions/lifetime
critisims in alacrityvm-v0.1).
The only difference is the implementation. vhost-netAlso,
leaves much more to userspace, that's the main difference.
*) vhost is virtio-net specific, whereas vbus is a more generic device
model where thing like virtio-net or venet ride on top.
*) vhost is only designed to work with environments that look very
similar to a KVM guest (slot/hva translatable). vbus can bridge various
environments by abstracting the key components (such as memory access).
*) vhost requires an active userspace management daemon, whereas vbus
can be driven by transient components, like scripts (ala udev)