All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Implement vdpasim stop operation
@ 2022-05-20 17:23 Eugenio Pérez
  2022-05-20 17:23 ` [PATCH 1/4] vdpa: Add " Eugenio Pérez
                   ` (3 more replies)
  0 siblings, 4 replies; 30+ messages in thread
From: Eugenio Pérez @ 2022-05-20 17:23 UTC (permalink / raw)
  To: virtualization, Jason Wang, kvm, Michael S. Tsirkin, netdev,
	linux-kernel
  Cc: Stefano Garzarella, Longpeng, Zhu Lingshan, martinh, hanand,
	Si-Wei Liu, dinang, Eli Cohen, lvivier, pabloc, gautam.dawar,
	Xie Yongji, habetsm.xilinx, Christophe JAILLET, tanuj.kamde,
	eperezma, Wu Zongyong, martinpo, lulu, ecree.xilinx,
	Parav Pandit, Dan Carpenter, Zhang Min

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



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2022-05-24  7:52 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 17:23 [PATCH 0/4] Implement vdpasim stop operation Eugenio Pérez
2022-05-20 17:23 ` [PATCH 1/4] vdpa: Add " Eugenio Pérez
2022-05-21 10:13   ` Si-Wei Liu
2022-05-21 10:13     ` Si-Wei Liu
2022-05-23 19:20     ` Eugenio Perez Martin
2022-05-23 23:54       ` Si-Wei Liu
2022-05-23 23:54         ` Si-Wei Liu
2022-05-24  0:01         ` Si-Wei Liu
2022-05-24  0:01           ` Si-Wei Liu
2022-05-24  2:45           ` Jason Wang
2022-05-24  2:45             ` Jason Wang
2022-05-24  7:38           ` Eugenio Perez Martin
2022-05-24  7:09       ` Stefano Garzarella
2022-05-24  7:09         ` Stefano Garzarella
2022-05-24  7:42         ` Eugenio Perez Martin
2022-05-24  7:51           ` Stefano Garzarella
2022-05-24  7:51             ` Stefano Garzarella
2022-05-20 17:23 ` [PATCH 2/4] vhost-vdpa: introduce STOP backend feature bit Eugenio Pérez
2022-05-21 10:24   ` Si-Wei Liu
2022-05-21 10:24     ` Si-Wei Liu
2022-05-23  9:57     ` Eugenio Perez Martin
2022-05-20 17:23 ` [PATCH 3/4] vhost-vdpa: uAPI to stop the device Eugenio Pérez
2022-05-21  5:20   ` kernel test robot
2022-05-21  5:20     ` kernel test robot
2022-05-21  8:36   ` Martin Habets
2022-05-23  8:11     ` Eugenio Perez Martin
2022-05-20 17:23 ` [PATCH 4/4] vdpa_sim: Implement stop vdpa op Eugenio Pérez
2022-05-23  8:27   ` Stefano Garzarella
2022-05-23  8:27     ` Stefano Garzarella
2022-05-23 19:07     ` Eugenio Perez Martin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.