X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fsvm.h;h=3ede354e53a2420994fd23fecc085377aed1b4b2;hp=9c0912bc52a4497e4d9de9b47dbb52d820f1ffae;hb=90b8236597004a37a9d5acb33a1b1f987fe9070c;hpb=d8fc6aa4bc2a5d9cec50923e9d2bd30f867dd50a diff --git a/palacios/include/palacios/svm.h b/palacios/include/palacios/svm.h index 9c0912b..3ede354 100644 --- a/palacios/include/palacios/svm.h +++ b/palacios/include/palacios/svm.h @@ -5,6 +5,8 @@ #include #include +#ifdef __V3VEE__ + #define CPUID_FEATURE_IDS 0x80000001 #define CPUID_FEATURE_IDS_ecx_svm_avail 0x00000004 @@ -53,24 +55,13 @@ #define SVM_HANDLER_ERROR 0x1 #define SVM_HANDLER_HALT 0x2 - +#endif void Init_SVM(struct vmm_ctrl_ops * vmm_ops); int is_svm_capable(); -vmcb_t * Allocate_VMCB(); -void Init_VMCB(vmcb_t * vmcb, struct guest_info vm_info); -void Init_VMCB_BIOS(vmcb_t * vmcb, struct guest_info vm_info); -void Init_VMCB_pe(vmcb_t * vmcb, struct guest_info vm_info); - -int init_svm_guest(struct guest_info *info); -int start_svm_guest(struct guest_info * info); - - -inline addr_t get_rip_linear(struct guest_info * info, addr_t rip, addr_t cs_base); - #endif