From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG8je-0008Em-AC for qemu-devel@nongnu.org; Thu, 23 Jun 2016 13:48:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bG8jY-0004V4-Ez for qemu-devel@nongnu.org; Thu, 23 Jun 2016 13:48:13 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:46848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bG8jY-0004Uv-5K for qemu-devel@nongnu.org; Thu, 23 Jun 2016 13:48:08 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5NHi6bt068209 for ; Thu, 23 Jun 2016 13:48:06 -0400 Received: from e23smtp03.au.ibm.com (e23smtp03.au.ibm.com [202.81.31.145]) by mx0a-001b2d01.pphosted.com with ESMTP id 23rkcetf58-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 23 Jun 2016 13:48:06 -0400 Received: from localhost by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 24 Jun 2016 03:48:04 +1000 From: Nikunj A Dadhania Date: Thu, 23 Jun 2016 23:17:19 +0530 Message-Id: <1466704050-15108-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v1 00/11] 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, clg@kaod.org, nikunj@linux.vnet.ibm.com 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. Some ToDos pending in patch 6: + xics_spapr_alloc - getting rid of that + xirr_owner - how to reassign after migration Benjamin Herrenschmidt (11): ppc/xics: Rename existing xics to xics_spapr ppc/xics: Move SPAPR specific code to a separate file ppc/xics: Implement H_IPOLL using an accessor ppc/xics: Remove unused xics_set_irq_type() ppc/xics: Replace "icp" with "xics" in most places 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 default-configs/ppc64-softmmu.mak | 4 +- hmp-commands-info.hx | 2 + hw/intc/Makefile.objs | 2 + hw/intc/xics.c | 713 +++++++++++--------------------------- hw/intc/xics_kvm.c | 86 +++-- hw/intc/xics_native.c | 295 ++++++++++++++++ hw/intc/xics_spapr.c | 445 ++++++++++++++++++++++++ hw/ppc/ppc.c | 14 + hw/ppc/spapr.c | 19 +- hw/ppc/spapr_cpu_core.c | 4 +- hw/ppc/spapr_events.c | 8 +- hw/ppc/spapr_pci.c | 12 +- hw/ppc/spapr_vio.c | 2 +- include/hw/pci-host/spapr.h | 2 +- include/hw/ppc/ppc.h | 1 + include/hw/ppc/spapr.h | 2 +- include/hw/ppc/spapr_vio.h | 2 +- include/hw/ppc/xics.h | 83 ++++- monitor.c | 4 + 19 files changed, 1113 insertions(+), 587 deletions(-) create mode 100644 hw/intc/xics_native.c create mode 100644 hw/intc/xics_spapr.c -- 2.7.4