qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Yan Zhao <yan.y.zhao@intel.com>
To: intel-gvt-dev@lists.freedesktop.org
Cc: arei.gonglei@huawei.com, aik@ozlabs.ru,
	Zhengxiao.zx@alibaba-inc.com, shuangtai.tst@alibaba-inc.com,
	qemu-devel@nongnu.org, eauger@redhat.com, yi.l.liu@intel.com,
	ziye.yang@intel.com, mlevitsk@redhat.com, pasic@linux.ibm.com,
	felipe@nutanix.com, changpeng.liu@intel.com, Ken.Xue@amd.com,
	jonathan.davies@nutanix.com, shaopeng.he@intel.com,
	kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	libvir-list@redhat.com, alex.williamson@redhat.com,
	eskultet@redhat.com, dgilbert@redhat.com, cohuck@redhat.com,
	kevin.tian@intel.com, zhenyuw@linux.intel.com,
	zhi.a.wang@intel.com, cjia@nvidia.com, kwankhede@nvidia.com,
	Yan Zhao <yan.y.zhao@intel.com>
Subject: [Qemu-devel] [PATCH 0/2] introduction of version attribute for VFIO live migration
Date: Fri, 19 Apr 2019 04:32:58 -0400	[thread overview]
Message-ID: <20190419083258.19580-1-yan.y.zhao@intel.com> (raw)

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

WARNING: multiple messages have this Message-ID (diff)
From: Yan Zhao <yan.y.zhao@intel.com>
To: intel-gvt-dev@lists.freedesktop.org
Cc: cjia@nvidia.com, kvm@vger.kernel.org, aik@ozlabs.ru,
	Zhengxiao.zx@alibaba-inc.com, shuangtai.tst@alibaba-inc.com,
	qemu-devel@nongnu.org, kwankhede@nvidia.com, eauger@redhat.com,
	yi.l.liu@intel.com, eskultet@redhat.com, ziye.yang@intel.com,
	mlevitsk@redhat.com, pasic@linux.ibm.com, libvir-list@redhat.com,
	arei.gonglei@huawei.com, felipe@nutanix.com, Ken.Xue@amd.com,
	kevin.tian@intel.com, Yan Zhao <yan.y.zhao@intel.com>,
	dgilbert@redhat.com, zhenyuw@linux.intel.com,
	alex.williamson@redhat.com, changpeng.liu@intel.com,
	cohuck@redhat.com, linux-kernel@vger.kernel.org,
	zhi.a.wang@intel.com, jonathan.davies@nutanix.com,
	shaopeng.he@intel.com
Subject: [Qemu-devel] [PATCH 0/2] introduction of version attribute for VFIO live migration
Date: Fri, 19 Apr 2019 04:32:58 -0400	[thread overview]
Message-ID: <20190419083258.19580-1-yan.y.zhao@intel.com> (raw)
Message-ID: <20190419083258.cRet5pmbTPuC2_uXQzkqtM3V1pzSePef8Kqjud0tMNk@z> (raw)

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



             reply	other threads:[~2019-04-19  8:39 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-19  8:32 Yan Zhao [this message]
2019-04-19  8:32 ` [Qemu-devel] [PATCH 0/2] introduction of version attribute for VFIO live migration Yan Zhao
2019-04-19  8:35 ` [Qemu-devel] [PATCH 1/2] vfio/mdev: add version field as mandatory attribute for mdev device Yan Zhao
2019-04-19  8:35   ` Yan Zhao
2019-04-22 14:39   ` Alex Williamson
2019-04-22 14:39     ` Alex Williamson
2019-04-23  1:01     ` Yan Zhao
2019-04-23  1:01       ` Yan Zhao
2019-04-23  1:21       ` Alex Williamson
2019-04-23  1:21         ` Alex Williamson
2019-04-23  5:41         ` Yan Zhao
2019-04-23  5:41           ` Yan Zhao
2019-04-23  9:45           ` Cornelia Huck
2019-04-23  9:45             ` Cornelia Huck
2019-04-23 10:24           ` Daniel P. Berrangé
2019-04-23 10:24             ` Daniel P. Berrangé
2019-04-24  3:33             ` Yan Zhao
2019-04-24  3:33               ` Yan Zhao
2019-04-23 15:02           ` Alex Williamson
2019-04-23 15:02             ` Alex Williamson
2019-04-24  3:39             ` Yan Zhao
2019-04-24  3:39               ` Yan Zhao
2019-04-24 14:14               ` Alex Williamson
2019-04-24 14:14                 ` Alex Williamson
2019-04-26  1:44                 ` Yan Zhao
2019-04-26  1:44                   ` Yan Zhao
2019-04-23  9:59   ` Cornelia Huck
2019-04-23  9:59     ` Cornelia Huck
2019-04-24  3:10     ` Yan Zhao
2019-04-24  3:10       ` Yan Zhao
2019-04-24  7:56       ` Cornelia Huck
2019-04-24  7:56         ` Cornelia Huck
2019-04-24  8:15         ` Yan Zhao
2019-04-24  8:15           ` Yan Zhao
2019-04-30 15:29           ` Cornelia Huck
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   ` Daniel P. Berrangé
2019-04-23 10:39     ` Daniel P. Berrangé
2019-04-23 12:35     ` Alex Williamson
2019-04-23 12:35       ` Alex Williamson
2019-04-23 13:44       ` Daniel P. Berrangé
2019-04-23 13:44         ` Daniel P. Berrangé
2019-04-23 14:48         ` Alex Williamson
2019-04-23 14:48           ` Alex Williamson
2019-04-23 14:57           ` Daniel P. Berrangé
2019-04-23 14:57             ` Daniel P. Berrangé
2019-04-24  4:13     ` Neo Jia
2019-04-24  4:13       ` Neo Jia
2019-04-24  9:10     ` Christophe de Dinechin
2019-04-24  9:10       ` Christophe de Dinechin
2019-04-26  2:01       ` Yan Zhao
2019-04-26  2:01         ` Yan Zhao
2019-04-19  8:35 ` [Qemu-devel] [PATCH 2/2] drm/i915/gvt: export mdev device version to sysfs for Intel vGPU Yan Zhao
2019-04-19  8:35   ` Yan Zhao
2019-04-22  8:37   ` Zhenyu Wang
2019-04-22  8:37     ` Zhenyu Wang
2019-04-23  0:33     ` Yan Zhao
2019-04-23  0:33       ` Yan Zhao
2019-04-23 11:39   ` Cornelia Huck
2019-04-23 11:39     ` Cornelia Huck
2019-04-24  2:33     ` Yan Zhao
2019-04-24  2:33       ` Yan Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190419083258.19580-1-yan.y.zhao@intel.com \
    --to=yan.y.zhao@intel.com \
    --cc=Ken.Xue@amd.com \
    --cc=Zhengxiao.zx@alibaba-inc.com \
    --cc=aik@ozlabs.ru \
    --cc=alex.williamson@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=changpeng.liu@intel.com \
    --cc=cjia@nvidia.com \
    --cc=cohuck@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eauger@redhat.com \
    --cc=eskultet@redhat.com \
    --cc=felipe@nutanix.com \
    --cc=intel-gvt-dev@lists.freedesktop.org \
    --cc=jonathan.davies@nutanix.com \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=kwankhede@nvidia.com \
    --cc=libvir-list@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlevitsk@redhat.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=shaopeng.he@intel.com \
    --cc=shuangtai.tst@alibaba-inc.com \
    --cc=yi.l.liu@intel.com \
    --cc=zhenyuw@linux.intel.com \
    --cc=zhi.a.wang@intel.com \
    --cc=ziye.yang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).