]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: allow drivers to validate features
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Mar 2017 16:06:20 +0000 (19:06 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Apr 2017 13:38:59 +0000 (16:38 +0300)
commit404123c2db798027e852480ed9c4accef9f1d9e6
tree07f8ecc47704cfbc7759e19d0121acf201f7e6ba
parent2e123b44a3c19de75f40ee0081d6d4fc04adfdc7
virtio: allow drivers to validate features

Some drivers can't support all features in all configurations.  At the
moment we blindly set FEATURES_OK and later FAILED.  Support this better
by adding a callback drivers can use to do some early checks.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio.c
include/linux/virtio.h