Message ID | 20191027105243.34339-1-like.xu@linux.intel.com (mailing list archive) |
---|---|
Headers | show |
Series | KVM: x86/vPMU: Efficiency optimization by reusing last created perf_event | expand |
On Sun, Oct 27, 2019 at 06:52:37PM +0800, Like Xu wrote: > For perf subsystem, please help review first two patches. > Like Xu (6): > perf/core: Provide a kernel-internal interface to recalibrate event > period > perf/core: Provide a kernel-internal interface to pause perf_event Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Hi Paolo, On 2019/10/29 0:43, Peter Zijlstra wrote: > On Sun, Oct 27, 2019 at 06:52:37PM +0800, Like Xu wrote: >> For perf subsystem, please help review first two patches. > >> Like Xu (6): >> perf/core: Provide a kernel-internal interface to recalibrate event >> period >> perf/core: Provide a kernel-internal interface to pause perf_event > > Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> > Would you mind to revisit the following patches for upstream ? > KVM: x86/vPMU: Rename pmu_ops callbacks from msr_idx to rdpmc_ecx > KVM: x86/vPMU: Introduce a new kvm_pmu_ops->msr_idx_to_pmc callback > KVM: x86/vPMU: Reuse perf_event to avoid unnecessary > pmc_reprogram_counter > KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC For vPMU, please review two more patches as well: + https://lore.kernel.org/kvm/20191030164418.2957-1-like.xu@linux.intel.com/ (kvm) + https://lore.kernel.org/lkml/20191105140955.22504-1-like.xu@linux.intel.com/ (perf) Thanks, Like Xu
On 12/11/19 07:08, Like Xu wrote: > Hi Paolo, > > On 2019/10/29 0:43, Peter Zijlstra wrote: >> On Sun, Oct 27, 2019 at 06:52:37PM +0800, Like Xu wrote: >>> For perf subsystem, please help review first two patches. >> >>> Like Xu (6): >>> perf/core: Provide a kernel-internal interface to recalibrate event >>> period >>> perf/core: Provide a kernel-internal interface to pause perf_event >> >> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> >> > > Would you mind to revisit the following patches for upstream ? > >> KVM: x86/vPMU: Rename pmu_ops callbacks from msr_idx to rdpmc_ecx >> KVM: x86/vPMU: Introduce a new kvm_pmu_ops->msr_idx_to_pmc callback >> KVM: x86/vPMU: Reuse perf_event to avoid unnecessary >> pmc_reprogram_counter >> KVM: x86/vPMU: Add lazy mechanism to release perf_event per vPMC Queued, thanks. Paolo > For vPMU, please review two more patches as well: > + > https://lore.kernel.org/kvm/20191030164418.2957-1-like.xu@linux.intel.com/ > (kvm) > + > https://lore.kernel.org/lkml/20191105140955.22504-1-like.xu@linux.intel.com/ > (perf) > > Thanks, > Like Xu >
On 12/11/19 07:08, Like Xu wrote: > > For vPMU, please review two more patches as well: > + > https://lore.kernel.org/kvm/20191030164418.2957-1-like.xu@linux.intel.com/ > (kvm) If I understand this patch correctly, you are patching the CPUID values passed to the KVM_SET_CPUID2 ioctl if they are not valid for the host. Generally we don't do that, if there is garbage in CPUID the behavior of the guest will be unreliable. Paolo