[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220927074810.28627-1-jasowang@redhat.com>
Date: Tue, 27 Sep 2022 15:48:07 +0800
From: Jason Wang <jasowang@...hat.com>
To: mst@...hat.com, jasowang@...hat.com
Cc: elic@...dia.com, si-wei.liu@...cle.com, parav@...dia.com,
wuzongyong@...ux.alibaba.com,
virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, eperezma@...hat.com,
lingshan.zhu@...el.com, gdawar@...inx.com, lulu@...hat.com,
xieyongji@...edance.com, sgarzare@...hat.com
Subject: [PATCH V3 0/3] vdpa: device feature provisioning
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
Powered by blists - more mailing lists