X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvm_guest.h;h=d67fd9fc4543a9e1ab71d635e19607166b69dc2f;hb=95290c36e27daf208b8e61e6c6f26325db8b6b4d;hp=04a56325503eb14deb43dd586c2c911b97c4cd0d;hpb=964e7836a6227341b5d895a830b7e36ad6debffb;p=palacios.git diff --git a/palacios/include/palacios/vm_guest.h b/palacios/include/palacios/vm_guest.h index 04a5632..d67fd9f 100644 --- a/palacios/include/palacios/vm_guest.h +++ b/palacios/include/palacios/vm_guest.h @@ -36,6 +36,7 @@ #include #include #include +#include #ifdef CONFIG_TELEMETRY #include @@ -56,6 +57,8 @@ struct v3_intr_state; /* per-core state */ struct guest_info { + char exec_name[256]; + uint64_t rip; uint_t cpl; @@ -119,14 +122,19 @@ struct guest_info { 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 */ @@ -157,13 +165,16 @@ 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; @@ -171,17 +182,21 @@ struct v3_vm_info { uint64_t yield_cycle_period; - int num_cores; - struct guest_info cores[0]; - void * host_priv_data; + int num_cores; + + // 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); @@ -204,4 +219,6 @@ void v3_print_stack(struct guest_info * info); #endif /* ! __V3VEE__ */ +void v3_print_guest_state_all(struct v3_vm_info * vm); + #endif