From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bls5R-0002rI-9R for qemu-devel@nongnu.org; Mon, 19 Sep 2016 02:29:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bls5L-00081L-4M for qemu-devel@nongnu.org; Mon, 19 Sep 2016 02:29:52 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58078 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bls5K-00080z-UD for qemu-devel@nongnu.org; Mon, 19 Sep 2016 02:29:47 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8J6SnOY065236 for ; Mon, 19 Sep 2016 02:29:46 -0400 Received: from e23smtp02.au.ibm.com (e23smtp02.au.ibm.com [202.81.31.144]) by mx0b-001b2d01.pphosted.com with ESMTP id 25h21394p8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 19 Sep 2016 02:29:46 -0400 Received: from localhost by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 19 Sep 2016 16:29:43 +1000 From: Nikunj A Dadhania Date: Mon, 19 Sep 2016 11:59:28 +0530 Message-Id: <1474266577-11704-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 0/9] sPAPR xics rework/cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org, david@gibson.dropbear.id.au Cc: qemu-devel@nongnu.org, nikunj@linux.vnet.ibm.com, benh@kernel.crashing.org, clg@kaod.org sPAPR xics related changes required for powernv platform. This brings infrastructure to get the xics native mode for powernv. Tested pseries guests in KVM and TCG mode. These are the pending patches of the original set. Changelog v3: * Added ICP_Native and XICSNative in "native" implementation * Added fix for migration hang when kernel-irqchip=off Changelog v2: * Restore xirr_owner after migration * Call icp_resend after restoring all the ICP Changelog v1: * Change XICS to XICS_SPAPR and KVM_XICS to XICS_KVM_SPAPR * Added xics_ to function get_cpu_index_by_dt_id as this is a global symbol * Dropped server parameter from icp_check_ipi * Send HW_ERROR when ics is NULL * Remove redundant parameters in trace routines * Use type ICS_SIMPLE, ICS_BASE and ICS_KVM * Dropped xics-native and info pic patches for this version ToDo: + xics_spapr_alloc - getting rid of that Benjamin Herrenschmidt (6): ppc/xics: Make the ICSState a list ppc/xics: An ICS with offset 0 is assumed to be uninitialized ppc/xics: Use a helper to add a new ICS ppc/xics: Split ICS into ics-base and ics class ppc/xics: Add "native" XICS subclass ppc/xics: Add xics to the monitor "info pic" command Nikunj A Dadhania (3): ppc/xics: account correct irq status ppc/xics: Fix migration failure with kernel-irqchip=off ppc/xics: move set_nr_{irqs,servers} to xics.c default-configs/ppc64-softmmu.mak | 3 +- hmp-commands-info.hx | 2 + hw/intc/Makefile.objs | 1 + hw/intc/trace-events | 15 +- hw/intc/xics.c | 405 ++++++++++++++++++++++++++++---------- hw/intc/xics_kvm.c | 55 ++---- hw/intc/xics_native.c | 306 ++++++++++++++++++++++++++++ hw/intc/xics_spapr.c | 147 +++++++------- hw/ppc/ppc.c | 14 ++ hw/ppc/spapr_events.c | 2 +- hw/ppc/spapr_pci.c | 5 +- hw/ppc/spapr_vio.c | 2 +- include/hw/ppc/ppc.h | 1 + include/hw/ppc/xics.h | 72 +++++-- monitor.c | 4 + 15 files changed, 787 insertions(+), 247 deletions(-) create mode 100644 hw/intc/xics_native.c -- 2.7.4