docs: kvm: vfio: Suggest KVM_DEV_VFIO_GROUP_ADD vs VFIO_GROUP_GET_DEVICE_FD ordering
authorYi Liu <yi.l.liu@intel.com>
Fri, 21 Apr 2023 05:36:11 +0000 (22:36 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 21 Apr 2023 19:48:44 +0000 (13:48 -0600)
commit705b004ee377b789e39ae237519bab714297ac83
treed7df1c36cf3acf12258fffab7cc2dbb685b3a92f
parent38e4614c27210e63aafad1bb2e4a427515e46d71
docs: kvm: vfio: Suggest KVM_DEV_VFIO_GROUP_ADD vs VFIO_GROUP_GET_DEVICE_FD ordering

as some vfio_device's open_device op requires kvm pointer and kvm pointer
set is part of GROUP_ADD.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230421053611.55839-1-yi.l.liu@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Documentation/virt/kvm/devices/vfio.rst