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=2727182d4ab9420bc48b3ed88d1afba333367c3e;hpb=0adb91252edd4b093f12f57eea76687ced1aec0c;p=palacios-OLD.git diff --git a/palacios/include/palacios/vm_guest.h b/palacios/include/palacios/vm_guest.h index 2727182..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; @@ -119,14 +126,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,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); @@ -201,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