From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHyKV-0008LS-2i for qemu-devel@nongnu.org; Tue, 28 Jun 2016 15:05:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHyKQ-00052q-W4 for qemu-devel@nongnu.org; Tue, 28 Jun 2016 15:05:51 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:43404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHyKQ-00052d-Nk for qemu-devel@nongnu.org; Tue, 28 Jun 2016 15:05:46 -0400 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5SIxVTR062209 for ; Tue, 28 Jun 2016 15:05:43 -0400 Received: from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143]) by mx0a-001b2d01.pphosted.com with ESMTP id 23sm9fgurt-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 28 Jun 2016 15:05:43 -0400 Received: from localhost by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 29 Jun 2016 05:05:40 +1000 From: Nikunj A Dadhania Date: Wed, 29 Jun 2016 00:35:11 +0530 Message-Id: <1467140719-4701-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 0/8] 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, benh@kernel.crashing.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. 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: + Use ICPNative and XICSNative in "native" implementation + xics_spapr_alloc - getting rid of that + xirr_owner - how to reassign after migration Benjamin Herrenschmidt (8): 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: 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 default-configs/ppc64-softmmu.mak | 1 + hw/intc/Makefile.objs | 1 + hw/intc/trace-events | 14 +- hw/intc/xics.c | 724 +++++++++++--------------------------- hw/intc/xics_kvm.c | 92 +++-- hw/intc/xics_spapr.c | 460 ++++++++++++++++++++++++ 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/spapr.h | 2 +- include/hw/ppc/spapr_vio.h | 2 +- include/hw/ppc/xics.h | 79 +++-- 15 files changed, 803 insertions(+), 619 deletions(-) create mode 100644 hw/intc/xics_spapr.c -- 2.7.4