summary refs log tree commit diff stats
path: root/plugins/plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/plugin.h')
-rw-r--r--plugins/plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/plugin.h b/plugins/plugin.h
index 90f3f324ab..00b3509f70 100644
--- a/plugins/plugin.h
+++ b/plugins/plugin.h
@@ -44,6 +44,8 @@ struct qemu_plugin_state {
      * the code cache is flushed.
      */
     struct qht dyn_cb_arr_ht;
+    /* How many vcpus were started */
+    int num_vcpus;
 };
 
 
@@ -97,4 +99,6 @@ void plugin_register_vcpu_mem_cb(GArray **arr,
 
 void exec_inline_op(struct qemu_plugin_dyn_cb *cb);
 
+int plugin_num_vcpus(void);
+
 #endif /* PLUGIN_H */