X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_ctrl_regs.h;h=5834eb6466c1e748a425a28102cbf2edac691636;hb=9bf0781823de53a1d5335bab24b31fca02412283;hp=006347379c2bbf781e029ab99315aa3277c6bc7a;hpb=fd5d916136c80b7c3f873f51a26b88c2149e622b;p=palacios.git diff --git a/palacios/include/palacios/vmm_ctrl_regs.h b/palacios/include/palacios/vmm_ctrl_regs.h index 0063473..5834eb6 100644 --- a/palacios/include/palacios/vmm_ctrl_regs.h +++ b/palacios/include/palacios/vmm_ctrl_regs.h @@ -119,9 +119,13 @@ struct cr4_32 { uint_t mce : 1; uint_t pge : 1; uint_t pce : 1; - uint_t osf_xsr : 1; - uint_t osx : 1; - uint_t rsvd1 : 21; + uint_t os_fxsr : 1; + uint_t osxmmexcpt : 1; + uint_t rsvd0 : 5; + uint_t fsgsbase : 1; + uint_t rsvd1 : 1; + uint_t osxsave : 1; + uint_t rsvd2 : 13; } __attribute__((packed)); struct cr4_64 { @@ -134,10 +138,14 @@ struct cr4_64 { uint_t mce : 1; uint_t pge : 1; uint_t pce : 1; - uint_t osf_xsr : 1; - uint_t osx : 1; - uint_t rsvd1 : 21; - uint_t rsvd2 : 32; + uint_t os_fxsr : 1; + uint_t osxmmexcpt : 1; + uint_t rsvd0 : 5; + uint_t fsgsbase : 1; + uint_t rsvd1 : 1; + uint_t osxsave : 1; + uint_t rsvd2 : 13; + uint_t rsvd3 : 32; } __attribute__((packed)); @@ -186,7 +194,6 @@ struct rflags { - /* // First opcode byte static const uchar_t cr_access_byte = 0x0f; @@ -211,10 +218,16 @@ int v3_handle_cr3_read(struct guest_info * info); int v3_handle_cr4_write(struct guest_info * info); int v3_handle_cr4_read(struct guest_info * info); +int v3_handle_cr8_write(struct guest_info * info); +int v3_handle_cr8_read(struct guest_info * info); + int v3_handle_efer_write(struct guest_info * core, uint_t msr, struct v3_msr src, void * priv_data); int v3_handle_efer_read(struct guest_info * core, uint_t msr, struct v3_msr * dst, void * priv_data); +int v3_handle_vm_cr_write(struct guest_info * core, uint_t msr, struct v3_msr src, void * priv_data); +int v3_handle_vm_cr_read(struct guest_info * core, uint_t msr, struct v3_msr * dst, void * priv_data); + #endif // ! __V3VEE__