[PATCH v10 5/5] Update default CPU location in qemu QOM tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Lin Yang <lin.a.yang@xxxxxxxxx>

---
 src/qemu/qemu_monitor_json.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
index 811db233c4..8c7f088775 100644
--- a/src/qemu/qemu_monitor_json.c
+++ b/src/qemu/qemu_monitor_json.c
@@ -48,7 +48,7 @@
 
 VIR_LOG_INIT("qemu.qemu_monitor_json");
 
-#define QOM_CPU_PATH  "/machine/unattached/device[0]"
+#define QOM_CPU_PATH  "/machine/cpu[0]"
 
 #define LINE_ENDING "\r\n"
 
@@ -1679,7 +1679,7 @@ int qemuMonitorJSONSystemReset(qemuMonitor *mon)
  * A s390 cpu entry could look like this
  *  { "arch": "s390",
  *    "cpu-index": 0,
- *    "qom-path": "/machine/unattached/device[0]",
+ *    "qom-path": "/machine/cpu[0]",
  *    "thread_id": 3081,
  *    "cpu-state": "operating" }
  *
@@ -1711,7 +1711,7 @@ qemuMonitorJSONExtractCPUS390Info(virJSONValue *jsoncpu,
  * [{ "arch": "x86",
  *    "current": true,
  *    "CPU": 0,
- *    "qom_path": "/machine/unattached/device[0]",
+ *    "qom_path": "/machine/cpu[0]",
  *    "pc": -2130415978,
  *    "halted": true,
  *    "thread_id": 2631237,
@@ -1726,7 +1726,7 @@ qemuMonitorJSONExtractCPUS390Info(virJSONValue *jsoncpu,
  *       "thread-id": 0,
  *       "socket-id": 0
  *    },
- *    "qom-path": "/machine/unattached/device[0]",
+ *    "qom-path": "/machine/cpu[0]",
  *    "thread-id": 2631237,
  *    ...},
  *    {...}
@@ -1737,7 +1737,7 @@ qemuMonitorJSONExtractCPUS390Info(virJSONValue *jsoncpu,
  *    "props": {
  *       "core-id": 0
  *    },
- *    "qom-path": "/machine/unattached/device[0]",
+ *    "qom-path": "/machine/cpu[0]",
  *    "thread-id": 1237,
  *    "cpu-state": "operating",
  *    ...},
@@ -7853,7 +7853,7 @@ qemuMonitorQueryHotpluggableCpusFree(struct qemuMonitorQueryHotpluggableCpusEntr
  *      "socket-id": 0
  *    },
  *    "vcpus-count": 1,
- *    "qom-path": "/machine/unattached/device[0]",
+ *    "qom-path": "/machine/cpu[0]",
  *    "type": "qemu64-x86_64-cpu"
  *  },
  *  {...}
-- 
2.17.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux