Disable branches and enable return compression

Looks like this project won't need branch information, so lets disable
generation of that to massively reduce the trace size
This commit is contained in:
David Venhoff 2025-09-04 18:34:59 +02:00
parent 5995cd75c0
commit 0911136333

View File

@ -857,7 +857,7 @@ static void vmx_pt_print_msrs(u64 ia32_rtit_ctrl_msr){
PRINT_FEATURE(ia32_rtit_ctrl_msr, ADDR3_EN, "ADDR3_CFG");
}
#endif
static inline void vmx_pt_setup_msrs(struct vcpu_vmx_pt *vmx_pt){
/* Disable: MTCEn, TSCEn, DisRTC, CYCEn, TraceEN
* Enable: OS, CR3Filtering, ToPA, BranchEN
@ -865,7 +865,7 @@ static inline void vmx_pt_setup_msrs(struct vcpu_vmx_pt *vmx_pt){
int i;
//vmx_pt->ia32_rtit_ctrl_msr = 0ULL;
WRITE_ONCE(vmx_pt->ia32_rtit_ctrl_msr, (!TRACE_EN) | CTL_OS | CTL_USER | TO_PA | PTWRITE_EN | BRANCH_EN | DIS_RETC | PSB_MASK | CYC_EN | TSC_EN);
WRITE_ONCE(vmx_pt->ia32_rtit_ctrl_msr, (!TRACE_EN) | CTL_OS | CTL_USER | TO_PA | PTWRITE_EN | PSB_MASK | CYC_EN | TSC_EN);
//vmx_pt->ia32_rtit_ctrl_msr = (!TRACE_EN) | CTL_OS | CTL_USER | TO_PA | BRANCH_EN | DIS_RETC | PSB_MASK;
for (i = 0; i < 4; i++){