]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/qom/cpu.h
cpus-common: move CPU list management to common code
[mirror_qemu.git] / include / qom / cpu.h
index 4aa9e61c5d38446d244f602f6e7119ba49af1b74..ea3233ff5b0d9463e8e8ce74dd7d6141bd1ad371 100644 (file)
@@ -544,6 +544,18 @@ static inline int cpu_asidx_from_attrs(CPUState *cpu, MemTxAttrs attrs)
 }
 #endif
 
+/**
+ * cpu_list_add:
+ * @cpu: The CPU to be added to the list of CPUs.
+ */
+void cpu_list_add(CPUState *cpu);
+
+/**
+ * cpu_list_remove:
+ * @cpu: The CPU to be removed from the list of CPUs.
+ */
+void cpu_list_remove(CPUState *cpu);
+
 /**
  * cpu_reset:
  * @cpu: The CPU whose state is to be reset.