Re: [v3 0/5] plumb kvm/vfio to allow getting kvm from vfio_group

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/31/2016 03:24 PM, Xiao Guangrong wrote:
> On 10/31/2016 03:24 PM, Jike Song wrote:
>> On 10/31/2016 03:06 PM, Xiao Guangrong wrote:
>>>
>>>
>>> On 10/31/2016 02:35 PM, Jike Song wrote:
>>>> 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
>>>
>>> Do not understand. vfio does not use it indeed, however, the
>>> user of udata, i.e, KVMGT, should put kvm after vfio_group_get_kvm().
>>
>> Yes, but I guess KVMGT can has symbol-level dependency on KVM :-)
> 
> Anyway, kvm_put_kvm() should be exported?

Yes, current KVM already exported it, so no need to change :-)

--
Thanks,
Jike
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux