]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita358429eb93272d969288b98009e00d16812bf8f
treeab3dca9a87fff91f118f5d868c7ab545a7e6d727
parent7025517c9095246f38791ac9dc3aed5046ed2b01
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