X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_ctrl_regs.h;h=3cc1932993e1f98ea2146a8735f7bc324893078e;hb=0fedb532c5ca028b24b49fb370763006cbc9de51;hp=f23caadf357f34aec03e3694549a3338f627d400;hpb=de3fce7c94e36342005ae5f79fcf22937acde586;p=palacios-OLD.git diff --git a/palacios/include/palacios/vmm_ctrl_regs.h b/palacios/include/palacios/vmm_ctrl_regs.h index f23caad..3cc1932 100644 --- a/palacios/include/palacios/vmm_ctrl_regs.h +++ b/palacios/include/palacios/vmm_ctrl_regs.h @@ -27,6 +27,15 @@ #define EFER_MSR 0xc0000080 +// KCH: for system-call interposition +#define STAR_MSR 0xc0000081 +#define LSTAR_MSR 0xc0000082 +#define CSTAR_MSR 0xc0000083 +#define SF_MASK_MSR 0xc0000084 +#define FS_BASE_MSR 0xc0000100 +#define GS_BASE_MSR 0xc0000101 +#define KERN_GS_BASE_MSR 0xc0000102 + struct cr0_real { uint_t pe : 1; uint_t mp : 1; @@ -212,8 +221,18 @@ int v3_handle_cr4_write(struct guest_info * info); int v3_handle_cr4_read(struct guest_info * info); -int v3_handle_efer_write(uint_t msr, struct v3_msr src, void * priv_data); -int v3_handle_efer_read(uint_t msr, struct v3_msr * dst, void * priv_data); +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_star_write(struct guest_info * core, uint_t msr, struct v3_msr src, void * priv_data); +int v3_handle_star_read(struct guest_info * core, uint_t msr, struct v3_msr * dst, void * priv_data); +int v3_handle_lstar_write(struct guest_info * core, uint_t msr, struct v3_msr src, void * priv_data); +int v3_handle_lstar_read(struct guest_info * core, uint_t msr, struct v3_msr * dst, void * priv_data); +int v3_handle_cstar_write(struct guest_info * core, uint_t msr, struct v3_msr src, void * priv_data); +int v3_handle_cstar_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__