cloud-hypervisor/vhost_user_backend
Sergio Lopez 85e936d4bd vhost_rs: fix VhostUserConfig payload management
The VhostUserConfig carries a message with a payload, the contents of
which depend on the kind of device being emulated.

With this change, we calculate the offset of the payload within the
message, check its size corresponds to the expected one, and pass it
to the backend as a reference to a slice adjusted to the payload
dimensions.

The backend will be responsible of validating the payload, as it's the
one aware of its expected contents.

Signed-off-by: Sergio Lopez <slp@redhat.com>
2019-11-07 10:36:30 +00:00
..
src vhost_rs: fix VhostUserConfig payload management 2019-11-07 10:36:30 +00:00
Cargo.toml cargo: Update to the latest kvm-ioctls version 2019-10-31 09:30:59 +01:00