X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_config.h;h=a719cf5ea39669480a2028e9394c0c8f1e2dcd06;hp=716e5b63bc5dbb071465ba460dc518c38787645a;hb=123a1ba27ea09c8fa77a1b36ce625b43d7c48b14;hpb=0e097100a26bc43eb8964734fa43130fc4c71429 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