From: Boris Ostrovsky Subject: [PATCH v3 0/3] A few VPMU/watchdog-related patches Date: Fri, 30 Jan 2015 12:15:54 -0500 Message-ID: <1422638157-1919-1-git-send-email-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YHFMv-000379-79 for xen-devel@lists.xenproject.org; Fri, 30 Jan 2015 17:28:33 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: JBeulich@suse.com, andrew.cooper3@citrix.com Cc: xen-devel@lists.xenproject.org, kevin.tian@intel.com, boris.ostrovsky@oracle.com, dietmar.hahn@ts.fujitsu.com List-Id: xen-devel@lists.xenproject.org Changes in v3: * Moved opt_watchdog check into initcall Changes in v2: * Added NMI cleanup patch * Disaple VPMU in vpmu_initialise() instead of doing it in options parsing routines * Update documentation by mentioning that VPMU doesn't work with watchdog * Drop some sign-off area tags The first patch is a light cleanup of nmi_watchdog usage. The second patch is to disable VPMU when watchdog is on since both are using APIC_LVTPC register and VPMU, when running, will overwrite watchdog's settings. The last patch is update to the earlier (reverted) commit 8097616. We prevent guests's updates to APIC_LVTPC when VPMU is disabled. Without this a guest may redirect a watchdog interrupt to VPMU which will not be able to handle it. Boris Ostrovsky (3): x86/nmi: Cleanup usage of nmi_watchdog x86/VPMU: Disable VPMU when NMI watchdog is on x86/VPMU: Handle APIC_LVTPC accesses docs/misc/xen-command-line.markdown | 2 ++ xen/arch/x86/hvm/svm/vpmu.c | 4 ---- xen/arch/x86/hvm/vlapic.c | 3 +++ xen/arch/x86/hvm/vmx/vpmu_core2.c | 17 ----------------- xen/arch/x86/hvm/vpmu.c | 26 ++++++++++++++++++++++++++ xen/arch/x86/nmi.c | 4 ++-- xen/arch/x86/traps.c | 3 ++- xen/include/asm-x86/apic.h | 1 - xen/include/asm-x86/hvm/vpmu.h | 1 + 9 files changed, 36 insertions(+), 25 deletions(-) -- 1.8.1.4