mirror of https://gitee.com/openkylin/qemu.git
docs/s390x: fix vfio-ap device_del description
device_del requires an id and not a sysfsfile.
Fixes: bac03ec72f
("s390x/vfio-ap: document hot plug/unplug of vfio-ap device")
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20200617160604.5593-1-borntraeger@de.ibm.com>
[CH: add missing '$']
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
f030532f2a
commit
458e056257
|
@ -606,10 +606,11 @@ action.
|
||||||
|
|
||||||
To hot plug a vfio-ap device, use the QEMU ``device_add`` command::
|
To hot plug a vfio-ap device, use the QEMU ``device_add`` command::
|
||||||
|
|
||||||
(qemu) device_add vfio-ap,sysfsdev="$path-to-mdev"
|
(qemu) device_add vfio-ap,sysfsdev="$path-to-mdev",id="$id"
|
||||||
|
|
||||||
Where the ``$path-to-mdev`` value specifies the absolute path to a mediated
|
Where the ``$path-to-mdev`` value specifies the absolute path to a mediated
|
||||||
device to which AP resources to be used by the guest have been assigned.
|
device to which AP resources to be used by the guest have been assigned.
|
||||||
|
``$id`` is the name value for the optional id parameter.
|
||||||
|
|
||||||
Note that on Linux guests, the AP devices will be created in the
|
Note that on Linux guests, the AP devices will be created in the
|
||||||
``/sys/bus/ap/devices`` directory when the AP bus subsequently performs its periodic
|
``/sys/bus/ap/devices`` directory when the AP bus subsequently performs its periodic
|
||||||
|
@ -632,10 +633,9 @@ or a prior hot plug action.
|
||||||
|
|
||||||
To hot unplug a vfio-ap device, use the QEMU ``device_del`` command::
|
To hot unplug a vfio-ap device, use the QEMU ``device_del`` command::
|
||||||
|
|
||||||
(qemu) device_del vfio-ap,sysfsdev="$path-to-mdev"
|
(qemu) device_del "$id"
|
||||||
|
|
||||||
Where ``$path-to-mdev`` is the same as the path specified when the vfio-ap
|
Where ``$id`` is the same id that was specified at device creation.
|
||||||
device was attached to the virtual machine's ap-bus.
|
|
||||||
|
|
||||||
On a Linux guest, the AP devices will be removed from the ``/sys/bus/ap/devices``
|
On a Linux guest, the AP devices will be removed from the ``/sys/bus/ap/devices``
|
||||||
directory on the guest when the AP bus subsequently performs its periodic scan,
|
directory on the guest when the AP bus subsequently performs its periodic scan,
|
||||||
|
|
Loading…
Reference in New Issue