linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] introduction of version attribute for VFIO live migration
@ 2019-04-19  8:32 Yan Zhao
  2019-04-19  8:35 ` [PATCH 1/2] vfio/mdev: add version field as mandatory attribute for mdev device Yan Zhao
  2019-04-19  8:35 ` [PATCH 2/2] drm/i915/gvt: export mdev device version to sysfs for Intel vGPU Yan Zhao
  0 siblings, 2 replies; 30+ messages in thread
From: Yan Zhao @ 2019-04-19  8:32 UTC (permalink / raw)
  To: intel-gvt-dev
  Cc: arei.gonglei, aik, Zhengxiao.zx, shuangtai.tst, qemu-devel,
	eauger, yi.l.liu, ziye.yang, mlevitsk, pasic, felipe,
	changpeng.liu, Ken.Xue, jonathan.davies, shaopeng.he, kvm,
	linux-kernel, libvir-list, alex.williamson, eskultet, dgilbert,
	cohuck, kevin.tian, zhenyuw, zhi.a.wang, cjia, kwankhede,
	Yan Zhao

This patchset introduces a version attribute under sysfs of VFIO Mediated
devices.

This version attribute is used by user space software like libvirt to
determine whether two mdev devices are compatible for live migration
before starting live migration.

Patch 1 defines version attribute as mandatory for VFIO live migration. It
means if version attribute is missing or it returns errno, the
corresponding mdev device is regarded as not supporting live migration.
samples for vfio-mdev are modified to demonstrate it.

Patch 2 uses GVT as an example to show how to expose version attribute and
check device compatibility in vendor driver.


Yan Zhao (2):
  vfio/mdev: add version field as mandatory attribute for mdev device
  drm/i915/gvt: export mdev device version to sysfs for Intel vGPU

 Documentation/vfio-mediated-device.txt    | 36 +++++++++
 drivers/gpu/drm/i915/gvt/Makefile         |  2 +-
 drivers/gpu/drm/i915/gvt/device_version.c | 94 +++++++++++++++++++++++
 drivers/gpu/drm/i915/gvt/gvt.c            | 55 +++++++++++++
 drivers/gpu/drm/i915/gvt/gvt.h            |  6 ++
 samples/vfio-mdev/mbochs.c                | 17 ++++
 samples/vfio-mdev/mdpy.c                  | 16 ++++
 samples/vfio-mdev/mtty.c                  | 16 ++++
 8 files changed, 241 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/i915/gvt/device_version.c

-- 
2.17.1


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

end of thread, other threads:[~2019-05-07  8:51 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19  8:32 [PATCH 0/2] introduction of version attribute for VFIO live migration Yan Zhao
2019-04-19  8:35 ` [PATCH 1/2] vfio/mdev: add version field as mandatory attribute for mdev device Yan Zhao
2019-04-22 14:39   ` Alex Williamson
2019-04-23  1:01     ` Yan Zhao
2019-04-23  1:21       ` Alex Williamson
2019-04-23  5:41         ` Yan Zhao
2019-04-23  9:45           ` Cornelia Huck
2019-04-23 10:24           ` [Qemu-devel] " Daniel P. Berrangé
2019-04-24  3:33             ` Yan Zhao
2019-04-23 15:02           ` Alex Williamson
     [not found]             ` <20190424033934.GD26247@joy-OptiPlex-7040>
2019-04-24 14:14               ` Alex Williamson
2019-04-26  1:44                 ` Yan Zhao
2019-04-23  9:59   ` Cornelia Huck
2019-04-24  3:10     ` Yan Zhao
2019-04-24  7:56       ` Cornelia Huck
2019-04-24  8:15         ` Yan Zhao
2019-04-30 15:29           ` Cornelia Huck
2019-05-07  5:39             ` Yan Zhao
2019-05-07  8:51               ` Cornelia Huck
2019-04-23 10:39   ` [Qemu-devel] " Daniel P. Berrangé
2019-04-23 12:35     ` Alex Williamson
2019-04-23 13:44       ` Daniel P. Berrangé
2019-04-23 14:48         ` Alex Williamson
2019-04-23 14:57           ` Daniel P. Berrangé
2019-04-24  4:13     ` Neo Jia
2019-04-24  9:10     ` Christophe de Dinechin
2019-04-19  8:35 ` [PATCH 2/2] drm/i915/gvt: export mdev device version to sysfs for Intel vGPU Yan Zhao
2019-04-22  8:37   ` Zhenyu Wang
2019-04-23 11:39   ` Cornelia Huck
2019-04-24  2:33     ` Yan Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).