rust-vmm / vhost-device

'vhost-user' device backends workspace
Apache License 2.0
68 stars 48 forks source link

vsock/README: simplify the examples using memfd #672

Closed stefano-garzarella closed 5 months ago

stefano-garzarella commented 5 months ago

Summary of the PR

In the examples we used hugepages, which could be useful in special cases where the performance matters, but this requires specific configuration and permissions to allocate them.

Let's simplify the examples by using memfd, removing --mem-prealloc, and the superfluous -m 512M.

Requirements

Before submitting your PR, please make sure you addressed the following requirements: