X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm.c;h=0a9dc556aed4132f2245e8128a098a34063ee44f;hb=e3a2ad0c26462c45cf0a7f1ccc8f0042abbbd776;hp=3707d1f90c3a4c3d0e2b615ab8b2121042d43c6c;hpb=c62141df299854f534f7ff255693db5f4b7bac4b;p=palacios.releases.git diff --git a/palacios/src/palacios/svm.c b/palacios/src/palacios/svm.c index 3707d1f..0a9dc55 100644 --- a/palacios/src/palacios/svm.c +++ b/palacios/src/palacios/svm.c @@ -41,6 +41,7 @@ #include #include +#include extern void v3_stgi(); @@ -277,14 +278,19 @@ static void Init_VMCB_BIOS(vmcb_t * vmcb, struct guest_info *vm_info) { } -static int init_svm_guest(struct guest_info *info) { +static int init_svm_guest(struct guest_info *info, struct v3_vm_config * config_ptr) { + v3_config_guest(info, config_ptr); + PrintDebug("Allocating VMCB\n"); info->vmm_data = (void*)Allocate_VMCB(); + v3_config_devices(info, config_ptr); + PrintDebug("Initializing VMCB (addr=%p)\n", (void *)info->vmm_data); Init_VMCB_BIOS((vmcb_t*)(info->vmm_data), info); + info->run_state = VM_STOPPED; // info->rip = 0;