linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration
@ 2020-04-13  5:52 Yan Zhao
  2020-04-13  5:54 ` [PATCH v5 1/4] vfio/mdev: add migration_version attribute for mdev (under mdev_type node) Yan Zhao
                   ` (4 more replies)
  0 siblings, 5 replies; 40+ messages in thread
From: Yan Zhao @ 2020-04-13  5:52 UTC (permalink / raw)
  To: intel-gvt-dev
  Cc: libvir-list, kvm, linux-doc, linux-kernel, aik, Zhengxiao.zx,
	shuangtai.tst, qemu-devel, eauger, yi.l.liu, xin.zeng, ziye.yang,
	mlevitsk, pasic, felipe, changpeng.liu, Ken.Xue, jonathan.davies,
	shaopeng.he, alex.williamson, eskultet, dgilbert, cohuck,
	kevin.tian, zhenyuw, zhi.a.wang, cjia, kwankhede, berrange,
	dinechin, corbet, Yan Zhao

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

This migration_version attribute is used to check migration compatibility
between two mdev devices.

Currently, it has two locations:
(1) under mdev_type node,
    which can be used even before device creation, but only for mdev
    devices of the same mdev type.
(2) under mdev device node,
    which can only be used after the mdev devices are created, but the src
    and target mdev devices are not necessarily be of the same mdev type
(The second location is newly added in v5, in order to keep consistent
with the migration_version node for migratable pass-though devices)

Patch 1 defines migration_version attribute for the first location in
Documentation/vfio-mediated-device.txt

Patch 2 uses GVT as an example for patch 1 to show how to expose
migration_version attribute and check migration compatibility in vendor
driver.

Patch 3 defines migration_version attribute for the second location in
Documentation/vfio-mediated-device.txt

Patch 4 uses GVT as an example for patch 3 to show how to expose
migration_version attribute and check migration compatibility in vendor
driver.

(The previous "Reviewed-by" and "Acked-by" for patch 1 and patch 2 are
kept in v5, as there are only small changes to commit messages of the two
patches.)

v5:
added patch 2 and 4 for mdev device part of migration_version attribute.

v4:
1. fixed indentation/spell errors, reworded several error messages
2. added a missing memory free for error handling in patch 2

v3:
1. renamed version to migration_version
2. let errno to be freely defined by vendor driver
3. let checking mdev_type be prerequisite of migration compatibility check
4. reworded most part of patch 1
5. print detailed error log in patch 2 and generate migration_version
string at init time

v2:
1. renamed patched 1
2. made definition of device version string completely private to vendor
driver
3. reverted changes to sample mdev drivers
4. described intent and usage of version attribute more clearly.


Yan Zhao (4):
  vfio/mdev: add migration_version attribute for mdev (under mdev_type
    node)
  drm/i915/gvt: export migration_version to mdev sysfs (under mdev_type
    node)
  vfio/mdev: add migration_version attribute for mdev (under mdev device
    node)
  drm/i915/gvt: export migration_version to mdev sysfs (under mdev
    device node)

 .../driver-api/vfio-mediated-device.rst       | 183 ++++++++++++++++++
 drivers/gpu/drm/i915/gvt/Makefile             |   2 +-
 drivers/gpu/drm/i915/gvt/gvt.c                |  39 ++++
 drivers/gpu/drm/i915/gvt/gvt.h                |   7 +
 drivers/gpu/drm/i915/gvt/kvmgt.c              |  55 ++++++
 drivers/gpu/drm/i915/gvt/migration_version.c  | 170 ++++++++++++++++
 drivers/gpu/drm/i915/gvt/vgpu.c               |  13 +-
 7 files changed, 466 insertions(+), 3 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/gvt/migration_version.c

-- 
2.17.1


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

end of thread, other threads:[~2020-06-22  2:38 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13  5:52 [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration Yan Zhao
2020-04-13  5:54 ` [PATCH v5 1/4] vfio/mdev: add migration_version attribute for mdev (under mdev_type node) Yan Zhao
2020-04-15  7:28   ` Erik Skultety
2020-04-15  8:58     ` Yan Zhao
2020-04-13  5:54 ` [PATCH v5 2/4] drm/i915/gvt: export migration_version to mdev sysfs " Yan Zhao
2020-04-13  5:55 ` [PATCH v5 3/4] vfio/mdev: add migration_version attribute for mdev (under mdev device node) Yan Zhao
2020-04-15  7:42   ` Erik Skultety
2020-04-15  9:02     ` Yan Zhao
2020-04-13  5:55 ` [PATCH v5 4/4] drm/i915/gvt: export migration_version to mdev sysfs " Yan Zhao
2020-04-17  8:44 ` [PATCH v5 0/4] introduction of migration_version attribute for VFIO live migration Cornelia Huck
2020-04-17  9:52   ` Yan Zhao
2020-04-17 11:24     ` Cornelia Huck
2020-04-20  1:24       ` Yan Zhao
2020-04-20 22:56         ` Alex Williamson
2020-04-21  2:37           ` Yan Zhao
2020-04-21 12:08             ` Tian, Kevin
2020-04-22  7:36               ` Yan Zhao
2020-04-24 19:10                 ` Dr. David Alan Gilbert
2020-04-26  1:36                   ` Yan Zhao
2020-04-27 15:37                     ` Dr. David Alan Gilbert
2020-04-28  0:54                       ` Yan Zhao
2020-04-28 14:14                         ` Dr. David Alan Gilbert
2020-04-29  7:26                           ` Yan Zhao
2020-04-29  8:22                             ` Dr. David Alan Gilbert
2020-04-29  9:35                               ` Yan Zhao
2020-04-29  9:48                                 ` Dr. David Alan Gilbert
2020-04-30  0:39                                   ` Yan Zhao
2020-06-02 22:55                                     ` Alex Williamson
2020-06-03  3:19                                       ` Yan Zhao
2020-06-03  3:55                                         ` Alex Williamson
2020-06-03  5:24                                           ` Yan Zhao
2020-06-03 16:26                                             ` Alex Williamson
2020-06-05 10:22                                               ` Dr. David Alan Gilbert
2020-06-05 14:31                                                 ` Alex Williamson
2020-06-05 14:39                                                   ` Dr. David Alan Gilbert
2020-06-10  0:37                                                     ` Yan Zhao
2020-06-19 22:40                                                       ` Alex Williamson
2020-06-22  2:28                                                         ` Yan Zhao
2020-04-29 14:13                                 ` Eric Blake
2020-04-30  0:45                                   ` 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).