X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmx_lowlevel.h;h=fd634064635f9faeec957aa1e8f6e52e017f5118;hb=3b1580ef455e63fdeb07d177eecc0055e7429b4f;hp=ce6a440f1ed08dc0a40fd1b48cb6800babd96dd7;hpb=15f1869089d6d3c4dc745ac2673e3cc0dd315962;p=palacios.git diff --git a/palacios/include/palacios/vmx_lowlevel.h b/palacios/include/palacios/vmx_lowlevel.h index ce6a440..fd63406 100644 --- a/palacios/include/palacios/vmx_lowlevel.h +++ b/palacios/include/palacios/vmx_lowlevel.h @@ -97,17 +97,17 @@ static inline int vmcs_load(addr_t vmcs_ptr) { return VMX_SUCCESS; } -static inline int vmcs_store(addr_t vmcs_ptr) { - uint64_t vmcs_ptr_64 = (uint64_t)vmcs_ptr; +static inline uint64_t vmcs_store() { + uint64_t vmcs_ptr = 0; __asm__ __volatile__ ( VMPTRST_OPCODE EAX_07_MODRM : - : "a"(&vmcs_ptr_64) + : "a"(&vmcs_ptr) : "memory"); - return VMX_SUCCESS; + return vmcs_ptr; } static inline int vmcs_read(vmcs_field_t vmcs_field, void * dst) {