Skip to contentSkip to conversation

Update deprecation notes for QMP 'cpu-add' & HMP 'cpu_add'

PATCH Applied Kashyap Chamarthy 4 participants 12 messages Dec 13, 2018 – Dec 14, 2018

lore
Share & tools
lore
#0 lore raw

cover Update deprecation notes for QMP 'cpu-add' & HMP 'cpu_add'

Kashyap Chamarthy (3):
qemu-deprecated.texi: Rename the HMP section
Update that HMP 'cpu_add' is deprecated in 4.0
Mention that QMP 'cpu-add' will be deprecated

 qemu-deprecated.texi | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
Signature · 1 line
2.17.2
#1 lore raw

PATCH 1/3 qemu-deprecated.texi: Rename the HMP section

So that it is consistent with the naming of QMP's

---
 qemu-deprecated.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-deprecated.texi +1 -1
index 72b8191d60..46bec688db 100644
@@ -114,7 +114,7 @@ The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command.
 The ``arch'' output member of the ``query-cpus-fast'' command is
 replaced by the ``target'' output member.
 
-@section System emulator human monitor commands
+@section Human Monitor Protocol (HMP) commands
 
 @subsection The hub_id parameter of 'hostfwd_add' / 'hostfwd_remove' (since 3.1)
 
Signature · 1 line
2.17.2
Reviewed-by on v1 1/3
#2 lore raw

Re: [Qemu-devel] [PATCH 1/3] qemu-deprecated.texi: Rename the HMP section

Quoted 12 lines · Kashyap Chamarthy

So that it is consistent with the naming of QMP's

---
 qemu-deprecated.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-deprecated.texi +0 -0
index 72b8191d60..46bec688db 100644

qemu-deprecated.texi The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command. · line 117

Quoted 5 lines
qemu-deprecated.texi +1 -1
@@ -114,7 +114,7 @@ The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command.
 The ``arch'' output member of the ``query-cpus-fast'' command is
 replaced by the ``target'' output member.
 
-@section System emulator human monitor commands
+@section Human Monitor Protocol (HMP) commands
#3 lore raw

PATCH 2/3 Update that HMP 'cpu_add' is deprecated in 4.0

In reply to Kashyap Chamarthy

Also fix the wrong spelling of it: s/cpu-add/cpu_add/

---
 qemu-deprecated.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-deprecated.texi +2 -2
index 46bec688db..79743ab8bd 100644
@@ -121,9 +121,9 @@ replaced by the ``target'' output member.
 The @option{[hub_id name]} parameter tuple of the 'hostfwd_add' and
 'hostfwd_remove' HMP commands has been replaced by @option{netdev_id}.
 
-@subsection cpu-add (since 3.1)
+@subsection cpu_add (since 4.0)
 
-Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu_add''.  See
 documentation of ``query-hotpluggable-cpus'' for additional details.
 
 @section System emulator devices
Signature · 1 line
2.17.2
Reviewed-by on v1 2/3
#4 lore raw

Re: [Qemu-devel] [PATCH 2/3] Update that HMP 'cpu_add' is deprecated in 4.0

Quoted 3 lines · On Thu, 13 Dec 2018 13:42:23 +0100 Kashyap Chamarthy <[email protected]>…

Also fix the wrong spelling of it: s/cpu-add/cpu_add/

Quoted 20 lines
---
 qemu-deprecated.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-deprecated.texi +2 -2
index 46bec688db..79743ab8bd 100644
@@ -121,9 +121,9 @@ replaced by the ``target'' output member.
 The @option{[hub_id name]} parameter tuple of the 'hostfwd_add' and
 'hostfwd_remove' HMP commands has been replaced by @option{netdev_id}.
 
-@subsection cpu-add (since 3.1)
+@subsection cpu_add (since 4.0)
 
-Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu_add''.  See
 documentation of ``query-hotpluggable-cpus'' for additional details.
 
 @section System emulator devices
#5 lore raw

Re: [Qemu-devel] [PATCH 2/3] Update that HMP 'cpu_add' is deprecated in 4.0

In reply to Kashyap Chamarthy
Quoted 12 lines · Kashyap Chamarthy

Also fix the wrong spelling of it: s/cpu-add/cpu_add/

---
 qemu-deprecated.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-deprecated.texi +0 -0
index 46bec688db..79743ab8bd 100644

qemu-deprecated.texi replaced by the ``target'' output member. · line 126

Quoted 8 lines
qemu-deprecated.texi +2 -2
@@ -121,9 +121,9 @@ replaced by the ``target'' output member.
 The @option{[hub_id name]} parameter tuple of the 'hostfwd_add' and
 'hostfwd_remove' HMP commands has been replaced by @option{netdev_id}.
 
-@subsection cpu-add (since 3.1)
+@subsection cpu_add (since 4.0)
 
-Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu_add''.  See

AFAIK the spelling was right. It's "cpu-add" ... only device_add is using the underscore. Welcome to the wonderful world of QEMU inconsistencies...

Thomas

#6 lore raw

Re: [Qemu-devel] [PATCH 2/3] Update that HMP 'cpu_add' is deprecated in 4.0

Quoted 19 lines · Thomas Huth
Quoted 18 lines · Kashyap Chamarthy

Also fix the wrong spelling of it: s/cpu-add/cpu_add/

---
 qemu-deprecated.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-deprecated.texi +1 -1
index 46bec688db..79743ab8bd 100644
@@ -121,9 +121,9 @@ replaced by the ``target'' output member.
 The @option{[hub_id name]} parameter tuple of the 'hostfwd_add' and
 'hostfwd_remove' HMP commands has been replaced by @option{netdev_id}.
 
