]> git.proxmox.com Git - qemu.git/blobdiff - include/qom/cpu.h
Introduce async_run_on_cpu()
[qemu.git] / include / qom / cpu.h
index 147c25694952f7c5bdd662af5885be364374686e..dfd81a1d2f65158dc2eb710c6c75ed8cad0a30ee 100644 (file)
@@ -378,6 +378,16 @@ bool cpu_is_stopped(CPUState *cpu);
  */
 void run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
 
+/**
+ * async_run_on_cpu:
+ * @cpu: The vCPU to run on.
+ * @func: The function to be executed.
+ * @data: Data to pass to the function.
+ *
+ * Schedules the function @func for execution on the vCPU @cpu asynchronously.
+ */
+void async_run_on_cpu(CPUState *cpu, void (*func)(void *data), void *data);
+
 /**
  * qemu_for_each_cpu:
  * @func: The function to be executed.