Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932784AbbHJUfE (ORCPT ); Mon, 10 Aug 2015 16:35:04 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:21210 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932646AbbHJUe7 (ORCPT ); Mon, 10 Aug 2015 16:34:59 -0400 From: Boris Ostrovsky To: david.vrabel@citrix.com, konrad.wilk@oracle.com Cc: kevin.tian@intel.com, jbeulich@suse.com, dietmar.hahn@ts.fujitsu.com, stefano.stabellini@eu.citrix.com, julien.grall@citrix.com, xen-devel@lists.xen.org, linux-kernel@vger.kernel.org, boris.ostrovsky@oracle.com Subject: [PATCH v7 0/7] xen/PMU: PMU support for Xen PV(H) guests Date: Mon, 10 Aug 2015 16:34:31 -0400 Message-Id: <1439238878-22176-1-git-send-email-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 1.8.1.4 X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2803 Lines: 64 Changes in v7: * Added patch 7 to prevent passing CR4's PCE bit to the hypervisor. * Replaced WARN_ONCE()s with pr_warn_once() since stacks/registers are not especially interesting at those sites (and because other places use pr_() routines too) (patches 3 and 6) * Made xensyms_next_sym return proper error code (patch 1) * Dropped perf_unregister_guest_info_callbacks in xen_pmu_init()'s error path since it's unsafe (patch 3) * A few small style corrections (patch 3 mostly) Changes in v6: * Fix ARM builds (as suggested by Julien): o Make XEN_SYMS depend on X86 (patch 1) o Add CONFIG_XEN_HAVE_PVMMU and use it in drivers/xen/sys-hypervisor.c (patch 2) * Adjust release dates in Documentation/ABI/testing/sysfs-hypervisor-pmu (patch 2) Boris Ostrovsky (7): xen: xensyms support xen/PMU: Sysfs interface for setting Xen PMU mode xen/PMU: Initialization code for Xen PMU xen/PMU: Describe vendor-specific PMU registers xen/PMU: Intercept PMU-related MSR and APIC accesses xen/PMU: PMU emulation code xen/x86: Don't try to set PCE bit in CR4 Documentation/ABI/testing/sysfs-hypervisor-pmu | 23 + arch/x86/include/asm/xen/hypercall.h | 6 + arch/x86/include/asm/xen/interface.h | 123 ++++++ arch/x86/xen/Kconfig | 1 + arch/x86/xen/Makefile | 2 +- arch/x86/xen/apic.c | 6 + arch/x86/xen/enlighten.c | 16 +- arch/x86/xen/pmu.c | 570 +++++++++++++++++++++++++ arch/x86/xen/pmu.h | 15 + arch/x86/xen/smp.c | 29 +- arch/x86/xen/suspend.c | 23 +- drivers/xen/Kconfig | 11 + drivers/xen/sys-hypervisor.c | 136 +++++- drivers/xen/xenfs/Makefile | 1 + drivers/xen/xenfs/super.c | 3 + drivers/xen/xenfs/xenfs.h | 1 + drivers/xen/xenfs/xensyms.c | 152 +++++++ include/xen/interface/platform.h | 18 + include/xen/interface/xen.h | 2 + include/xen/interface/xenpmu.h | 94 ++++ 20 files changed, 1219 insertions(+), 13 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-hypervisor-pmu create mode 100644 arch/x86/xen/pmu.c create mode 100644 arch/x86/xen/pmu.h create mode 100644 drivers/xen/xenfs/xensyms.c create mode 100644 include/xen/interface/xenpmu.h -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/