vdpa: make sure set_features is invoked for legacy
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jul 2020 14:51:55 +0000 (10:51 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 15:08:40 +0000 (11:08 -0400)
commit452639a64ad880792652b6d20cc5c8dd4ecf27d9
tree0823155f820d8a15fcafc98864df67e695bcc437
parent03bea764bf61c9f9918324bda7362616024386e8
vdpa: make sure set_features is invoked for legacy

Some legacy guests just assume features are 0 after reset.
We detect that config space is accessed before features are
set and set features to 0 automatically.
Note: some legacy guests might not even access config space, if this is
reported in the field we might need to catch a kick to handle these.

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