Skip to contentSkip to conversation

plugins: bump plugin API version

RFC PATCH Applied Julian Ganz 2 participants 3 messages Dec 27, 2025 – Jan 2

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 plugins: bump plugin API version

We introduced a new function qemu_plugin_register_vcpu_discon_cb as well as some types since v5.

--

I should probably have included this in my patch series introducing the register function in question instead of noticing that the API version was not bumped with 10.2.0 after the fact.

---
 include/qemu/qemu-plugin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/qemu/qemu-plugin.h +4 -1
index 60de4fdd3f..b445c26389 100644
@@ -72,11 +72,14 @@ typedef uint64_t qemu_plugin_id_t;
  * - added qemu_plugin_write_memory_hwaddr
  * - added qemu_plugin_write_register
  * - added qemu_plugin_translate_vaddr
+ *
+ * version 6:
+ * - qemu_plugin_register_vcpu_discon_cb
  */
 
 extern QEMU_PLUGIN_EXPORT int qemu_plugin_version;
 
-#define QEMU_PLUGIN_VERSION 5
+#define QEMU_PLUGIN_VERSION 6
 
 /**
  * struct qemu_info_t - system information for plugins
Signature · 1 line
2.51.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Julian Ganz

We introduced a new function qemu_plugin_register_vcpu_discon_cb as well as some types since v5.

Quoted 30 lines

--

I should probably have included this in my patch series introducing the register function in question instead of noticing that the API version was not bumped with 10.2.0 after the fact.

---
 include/qemu/qemu-plugin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/qemu/qemu-plugin.h +4 -1
index 60de4fdd3f..b445c26389 100644
@@ -72,11 +72,14 @@ typedef uint64_t qemu_plugin_id_t;
  * - added qemu_plugin_write_memory_hwaddr
  * - added qemu_plugin_write_register
  * - added qemu_plugin_translate_vaddr
+ *
+ * version 6:
+ * - qemu_plugin_register_vcpu_discon_cb
  */
 
 extern QEMU_PLUGIN_EXPORT int qemu_plugin_version;
 
-#define QEMU_PLUGIN_VERSION 5
+#define QEMU_PLUGIN_VERSION 6
 
 /**
  * struct qemu_info_t - system information for plugins
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
Applied
#2 lore raw
In reply to Julian Ganz
Quoted 4 lines · Julian Ganz

We introduced a new function qemu_plugin_register_vcpu_discon_cb as well as some types since v5.

Queued to plugins/next, thanks.

Quoted 30 lines

--

I should probably have included this in my patch series introducing the register function in question instead of noticing that the API version was not bumped with 10.2.0 after the fact.

---
 include/qemu/qemu-plugin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/qemu/qemu-plugin.h +4 -1
index 60de4fdd3f..b445c26389 100644
@@ -72,11 +72,14 @@ typedef uint64_t qemu_plugin_id_t;
  * - added qemu_plugin_write_memory_hwaddr
  * - added qemu_plugin_write_register
  * - added qemu_plugin_translate_vaddr
+ *
+ * version 6:
+ * - qemu_plugin_register_vcpu_discon_cb
  */
 
 extern QEMU_PLUGIN_EXPORT int qemu_plugin_version;
 
-#define QEMU_PLUGIN_VERSION 5
+#define QEMU_PLUGIN_VERSION 6
 
 /**
  * struct qemu_info_t - system information for plugins
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro