cloud-hypervisor/vhost_rs/src
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
..
vhost_kern build, misc: Bump vmm-sys-util dependency 2019-08-02 07:42:20 -07:00
vhost_user vhost_rs: fix VhostUserConfig payload management 2019-11-07 10:36:30 +00:00
backend.rs build, misc: Bump vmm-sys-util dependency 2019-08-02 07:42:20 -07:00
lib.rs vhost_rs: Copy vhost crate from jiangliu/v1 2019-06-27 21:46:00 +02:00
vsock.rs vhost_rs: Copy vhost crate from jiangliu/v1 2019-06-27 21:46:00 +02:00