On 27/11/2017 21:23, Luwei Kang wrote: > From v2: > - replace *_PT_SUPPRESS_PIP to *_PT_CONCEAL_PIP; > - clean SECONDARY_EXEC_PT_USE_GPA, VM_EXIT_CLEAR_IA32_RTIT_CTL and VM_ENTRY_LOAD_IA32_RTIT_CTL in SYSTEM mode. These bits must be all set or all clean; > - move processor tracing out of scattered features; > - add a new function to enable/disable intercept MSRs read/write; > - add all Intel PT MSRs read/write and disable intercept when PT is enabled in guest; > - disable Intel PT and enable intercept MSRs when L1 guest VMXON; > - performance optimization. > In Host only mode. we just need to save host RTIT_CTL before vm-entry and restore host RTIT_CTL after vm-exit; > In HOST_GUEST mode. we need to save and restore all MSRs only when PT has enabled in guest. > - use XSAVES/XRESTORES implement context switch. > Haven't implementation in this version and still in debuging. will make a separate patch work on this. That's okay. I have sent a few comments, v4 should be good. Thanks, Paolo