vhost: Disallow interrupt mode config if driver opts out interrupt support 44/7844/3
authorSteven <sluong@cisco.com>
Sat, 29 Jul 2017 15:56:08 +0000 (08:56 -0700)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 31 Aug 2017 20:48:25 +0000 (20:48 +0000)
commit49a04b9545de22beaef5218d3985896d6ba37982
tree70a6ae5a630820f47254ba70a36286771774b45c
parentda78c85c5504f0a429d1feb57b6789254f60177d
vhost: Disallow interrupt mode config if driver opts out interrupt support

According to the spec, supporting interrupt mode from the driver is optional,
not a must. When interrupt mode is configured on the interface, we should
check to make sure that the driver didn't opt out for the kickfd support and
reject the configuration if it did.

Change-Id: I7d3dbaddde65458e1a6a802754a3768ae8685a0e
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/devices/virtio/vhost-user.c
src/vnet/devices/virtio/vhost-user.h