Skip to contentSkip to conversation

docs/s390x: fix vfio-ap device_del description

PATCH In review Christian Borntraeger 3 participants 5 messages Jun 17, 2020 – Jun 18, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/s390x: fix vfio-ap device_del description

device_del requires an id and not a sysfsfile.

---
 docs/system/s390x/vfio-ap.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
docs/system/s390x/vfio-ap.rst +4 -4
index 3cd84179a2df..f441df69edde 100644
@@ -606,10 +606,11 @@ action.
 
 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
 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
 ``/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::
 
-    (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
-device was attached to the virtual machine's ap-bus.
+Where ``$id`` is the same id that was specified at device creation.
 
 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,
Signature · 1 line
2.25.4
#1 lore raw

wrong Person on to, I wanted to send this to Tony.

Quoted 38 lines · Christian Borntraeger

device_del requires an id and not a sysfsfile.

---
 docs/system/s390x/vfio-ap.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
docs/system/s390x/vfio-ap.rst +4 -4
index 3cd84179a2df..f441df69edde 100644
@@ -606,10 +606,11 @@ action.
 
 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
 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
 ``/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::
 
-    (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
-device was attached to the virtual machine's ap-bus.
+Where ``$id`` is the same id that was specified at device creation.
 
 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,
#2 lore raw
In reply to Christian Borntraeger
Quoted 1 line · On Wed, 17 Jun 2020 18:06:04 +0200 Christian Borntraeger…

device_del requires an id and not a sysfsfile.

Fixes bac03ec72f1b ("s390x/vfio-ap: document hot plug/unplug of vfio-ap device")
Quoted 6 lines
---
 docs/system/s390x/vfio-ap.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Looks correct to me, will pick when I get an ack/r-b.

Reviewed-by on v1 1/1
#3 lore raw
In reply to Christian Borntraeger
Quoted 25 lines · Christian Borntraeger

device_del requires an id and not a sysfsfile.

---
 docs/system/s390x/vfio-ap.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
docs/system/s390x/vfio-ap.rst +2 -1
index 3cd84179a2df..f441df69edde 100644
@@ -606,10 +606,11 @@ action.
 
 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
 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
 ``/sys/bus/ap/devices`` directory when the AP bus subsequently performs its periodic

docs/system/s390x/vfio-ap.rst or a prior hot plug action. · line 636

Quoted 5 lines
docs/system/s390x/vfio-ap.rst +1 -1
@@ -632,10 +633,9 @@ or a prior hot plug action.
 
 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"

Do you want to use $id instead of id here?

docs/system/s390x/vfio-ap.rst or a prior hot plug action. · line 638

Quoted 4 lines
docs/system/s390x/vfio-ap.rst +1 -2
-Where ``$path-to-mdev`` is the same as the path specified when the vfio-ap
-device was attached to the virtual machine's ap-bus.
+Where ``$id`` is the same id that was specified at device creation.
            ^--- ... since you use $id here.

docs/system/s390x/vfio-ap.rst or a prior hot plug action. · line 641

Quoted 2 lines
docs/system/s390x/vfio-ap.rst +0 -0
 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,

With the 1 $ question fixed:

#4 lore raw
Quoted 40 lines · On Wed, 17 Jun 2020 19:17:54 +0200 Thomas Huth <[email protected]> wrote:
Quoted 25 lines · Christian Borntraeger

device_del requires an id and not a sysfsfile.

---
 docs/system/s390x/vfio-ap.rst | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
docs/system/s390x/vfio-ap.rst +2 -1
index 3cd84179a2df..f441df69edde 100644
@@ -606,10 +606,11 @@ action.
 
 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
 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
 ``/sys/bus/ap/devices`` directory when the AP bus subsequently performs its periodic

docs/system/s390x/vfio-ap.rst or a prior hot plug action. · line 636

Quoted 5 lines
docs/system/s390x/vfio-ap.rst +1 -1
@@ -632,10 +633,9 @@ or a prior hot plug action.
 
 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"  

Do you want to use $id instead of id here?

docs/system/s390x/vfio-ap.rst or a prior hot plug action. · line 638

Quoted 4 lines
docs/system/s390x/vfio-ap.rst +1 -2
-Where ``$path-to-mdev`` is the same as the path specified when the vfio-ap
-device was attached to the virtual machine's ap-bus.
+Where ``$id`` is the same id that was specified at device creation.  
            ^--- ... since you use $id here.
Quoted 6 lines

docs/system/s390x/vfio-ap.rst or a prior hot plug action. · line 641

Quoted 2 lines
docs/system/s390x/vfio-ap.rst +0 -0
 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,  

With the 1 $ question fixed:

Indeed, no reason to skimp on the $s :)

Fixed up and pushed to s390-next, thanks.