rust-vmm / vhost

Apache License 2.0
130 stars 69 forks source link

vhost_user: ignore unknown features from backend #243

Closed alyssais closed 3 months ago

alyssais commented 3 months ago

Summary of the PR

virtiofsd 1.11.0 added support for VHOST_USER_PROTOCOL_F_DEVICE_STATE. Upgrading virtiofsd meant that the latest released version of Cloud Hypervisor (39.0) was no longer able to communicate with it, because rather than just ignoring the unsupported feature, it got an unrecoverable "invalid message" error. This demonstrates that it's better for frontends to just ignore offers of unsupported features. If the backend requires some feature, it'll get a chance to know that when we send VHOST_USER_SET_PROTOCOL_FEATURES anyway.

Requirements

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