Commit aff7aeea authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Paolo Bonzini

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

- Use standard title markup;
- adjust lists;
- mark code blocks as such.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent e777a5bd
...@@ -13,3 +13,4 @@ Devices ...@@ -13,3 +13,4 @@ Devices
mpic mpic
s390_flic s390_flic
vcpu vcpu
vfio
.. SPDX-License-Identifier: GPL-2.0
===================
VFIO virtual device VFIO virtual device
=================== ===================
Device types supported: Device types supported:
KVM_DEV_TYPE_VFIO
- KVM_DEV_TYPE_VFIO
Only one VFIO instance may be created per VM. The created device Only one VFIO instance may be created per VM. The created device
tracks VFIO groups in use by the VM and features of those groups tracks VFIO groups in use by the VM and features of those groups
...@@ -23,14 +27,15 @@ KVM_DEV_VFIO_GROUP attributes: ...@@ -23,14 +27,15 @@ KVM_DEV_VFIO_GROUP attributes:
for the VFIO group. for the VFIO group.
KVM_DEV_VFIO_GROUP_SET_SPAPR_TCE: attaches a guest visible TCE table KVM_DEV_VFIO_GROUP_SET_SPAPR_TCE: attaches a guest visible TCE table
allocated by sPAPR KVM. allocated by sPAPR KVM.
kvm_device_attr.addr points to a struct: kvm_device_attr.addr points to a struct::
struct kvm_vfio_spapr_tce {
__s32 groupfd;
__s32 tablefd;
};
struct kvm_vfio_spapr_tce { where:
__s32 groupfd;
__s32 tablefd;
};
where - @groupfd is a file descriptor for a VFIO group;
@groupfd is a file descriptor for a VFIO group; - @tablefd is a file descriptor for a TCE table allocated via
@tablefd is a file descriptor for a TCE table allocated via KVM_CREATE_SPAPR_TCE.
KVM_CREATE_SPAPR_TCE.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment