X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_config.h;h=a719cf5ea39669480a2028e9394c0c8f1e2dcd06;hb=3d9181a002f5f30881ee53fff4ec1b2ab8395b0a;hp=716e5b63bc5dbb071465ba460dc518c38787645a;hpb=c016bb46bd68474161e275a5ace086c3fb810d9f;p=palacios.git diff --git a/palacios/include/palacios/vmm_config.h b/palacios/include/palacios/vmm_config.h index 716e5b6..a719cf5 100644 --- a/palacios/include/palacios/vmm_config.h +++ b/palacios/include/palacios/vmm_config.h @@ -24,17 +24,47 @@ #ifdef __V3VEE__ -#include +//#include #include +#include +#include +#include +//#include -int v3_pre_config_guest(struct guest_info * info, struct v3_vm_config * config_ptr); -int v3_post_config_guest(struct guest_info * info, struct v3_vm_config * config_ptr); +struct guest_info; +int v3_config_guest(struct guest_info * info, void * cfg_blob); +struct v3_cfg_file { + void * data; + uint64_t size; -#endif // ! __V3VEE__ + char tag[256]; + + struct list_head file_node; +}; + + + +typedef struct v3_xml v3_cfg_tree_t; + +struct v3_config { + v3_cfg_tree_t * cfg; + struct list_head file_list; + struct hashtable * file_table; + void * blob; +}; + + +struct v3_cfg_file * v3_cfg_get_file(struct guest_info * info, char * tag); + +char * v3_cfg_val(v3_cfg_tree_t * tree, char * tag); +v3_cfg_tree_t * v3_cfg_subtree(v3_cfg_tree_t * tree, char * tag); +v3_cfg_tree_t * v3_cfg_next_branch(v3_cfg_tree_t * tree); + +#endif // ! __V3VEE__ #endif