Update rust-vmm dependencies
Update rust-vmm dependencies, necessitating these changes:
-
VhostUserDaemon::start()now takes a mutable reference to theListenerinstead of ownership, - The exit event
EventFdhas been replaced by anEventConsumerandEventNotifierpair. We used to storekill_evtas anEventFdto write to inVhostUserFsBackend::drop(), but this should actually be already done byVhostUserHandler::drop()(in vhost-user-backend) ever since vhost commit f6b7e49e[1], so I think it’s time to drop it.VhostUserHandlerdirectly owns ourVhostUserFsBackendwithout further wrapping, so both are dropped at exactly the same time.
Note that this keeps vm-memory on 0.17.1 instead of 0.17.2 or 0.18.0: To
update to 0.18.0, we’d need some further changes to other rust-vmm
crates, and updating to 0.17.2 creates some conflicts in rust-vmm crates
because its re-export of GuestAddressSpace isn’t very useful (its
memory type is the new GuestMemory, but it would need to be the old
GuestMemory aka now GuestMemoryBackend to be useful). I’ll send a
PR for the 0.17.2 issue to vm-memory, but for now just cap the version
at 0.17.1.
[1] https://github.com/rust-vmm/vhost/commit/f6b7e49e3f9ea (“handler: send exit event when destructing”)