Cargo Features

Vhost has no features set by default.

[dependencies]
vhost = { version = "0.11.0", features = ["vhost-vsock", "vhost-kern", "vhost-vdpa", "vhost-net", "vhost-user", "vhost-user-backend", "xen", "postcopy", "test-utils"] }
vhost-vsock

Affects vhost::vsock, vhost_kern::vsock

vhost-kern vhost-net? vhost-vdpa?

Affects vhost::vhost_kern

vhost-vdpa = vhost-kern

Affects vhost::vdpa, vhost_kern::vdpa

vhost-net = vhost-kern

Affects vhost::net, vhost_kern::net

vhost-user vhost-user-backend? vhost-user-frontend?

Affects vhost::vhost_user

vhost-user-frontend vhost-user-backend = vhost-user
xen

Enables xen of vm-memory

Affects backend::VhostUserMemoryRegionInfo.xen_mmap_flags, backend::VhostUserMemoryRegionInfo.xen_mmap_data, message::VhostUserMemoryRegion.xen_mmap_flags, message::VhostUserMemoryRegion.xen_mmap_data

postcopy

Affects backend_req_handler::VhostUserBackendReqHandler.postcopy_advice, backend_req_handler::VhostUserBackendReqHandler.postcopy_listen, backend_req_handler::VhostUserBackendReqHandler.postcopy_end, backend_req_handler::VhostUserBackendReqHandlerMut.postcopy_advice, backend_req_handler::VhostUserBackendReqHandlerMut.postcopy_listen, backend_req_handler::VhostUserBackendReqHandlerMut.postcopy_end, frontend::VhostUserFrontend.postcopy_advise, frontend::VhostUserFrontend.postcopy_listen, frontend::VhostUserFrontend.postcopy_end

test-utils