-@subsection cpu-add (since 3.1)
+@subsection cpu_add (since 4.0)
 
Quoted 6 lines

qemu-deprecated.texi replaced by the ``target'' output member. · line 126

Quoted 2 lines
qemu-deprecated.texi +1 -1
-Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu_add''.  See

AFAIK the spelling was right. It's "cpu-add" ... only device_add is using the underscore. Welcome to the wonderful world of QEMU inconsistencies...

Thanks for noting. I have fixed it while committing.

Signature · 1 line
Eduardo
#7 lore raw

Re: [Qemu-devel] [PATCH 2/3] Update that HMP 'cpu_add' is deprecated in 4.0

In reply to Thomas Huth
Quoted 19 lines · Thomas Huth
Quoted 18 lines · Kashyap Chamarthy

Also fix the wrong spelling of it: s/cpu-add/cpu_add/

---
 qemu-deprecated.texi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
qemu-deprecated.texi +1 -1
index 46bec688db..79743ab8bd 100644
@@ -121,9 +121,9 @@ replaced by the ``target'' output member.
 The @option{[hub_id name]} parameter tuple of the 'hostfwd_add' and
 'hostfwd_remove' HMP commands has been replaced by @option{netdev_id}.
 
-@subsection cpu-add (since 3.1)
+@subsection cpu_add (since 4.0)
 
Quoted 6 lines

qemu-deprecated.texi replaced by the ``target'' output member. · line 126

Quoted 2 lines
qemu-deprecated.texi +1 -1
-Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu_add''.  See

AFAIK the spelling was right. It's "cpu-add" ... only device_add is using the underscore. Welcome to the wonderful world of QEMU inconsistencies...

Huh...I thought I checked the HMP spelling; but indeed you're right! Confusingly enough, the QMP spelling _doesn't_ have underscore:

    [...]
    ETEXI
    
        {
            .name       = "cpu-add",
            .args_type  = "id:i",
            .params     = "id",
            .help       = "add cpu (deprecated, use device_add instead)",
            .cmd        = hmp_cpu_add,
        },
    
    STEXI
    @item cpu-add @var{id}
    @findex cpu-add
    Add CPU with id @var{id}.  This command is deprecated, please
    +use @code{device_add} instead. For details, refer to
    'docs/cpu-hotplug.rst'.
    [...]

Thanks for the eagle eyes, Thomas.

Signature · 1 line
/kashyap
#8 lore raw

PATCH 3/3 Mention that QMP 'cpu-add' will be deprecated

In reply to Kashyap Chamarthy
---
 qemu-deprecated.texi | 6 ++++++
 1 file changed, 6 insertions(+)
qemu-deprecated.texi +6 -0
index 79743ab8bd..2505e1f47f 100644
@@ -114,6 +114,12 @@ The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command.
 The ``arch'' output member of the ``query-cpus-fast'' command is
 replaced by the ``target'' output member.
 
+@subsection cpu-add (since 4.0)
+
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+documentation of ``query-hotpluggable-cpus'' for additional
+details.
+
 @section Human Monitor Protocol (HMP) commands
 
 @subsection The hub_id parameter of 'hostfwd_add' / 'hostfwd_remove' (since 3.1)
Signature · 1 line
2.17.2
Reviewed-by on v1 3/3
#9 lore raw

Re: [Qemu-devel] [PATCH 3/3] Mention that QMP 'cpu-add' will be deprecated

Quoted 1 line · On Thu, 13 Dec 2018 13:42:24 +0100 Kashyap Chamarthy <[email protected]>…
Quoted 21 lines
---
 qemu-deprecated.texi | 6 ++++++
 1 file changed, 6 insertions(+)
qemu-deprecated.texi +6 -0
index 79743ab8bd..2505e1f47f 100644
@@ -114,6 +114,12 @@ The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command.
 The ``arch'' output member of the ``query-cpus-fast'' command is
 replaced by the ``target'' output member.
 
+@subsection cpu-add (since 4.0)
+
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+documentation of ``query-hotpluggable-cpus'' for additional
+details.
+
 @section Human Monitor Protocol (HMP) commands
 
 @subsection The hub_id parameter of 'hostfwd_add' / 'hostfwd_remove' (since 3.1)
Reviewed-by on v1 3/3
#10 lore raw

Re: [Qemu-devel] [PATCH 3/3] Mention that QMP 'cpu-add' will be deprecated

In reply to Kashyap Chamarthy
Quoted 13 lines · Kashyap Chamarthy
---
 qemu-deprecated.texi | 6 ++++++
 1 file changed, 6 insertions(+)
qemu-deprecated.texi +0 -0
index 79743ab8bd..2505e1f47f 100644
@@ -114,6 +114,12 @@ The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command.
 The ``arch'' output member of the ``query-cpus-fast'' command is
 replaced by the ``target'' output member.

qemu-deprecated.texi The ``query-cpus'' command is replaced by the ``query-cpus-fast'' command. · line 125

Quoted 10 lines
qemu-deprecated.texi +6 -0
 
+@subsection cpu-add (since 4.0)
+
+Use ``device_add'' for hotplugging vCPUs instead of ``cpu-add''.  See
+documentation of ``query-hotpluggable-cpus'' for additional
+details.
+
 @section Human Monitor Protocol (HMP) commands
 
 @subsection The hub_id parameter of 'hostfwd_add' / 'hostfwd_remove' (since 3.1)