[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RESEND v1 5/7] x86: Implement Intel Processor Trace context switch
> > Load/Store Intel processor trace register in context switch. > > MSR IA32_RTIT_CTL is loaded/stored automatically from VMCS. > > When Intel PT is supported in guest, we need load/restore PT MSRs only > > when PT is enabled in guest. > > > > Signed-off-by: Luwei Kang <luwei.kang@xxxxxxxxx> > > Is there a reason to not use xsaves/xrstors when they are available? > There have two method to implement context switch(manual and xsave/xrstors). The first method is more directly and also won't have any performance overhead if intel PT is disabled. If use xsave/xrstors we need to check if it available and whether PT is supported in XSS (CPUID.0D(ecx=1).ecx). I will think about this scenario and may make an independent patch to enable it. But I think manual save/restore will also needed in case xsave/rstores not available, although I think this may can't be happened. Thanks, Luwei Kang _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |