From: Jack Lange Date: Tue, 3 May 2011 20:20:29 +0000 (-0500) Subject: moved post config to before the device's are setup X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=498deda77301293d53089f7be0e56b914c932dfa moved post config to before the device's are setup --- diff --git a/palacios/src/palacios/vmm_config.c b/palacios/src/palacios/vmm_config.c index 8082970..bb6f985 100644 --- a/palacios/src/palacios/vmm_config.c +++ b/palacios/src/palacios/vmm_config.c @@ -353,6 +353,17 @@ static int post_config_vm(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { } + if (vm->vm_class == V3_PC_VM) { + if (post_config_pc(vm, cfg) == -1) { + PrintError("PC Post configuration failure\n"); + return -1; + } + } else { + PrintError("Invalid VM Class\n"); + return -1; + } + + /* * Initialize configured devices */ @@ -366,15 +377,7 @@ static int post_config_vm(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { v3_print_msr_map(vm); - if (vm->vm_class == V3_PC_VM) { - if (post_config_pc(vm, cfg) == -1) { - PrintError("PC Post configuration failure\n"); - return -1; - } - } else { - PrintError("Invalid VM Class\n"); - return -1; - } + /* * Initialize configured extensions