lkml.org 
[lkml]   [2022]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH V3 0/3] vdpa: device feature provisioning
Date
Hi All:

Virtio features are neogiated between the device and the drivers. This
allows the mediation layer like vDPA to hide some features from the
driver to faciliate the cross vendor live migration:

vDPA on the source supports feature set X
vDPA on the destination supports feature set Y

Management can simply provision the vDPA instance with features X&Y on
both source and destination to let the vDPA can be migrate-able
between the two vDPA devies with different features support.

This series tries to allow the device features to be provisioned via
netlink to achieve this.

Changes since V2:

- remove the unnecessary and operation for the devie_features after
validating it is a subset of what device supports
- provison the features via vdpasim_create() to benefit all type of
simulators
- fix the reference leak when fail to provision feature for vp_vdpa
- add a warn when failing to provision vp_vdpa device features

Changes since V1:

- Add vdpa tool command output

Please review.

Jason Wang (3):
vdpa: device feature provisioning
vdpa_sim_net: support feature provisioning
vp_vdpa: support feature provisioning

drivers/vdpa/vdpa.c | 5 +++++
drivers/vdpa/vdpa_sim/vdpa_sim.c | 12 +++++++++++-
drivers/vdpa/vdpa_sim/vdpa_sim.h | 3 ++-
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 2 +-
drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 5 +++--
drivers/vdpa/virtio_pci/vp_vdpa.c | 22 ++++++++++++++++++++--
include/linux/vdpa.h | 1 +
include/uapi/linux/vdpa.h | 2 ++
8 files changed, 45 insertions(+), 7 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2022-09-27 09:49    [W:0.034 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site