kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [v2 0/5] plumb kvm/vfio to allow getting kvm from vfio_group
@ 2016-10-29 20:05 Jike Song
  2016-10-29 20:05 ` [v2 1/5] vfio: Rearrange functions to get vfio_group from dev Jike Song
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Jike Song @ 2016-10-29 20:05 UTC (permalink / raw)
  To: pbonzini, alex.williamson, guangrong.xiao
  Cc: kwankhede, cjia, kevin.tian, jike.song, kvm

So far KVM and VFIO are mostly transparent to each other.
However, there are users who would rely on them both. For
example, KVMGT relies on VFIO to mediate device operations,
and it also relies on KVM for features such as guest page
tracking. To do that, it needs to know which KVM instance a
vfio_group is attached to.

There is already a kvm_vfio device serving for similar
purpose, this patchset extend it to allow external usrs like
KVMGT to get KVM instance from the vfio_group.


I picked one of Kirti's patchset from:

	https://lkml.org/lkml/2016/10/26/1119

for the function to get the vfio_group from a given device.

Changes v2:
	As Paolo suggested, drop the type and get/put ops from
	vfio, assuming that the data will always be kvm.


Jike Song (4):
  vfio: export functions to get vfio_group from device and put it
  KVM: move kvm_{get|put}_kvm to kvm_host.h
  vfio: implement APIs to set/put kvm to/from vfio group
  KVM: set/clear kvm to/from vfio group during add/delete

Kirti Wankhede (1):
  vfio: Rearrange functions to get vfio_group from dev

 drivers/vfio/vfio.c      | 57 +++++++++++++++++++++++++++++++++++++++++-------
 include/linux/kvm_host.h | 13 +++++++++--
 include/linux/vfio.h     |  7 ++++++
 virt/kvm/kvm_main.c      | 16 ++------------
 virt/kvm/vfio.c          | 33 ++++++++++++++++++++++++++++
 5 files changed, 102 insertions(+), 24 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2016-10-31  2:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 20:05 [v2 0/5] plumb kvm/vfio to allow getting kvm from vfio_group Jike Song
2016-10-29 20:05 ` [v2 1/5] vfio: Rearrange functions to get vfio_group from dev Jike Song
2016-10-29 20:05 ` [v2 2/5] vfio: export functions to get vfio_group from device and put it Jike Song
2016-10-29 20:05 ` [v2 3/5] KVM: move kvm_{get|put}_kvm to kvm_host.h Jike Song
2016-10-30  8:53   ` Paolo Bonzini
2016-10-31  1:40     ` Jike Song
2016-10-29 20:05 ` [v2 4/5] vfio: implement APIs to set/put kvm to/from vfio group Jike Song
2016-10-29 22:15   ` kbuild test robot
2016-10-30  8:52   ` Paolo Bonzini
2016-10-31  2:12     ` Jike Song
2016-10-29 20:05 ` [v2 5/5] KVM: set/clear kvm to/from vfio group during add/delete Jike Song

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).