To be used on top of: [PATCH 0/4] vhost-user: protocol updates https://lists.gnu.org/archive/html/qemu-devel/2015-07/msg03842.html
v1 -> v2: - Addressed Michael S. Tsirkin's comments: - Prefer a white-list of supported features - Add a unit-test to show the problem we are trying to solve (run the unit-test before the patch and it will fail) Currently the vhost-user supported features are not evaluated. The way I see it, and please correct me, the best way to do this is to: 1. Get the backend features on vhost init. 2. Check them one by one (white-list) against all the currently supported virtio features. 3. All other code should remain the same. Marcel Apfelbaum (2): vhost-user: sync backend features tests/vhost-user: check vhost-user feature negotiation hw/virtio/vhost-user.c | 17 +++++++++++++++++ tests/vhost-user-test.c | 19 ++++++++++++++++--- 2 files changed, 33 insertions(+), 3 deletions(-) -- 2.1.0