X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fsvm.c;h=9f30c4934d6b20729a4d1a4fc1111eb8f9f072bc;hp=28ef40e6e43a036c3c2518d662acf32e024eb8bc;hb=701de97007c8b6776998eeab78469a4304f6b871;hpb=b4963a8a43ca9103946f926e062e609e4498c2e2 diff --git a/palacios/src/geekos/svm.c b/palacios/src/geekos/svm.c index 28ef40e..9f30c49 100644 --- a/palacios/src/geekos/svm.c +++ b/palacios/src/geekos/svm.c @@ -48,7 +48,7 @@ void Init_SVM(struct vmm_ctrl_ops * vmm_ops) { void * host_state; - // setup + // Enable SVM on the CPU Get_MSR(EFER_MSR, &(msr.e_reg.high), &(msr.e_reg.low)); msr.e_reg.low |= EFER_MSR_svm_enable; Set_MSR(EFER_MSR, 0, msr.e_reg.low); @@ -113,6 +113,16 @@ int start_svm_guest(struct guest_info *info) { +/** + * We handle the svm exits here + * This function should probably be moved to another file to keep things managable.... + */ +int handle_svm_exit(struct VMM_GPRs guest_gprs) { + + return 0; +} + + vmcb_t * Allocate_VMCB() { vmcb_t * vmcb_page = (vmcb_t*)os_hooks->Allocate_Pages(1);