X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fsvm.h;h=1a9ecfd77acbaae559f538fecd0693ceeb60fbbe;hp=066ab7ca5a400eba3214daa6da84d38f86bf3377;hb=123a1ba27ea09c8fa77a1b36ce625b43d7c48b14;hpb=e70e95962c26832628d586e07f9cd1a2e1852d72 diff --git a/palacios/include/palacios/svm.h b/palacios/include/palacios/svm.h index 066ab7c..1a9ecfd 100644 --- a/palacios/include/palacios/svm.h +++ b/palacios/include/palacios/svm.h @@ -31,15 +31,12 @@ #include #include -#define CPUID_FEATURE_IDS 0x80000001 -#define CPUID_FEATURE_IDS_ecx_svm_avail 0x00000004 +#define CPUID_EXT_FEATURE_IDS_ecx_svm_avail 0x00000004 #define CPUID_SVM_REV_AND_FEATURE_IDS 0x8000000a #define CPUID_SVM_REV_AND_FEATURE_IDS_edx_svml 0x00000004 #define CPUID_SVM_REV_AND_FEATURE_IDS_edx_np 0x00000001 - -#define EFER_MSR 0xc0000080 #define EFER_MSR_svm_enable 0x00001000 /************/ @@ -80,9 +77,13 @@ #define SVM_HANDLER_HALT 0x2 +void v3_init_svm_cpu(int cpu_id); +int v3_is_svm_capable(); + +int v3_init_svm_vmcb(struct guest_info * info, v3_vm_class_t vm_class); -void Init_SVM(struct vmm_ctrl_ops * vmm_ops); -int is_svm_capable(); +int v3_svm_enter(struct guest_info * info); +int v3_start_svm_guest(struct guest_info *info); #endif