Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

docs: kvm: convert devices/vfio.txt to ReST

- Use standard title markup;
- adjust lists;
- mark code blocks as such.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Mauro Carvalho Chehab and committed by
Paolo Bonzini
aff7aeea e777a5bd

+16 -10
+1
Documentation/virt/kvm/devices/index.rst
··· 13 13 mpic 14 14 s390_flic 15 15 vcpu 16 + vfio
+15 -10
Documentation/virt/kvm/devices/vfio.txt Documentation/virt/kvm/devices/vfio.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + =================== 1 4 VFIO virtual device 2 5 =================== 3 6 4 7 Device types supported: 5 - KVM_DEV_TYPE_VFIO 8 + 9 + - KVM_DEV_TYPE_VFIO 6 10 7 11 Only one VFIO instance may be created per VM. The created device 8 12 tracks VFIO groups in use by the VM and features of those groups ··· 27 23 for the VFIO group. 28 24 KVM_DEV_VFIO_GROUP_SET_SPAPR_TCE: attaches a guest visible TCE table 29 25 allocated by sPAPR KVM. 30 - kvm_device_attr.addr points to a struct: 26 + kvm_device_attr.addr points to a struct:: 31 27 32 - struct kvm_vfio_spapr_tce { 33 - __s32 groupfd; 34 - __s32 tablefd; 35 - }; 28 + struct kvm_vfio_spapr_tce { 29 + __s32 groupfd; 30 + __s32 tablefd; 31 + }; 36 32 37 - where 38 - @groupfd is a file descriptor for a VFIO group; 39 - @tablefd is a file descriptor for a TCE table allocated via 40 - KVM_CREATE_SPAPR_TCE. 33 + where: 34 + 35 + - @groupfd is a file descriptor for a VFIO group; 36 + - @tablefd is a file descriptor for a TCE table allocated via 37 + KVM_CREATE_SPAPR_TCE.