All of lore.kernel.org
 help / color / mirror / Atom feed
* [v3 0/5] plumb kvm/vfio to allow getting kvm from vfio_group
@ 2016-10-31  6:35 Jike Song
  2016-10-31  6:35 ` [v3 1/5] vfio: Rearrange functions to get vfio_group from dev Jike Song
                   ` (6 more replies)
  0 siblings, 7 replies; 34+ messages in thread
From: Jike Song @ 2016-10-31  6:35 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 v3:
	- don't touch kvm_put_kvm, vfio won't need it
	- fix a race condition
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_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 |  5 ++++-
 include/linux/vfio.h     |  7 ++++++
 virt/kvm/kvm_main.c      |  6 -----
 virt/kvm/vfio.c          | 33 ++++++++++++++++++++++++++++
 5 files changed, 93 insertions(+), 15 deletions(-)

-- 
1.9.1


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

end of thread, other threads:[~2016-11-14 15:52 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-31  6:35 [v3 0/5] plumb kvm/vfio to allow getting kvm from vfio_group Jike Song
2016-10-31  6:35 ` [v3 1/5] vfio: Rearrange functions to get vfio_group from dev Jike Song
2016-10-31  6:35 ` [v3 2/5] vfio: export functions to get vfio_group from device and put it Jike Song
2016-10-31  6:35 ` [v3 3/5] KVM: move kvm_get_kvm to kvm_host.h Jike Song
2016-10-31  8:33   ` Paolo Bonzini
2016-10-31  6:35 ` [v3 4/5] vfio: implement APIs to set/put kvm to/from vfio group Jike Song
2016-11-07 18:04   ` Alex Williamson
2016-11-07 18:10     ` Paolo Bonzini
2016-11-07 18:28       ` Alex Williamson
2016-11-07 20:45         ` Paolo Bonzini
2016-11-09 12:49           ` Jike Song
2016-11-09 13:06             ` Xiao Guangrong
2016-11-09 13:31               ` Paolo Bonzini
2016-11-09 14:00                 ` Xiao Guangrong
2016-11-09 14:28                   ` Paolo Bonzini
2016-11-10  4:13                   ` Jike Song
2016-11-09 17:53             ` Alex Williamson
2016-11-10  4:10               ` Jike Song
2016-11-10  6:04                 ` Jike Song
2016-11-10 15:37                   ` Alex Williamson
2016-11-11  7:29                     ` Jike Song
2016-11-14 10:19               ` Jike Song
2016-11-14 15:52                 ` Alex Williamson
2016-11-09  2:28         ` Jike Song
2016-11-09  2:52           ` Xiao Guangrong
2016-11-09  3:07             ` Jike Song
2016-10-31  6:35 ` [v3 5/5] KVM: set/clear kvm to/from vfio group during add/delete Jike Song
2016-10-31  8:33   ` Paolo Bonzini
2016-10-31  7:06 ` [v3 0/5] plumb kvm/vfio to allow getting kvm from vfio_group Xiao Guangrong
2016-10-31  7:24   ` Jike Song
2016-10-31  7:24     ` Xiao Guangrong
2016-10-31  7:30       ` Jike Song
2016-10-31  7:35         ` Xiao Guangrong
2016-11-02  1:06 ` Jike Song

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.