[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220520172325.980884-1-eperezma@redhat.com>
Date: Fri, 20 May 2022 19:23:21 +0200
From: Eugenio Pérez <eperezma@...hat.com>
To: virtualization@...ts.linux-foundation.org,
Jason Wang <jasowang@...hat.com>, kvm@...r.kernel.org,
"Michael S. Tsirkin" <mst@...hat.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Stefano Garzarella <sgarzare@...hat.com>,
Longpeng <longpeng2@...wei.com>,
Zhu Lingshan <lingshan.zhu@...el.com>, martinh@...inx.com,
hanand@...inx.com, Si-Wei Liu <si-wei.liu@...cle.com>,
dinang@...inx.com, Eli Cohen <elic@...dia.com>, lvivier@...hat.com,
pabloc@...inx.com, gautam.dawar@....com,
Xie Yongji <xieyongji@...edance.com>, habetsm.xilinx@...il.com,
Christophe JAILLET <christophe.jaillet@...adoo.fr>,
tanuj.kamde@....com, eperezma@...hat.com,
Wu Zongyong <wuzongyong@...ux.alibaba.com>,
martinpo@...inx.com, lulu@...hat.com, ecree.xilinx@...il.com,
Parav Pandit <parav@...dia.com>,
Dan Carpenter <dan.carpenter@...cle.com>,
Zhang Min <zhang.min9@....com.cn>
Subject: [PATCH 0/4] Implement vdpasim stop operation
Implement stop operation for vdpa_sim devices, so vhost-vdpa will offer
that backend feature and userspace can effectively stop the device.
This is a must before get virtqueue indexes (base) for live migration,
since the device could modify them after userland gets them. There are
individual ways to perform that action for some devices
(VHOST_NET_SET_BACKEND, VHOST_VSOCK_SET_RUNNING, ...) but there was no
way to perform it for any vhost device (and, in particular, vhost-vdpa).
Comments are welcome.
Eugenio Pérez (4):
vdpa: Add stop operation
vhost-vdpa: introduce STOP backend feature bit
vhost-vdpa: uAPI to stop the device
vdpa_sim: Implement stop vdpa op
drivers/vdpa/vdpa_sim/vdpa_sim.c | 21 +++++++++++++++++++
drivers/vdpa/vdpa_sim/vdpa_sim.h | 1 +
drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 3 +++
drivers/vhost/vdpa.c | 31 ++++++++++++++++++++++++++++
include/linux/vdpa.h | 6 ++++++
include/uapi/linux/vhost.h | 3 +++
include/uapi/linux/vhost_types.h | 2 ++
7 files changed, 67 insertions(+)
--
2.27.0
Powered by blists - more mailing lists