Revert "enable mtc"
This reverts commit 44ceaf2cf8043bda6954b35e2aa59fadbb67ef28.
This commit is contained in:
parent
44ceaf2cf8
commit
5995cd75c0
@ -865,7 +865,7 @@ static inline void vmx_pt_setup_msrs(struct vcpu_vmx_pt *vmx_pt){
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
//vmx_pt->ia32_rtit_ctrl_msr = 0ULL;
|
//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 | MTC_EN);
|
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);
|
||||||
//vmx_pt->ia32_rtit_ctrl_msr = (!TRACE_EN) | CTL_OS | CTL_USER | TO_PA | BRANCH_EN | DIS_RETC | PSB_MASK;
|
//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++){
|
for (i = 0; i < 4; i++){
|
||||||
@ -1136,11 +1136,6 @@ static int vmx_pt_check_support(void){
|
|||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(b & BIT(0))) {
|
|
||||||
PRINT_ERROR("NO MTC SUPPORT");
|
|
||||||
return -EIO;
|
|
||||||
}
|
|
||||||
|
|
||||||
cpuid_count(0x14, 1, &a, &b, &c, &d);
|
cpuid_count(0x14, 1, &a, &b, &c, &d);
|
||||||
//printk("Supported IP Filter Regions: %lx\n", a&0x7);
|
//printk("Supported IP Filter Regions: %lx\n", a&0x7);
|
||||||
supported_addrn = a&0x7;
|
supported_addrn = a&0x7;
|
||||||
|
@ -4,6 +4,5 @@ cp /lib/modules/`uname -r`/build/scripts/module.lds scripts/ &&
|
|||||||
cp /lib/modules/`uname -r`/build/Module.symvers . &&
|
cp /lib/modules/`uname -r`/build/Module.symvers . &&
|
||||||
cp /lib/modules/`uname -r`/build/include/config/kernel.release include/config/kernel.release &&
|
cp /lib/modules/`uname -r`/build/include/config/kernel.release include/config/kernel.release &&
|
||||||
cp /lib/modules/`uname -r`/build/include/generated/utsrelease.h include/generated/utsrelease.h &&
|
cp /lib/modules/`uname -r`/build/include/generated/utsrelease.h include/generated/utsrelease.h &&
|
||||||
#make KCFLAGS=-DDEBUG M=arch/x86/kvm/ -j KBUILD_MODPOST_WARN=1 &&
|
|
||||||
make M=arch/x86/kvm/ -j KBUILD_MODPOST_WARN=1 &&
|
make M=arch/x86/kvm/ -j KBUILD_MODPOST_WARN=1 &&
|
||||||
echo "[!] kvm-nyx successfully compiled"
|
echo "[!] kvm-nyx successfully compiled"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user