X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvm_guest.h;h=5d4527f7d8c6995ba33203c3502563193ad31851;hb=dd1906aa28e83656da7025456e6f046bbe7712f4;hp=a5bb46d64d8ebbd12de1c1ce911dbbf60313a431;hpb=e8fd1090974b1f82edd92d155ccdad6ad24b074b;p=palacios-OLD.git diff --git a/palacios/include/palacios/vm_guest.h b/palacios/include/palacios/vm_guest.h index a5bb46d..5d4527f 100644 --- a/palacios/include/palacios/vm_guest.h +++ b/palacios/include/palacios/vm_guest.h @@ -36,6 +36,9 @@ #include #include #include +#include + + #ifdef CONFIG_TELEMETRY #include @@ -47,6 +50,8 @@ struct v3_sym_core_state; #endif + + #include struct v3_intr_state; @@ -56,6 +61,8 @@ struct v3_intr_state; /* per-core state */ struct guest_info { + char exec_name[256]; + uint64_t rip; uint_t cpl; @@ -114,17 +121,24 @@ struct guest_info { struct v3_sym_core_state sym_core_state; #endif + /* Per-core config tree data. */ + v3_cfg_tree_t * core_cfg_data; struct v3_vm_info * vm_info; + v3_core_operating_mode_t core_run_state; + /* the logical cpu on which this core runs */ uint32_t cpu_id; + }; /* shared state across cores */ struct v3_vm_info { + char name[128]; + v3_vm_class_t vm_class; addr_t mem_size; /* In bytes for now */ @@ -155,28 +169,39 @@ struct v3_vm_info { v3_vm_operating_mode_t run_state; + + + + struct v3_extensions extensions; + #ifdef CONFIG_SYMBIOTIC /* Symbiotic state */ struct v3_sym_vm_state sym_vm_state; #endif - - #ifdef CONFIG_TELEMETRY uint_t enable_telemetry; struct v3_telemetry_state telemetry; #endif + uint64_t yield_cycle_period; + + void * host_priv_data; + int num_cores; - struct guest_info cores[0]; + // JRL: This MUST be the last entry... + struct guest_info cores[0]; }; int v3_init_vm(struct v3_vm_info * vm); int v3_init_core(struct guest_info * core); +int v3_free_vm_internal(struct v3_vm_info * vm); +int v3_free_core(struct guest_info * core); + uint_t v3_get_addr_width(struct guest_info * info); v3_cpu_mode_t v3_get_vm_cpu_mode(struct guest_info * info); @@ -199,4 +224,6 @@ void v3_print_stack(struct guest_info * info); #endif /* ! __V3VEE__ */ +void v3_print_guest_state_all(struct v3_vm_info * vm); + #endif