Patchwork [RFC,v1,1/4] qtest: add qtest to supported qemu modules

login
register
mail settings
Submitter Michael Roth
Date Feb. 4, 2011, 1:49 p.m.
Message ID <1296827392-1291-2-git-send-email-mdroth@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/81894/
State New
Headers show

Comments

Michael Roth - Feb. 4, 2011, 1:49 p.m.
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
---
 module.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

Patch

diff --git a/module.h b/module.h
index 9263f1c..d2bf34d 100644
--- a/module.h
+++ b/module.h
@@ -24,12 +24,15 @@  typedef enum {
     MODULE_INIT_BLOCK,
     MODULE_INIT_DEVICE,
     MODULE_INIT_MACHINE,
-    MODULE_INIT_MAX
+    MODULE_INIT_QTEST_REGISTRY,
+    MODULE_INIT_MAX,
 } module_init_type;
 
 #define block_init(function) module_init(function, MODULE_INIT_BLOCK)
 #define device_init(function) module_init(function, MODULE_INIT_DEVICE)
 #define machine_init(function) module_init(function, MODULE_INIT_MACHINE)
+#define qtest_init_registry(function) \
+    module_init(function, MODULE_INIT_QTEST_REGISTRY)
 
 void register_module_init(void (*fn)(void), module_init_type type);