kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Clarify the functions of each version of VFIO
       [not found] <tencent_64D724EC138B1F2238BD5AB4@qq.com>
@ 2022-07-19 14:36 ` Alex Williamson
  0 siblings, 0 replies; only message in thread
From: Alex Williamson @ 2022-07-19 14:36 UTC (permalink / raw)
  To: 陈能; +Cc: cohuck, kvm, Owen.Yan, 程文, Terry

On Tue, 19 Jul 2022 15:45:17 +0800
"陈能" <chenneng@tsingmicro.com> wrote:

> Hi Maintainers,
> &nbsp; &nbsp;&nbsp;We try to develop a user space driver based on
> VFIO, but we don't know the version of the kernel on host machine.
> Maybe it's a latest kernel(5.x) or an older kernel(3.x). However the
> kernel supports VFIO from version 3.6.And VFIO of the 5.10 kernel
> version has about 1000 lines of code more than VFIO of the 3.6 kernel
> version.we don't know the functional difference between VFIO of each
> version. For example, a driver based on the latest VFIO, can I run it
> on the older VFIO? Besides,&nbsp;Can you help provide the function
> list/release note of each version of VFIO? Thanks a lot.

You can certainly look at the commit log of the documented uAPI:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/include/uapi/linux/vfio.h

In general the uAPI is backwards compatible, there's essentially a base
set of features along with capabilities and extensions that can be
discovered.  You can look at other userspace drivers like QEMU or DPDK
which also don't specifically rely on knowing the underlying kernel
version, they make use of features and capabilities as they're
available.  Thanks,

Alex


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-19 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <tencent_64D724EC138B1F2238BD5AB4@qq.com>
2022-07-19 14:36 ` Clarify the functions of each version of VFIO Alex Williamson

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