vdpa: device feature provisioning
authorJason Wang <jasowang@redhat.com>
Tue, 27 Sep 2022 07:48:08 +0000 (15:48 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 7 Oct 2022 13:32:40 +0000 (09:32 -0400)
commit90fea5a800c3dd80fb8ad9a02929bcef5fde42b8
treeab3dca9a87fff91f118f5d868c7ab545a7e6d727
parent4959aebba8c06992abafa09d1e80965e0825af54
vdpa: device feature provisioning

This patch allows the device features to be provisioned through
netlink. A new attribute is introduced to allow the userspace to pass
a 64bit device features during device adding.

This provides several advantages:

- Allow to provision a subset of the features to ease the cross vendor
  live migration.
- Better debug-ability for vDPA framework and parent.

Reviewed-by: Eli Cohen <elic@nvidia.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220927074810.28627-2-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa.c
include/linux/vdpa.h
include/uapi/linux/vdpa.h