X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvm_guest.c;h=ff5a35f46fd09f6433adcd72d8eec95e7fb10140;hb=c3cc58c287fd4a912919c4546f41026c571b13ec;hp=17b1be80636d7f570946432495b7fb93c82128e6;hpb=43347a912eba44cae132d01668d45743702f3148;p=palacios.git diff --git a/palacios/src/palacios/vm_guest.c b/palacios/src/palacios/vm_guest.c index 17b1be8..ff5a35f 100644 --- a/palacios/src/palacios/vm_guest.c +++ b/palacios/src/palacios/vm_guest.c @@ -28,7 +28,7 @@ #include #include #include - +#include v3_cpu_mode_t v3_get_vm_cpu_mode(struct guest_info * info) { @@ -404,6 +404,11 @@ static int info_hcall(struct guest_info * core, uint_t hcall_id, void * priv_dat int v3_init_vm(struct v3_vm_info * vm) { v3_cpu_arch_t cpu_type = v3_get_cpu_type(v3_get_cpu_id()); + + if (v3_get_foreground_vm() == NULL) { + v3_set_foreground_vm(vm); + } + #ifdef CONFIG_TELEMETRY v3_init_telemetry(vm); #endif