Received: from eggs.gnu.org ([2001:4830:134:3::10]:54622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjK6v-0007tU-HP for qemu-devel@nongnu.org; Mon, 12 Sep 2016 01:48:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjK6r-0001of-96 for qemu-devel@nongnu.org; Mon, 12 Sep 2016 01:48:52 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49036 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjK6r-0001oE-3X for qemu-devel@nongnu.org; Mon, 12 Sep 2016 01:48:49 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8C5mBEO105356 for ; Mon, 12 Sep 2016 01:48:48 -0400 Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) by mx0a-001b2d01.pphosted.com with ESMTP id 25ce266cu6-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 12 Sep 2016 01:48:48 -0400 Received: from localhost by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Sep 2016 15:48:45 +1000 From: Nikunj A Dadhania Date: Mon, 12 Sep 2016 11:18:31 +0530 Message-Id: <1473659314-11813-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v3 0/3] ppc: Broadcast tlb flush should have global effect List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org, david@gibson.dropbear.id.au, benh@kernel.crashing.org Cc: alex.bennee@linaro.org, qemu-devel@nongnu.org, rth@twiddle.net, nikunj@linux.vnet.ibm.com PowerPC targets should do tlb invalidation on other cpus on instructions that expect a global effect. * ptesync for BookS * tlbsync primarily for BookE (for BookS make it a nop, as it always come along with ptesync) * tlbivax for other ppc tragets * H_REMOVE, H_BULK_REMOVE and H_PROTECT hcalls in case of pseries The implementation provides a single point that can be used in MTTCG for doing async-flushes. The patchset introduces bit-flags in CPUPPCState::tlb_need_flush: TLB_NEED_LOCAL_FLUSH (0x1) - Flush local tlb TLB_NEED_GLOBAL_FLUSH (0x2) - Flush tlb on other cpus. Nikunj A Dadhania (3): target-ppc: add TLB_NEED_LOCAL_FLUSH flag target-ppc: add flag in chech_tlb_flush() target-ppc: tlbie should have global effect hw/ppc/spapr_hcall.c | 6 ++++-- target-ppc/cpu.h | 2 ++ target-ppc/excp_helper.c | 4 ++-- target-ppc/helper.h | 2 +- target-ppc/helper_regs.h | 25 +++++++++++++++++++++---- target-ppc/mmu-hash64.c | 6 +++--- target-ppc/mmu_helper.c | 20 ++++++++++++-------- target-ppc/translate.c | 26 ++++++++++++++++---------- 8 files changed, 61 insertions(+), 30 deletions(-) -- 2.7.4