]> xenbits.xensource.com Git - libvirt.git/commitdiff
test: Update qemumonitorjsontest to add halted output
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Thu, 12 Apr 2018 15:14:30 +0000 (11:14 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 17 Apr 2018 16:45:26 +0000 (12:45 -0400)
Print out the halted property in the test output.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-ppc64-hotplug-4.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-basic-pluggable.data
tests/qemumonitorjsondata/qemumonitorjson-cpuinfo-x86-node-full.data
tests/qemumonitorjsontest.c

index 7c9088928bcac080bd7fa12f84185475158bd8df..5f6b8656c990401dbfa806d9fdbf87ce4987a2e6 100644 (file)
     alias='vcpu0'
     qom_path='/machine/peripheral/vcpu0'
     topology: core='8' vcpus='8'
+    halted
 [vcpu libvirt-id='9']
     online=yes
     hotpluggable=yes
     thread-id='23171'
     query-cpus-id='17'
+    halted
 [vcpu libvirt-id='10']
     online=yes
     hotpluggable=yes
     thread-id='23172'
     query-cpus-id='18'
+    halted
 [vcpu libvirt-id='11']
     online=yes
     hotpluggable=yes
     thread-id='23173'
     query-cpus-id='19'
+    halted
 [vcpu libvirt-id='12']
     online=yes
     hotpluggable=yes
     thread-id='23174'
     query-cpus-id='20'
+    halted
 [vcpu libvirt-id='13']
     online=yes
     hotpluggable=yes
     thread-id='23175'
     query-cpus-id='21'
+    halted
 [vcpu libvirt-id='14']
     online=yes
     hotpluggable=yes
     thread-id='23176'
     query-cpus-id='22'
+    halted
 [vcpu libvirt-id='15']
     online=yes
     hotpluggable=yes
     thread-id='23177'
     query-cpus-id='23'
+    halted
 [vcpu libvirt-id='16']
     online=yes
     hotpluggable=yes
index 93cefb9dd24569f71bc9b0bead1984caaf286450..9a1788d94740aeb08cc32faa1d922aeb93f1f865 100644 (file)
@@ -7,6 +7,7 @@
     type='qemu64-x86_64-cpu'
     qom_path='/machine/unattached/device[0]'
     topology: socket='0' core='0' thread='0' vcpus='1'
+    halted
 [vcpu libvirt-id='1']
     online=yes
     hotpluggable=no
@@ -16,6 +17,7 @@
     type='qemu64-x86_64-cpu'
     qom_path='/machine/unattached/device[2]'
     topology: socket='0' core='0' thread='1' vcpus='1'
+    halted
 [vcpu libvirt-id='2']
     online=yes
     hotpluggable=no
@@ -25,6 +27,7 @@
     type='qemu64-x86_64-cpu'
     qom_path='/machine/unattached/device[3]'
     topology: socket='0' core='1' thread='0' vcpus='1'
+    halted
 [vcpu libvirt-id='3']
     online=yes
     hotpluggable=no
@@ -34,6 +37,7 @@
     type='qemu64-x86_64-cpu'
     qom_path='/machine/unattached/device[4]'
     topology: socket='0' core='1' thread='1' vcpus='1'
+    halted
 [vcpu libvirt-id='4']
     online=yes
     hotpluggable=no
@@ -43,6 +47,7 @@
     type='qemu64-x86_64-cpu'
     qom_path='/machine/unattached/device[5]'
     topology: socket='1' core='0' thread='0' vcpus='1'
+    halted
 [vcpu libvirt-id='5']
     online=no
     hotpluggable=yes
index 070ea084e7e86031bfcdd4ddb5a135630c0f45da..0f7dbf134950f3492f2969d3aaa44d026f324a07 100644 (file)
@@ -7,6 +7,7 @@
     type='Broadwell-x86_64-cpu'
     qom_path='/machine/unattached/device[0]'
     topology: socket='0' core='0' thread='0' node='0' vcpus='1'
+    halted
 [vcpu libvirt-id='1']
     online=yes
     hotpluggable=no
@@ -16,6 +17,7 @@
     type='Broadwell-x86_64-cpu'
     qom_path='/machine/unattached/device[2]'
     topology: socket='0' core='0' thread='1' node='1' vcpus='1'
+    halted
 [vcpu libvirt-id='2']
     online=no
     hotpluggable=yes
index 44a7a2d444db476e983d04317b69cd1a390325a6..22d90e71f3a3ec933f8e456319739ec489a1de7e 100644 (file)
@@ -2585,6 +2585,9 @@ testQemuMonitorCPUInfoFormat(qemuMonitorCPUInfoPtr vcpus,
             virBufferAddLit(&buf, "\n");
         }
 
+        if (vcpu->halted)
+            virBufferAddLit(&buf, "halted\n");
+
         virBufferAdjustIndent(&buf, -4);
     }