Re: [PATCH] RDMSR before test_cpu_capacity brings about KVM warning

2015-08-17 Thread Han, Huaitong
On Mon, 2015-08-17 at 15:04 +0300, Alexander Shishkin wrote: > Huaitong Han writes: > > > rdmsrl_safe does not lead to #GP in native kernel although CPU > > does not support INTEL_PT, but if KVM does not support INTEL_PT, > > the codes cannot understand MSR_IA32_RTIT_CTL, and the warning > > is

Re: [PATCH] RDMSR before test_cpu_capacity brings about KVM warning

2015-08-17 Thread Alexander Shishkin
Huaitong Han writes: > rdmsrl_safe does not lead to #GP in native kernel although CPU > does not support INTEL_PT, but if KVM does not support INTEL_PT, > the codes cannot understand MSR_IA32_RTIT_CTL, and the warning > is produced. "the codes"? > If KVM does not support INTEL_PT, its guest

Re: [PATCH] RDMSR before test_cpu_capacity brings about KVM warning

2015-08-17 Thread Alexander Shishkin
Huaitong Han huaitong@intel.com writes: rdmsrl_safe does not lead to #GP in native kernel although CPU does not support INTEL_PT, but if KVM does not support INTEL_PT, the codes cannot understand MSR_IA32_RTIT_CTL, and the warning is produced. the codes? If KVM does not support

Re: [PATCH] RDMSR before test_cpu_capacity brings about KVM warning

2015-08-17 Thread Han, Huaitong
On Mon, 2015-08-17 at 15:04 +0300, Alexander Shishkin wrote: Huaitong Han huaitong@intel.com writes: rdmsrl_safe does not lead to #GP in native kernel although CPU does not support INTEL_PT, but if KVM does not support INTEL_PT, the codes cannot understand MSR_IA32_RTIT_CTL, and the

[PATCH] RDMSR before test_cpu_capacity brings about KVM warning

2015-08-14 Thread Huaitong Han
rdmsrl_safe does not lead to #GP in native kernel although CPU does not support INTEL_PT, but if KVM does not support INTEL_PT, the codes cannot understand MSR_IA32_RTIT_CTL, and the warning is produced. If KVM does not support INTEL_PT, its guest CPUID also does not. So test_cpu_cap is added

[PATCH] RDMSR before test_cpu_capacity brings about KVM warning

2015-08-14 Thread Huaitong Han
rdmsrl_safe does not lead to #GP in native kernel although CPU does not support INTEL_PT, but if KVM does not support INTEL_PT, the codes cannot understand MSR_IA32_RTIT_CTL, and the warning is produced. If KVM does not support INTEL_PT, its guest CPUID also does not. So test_cpu_cap is added