From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk39M-0001IN-VF for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:54:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk39H-0003Df-MB for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:54:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:50195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk39H-0003DW-Ch for qemu-devel@nongnu.org; Wed, 14 Sep 2016 01:54:19 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8E5qmrr076131 for ; Wed, 14 Sep 2016 01:54:17 -0400 Received: from e23smtp03.au.ibm.com (e23smtp03.au.ibm.com [202.81.31.145]) by mx0a-001b2d01.pphosted.com with ESMTP id 25exqq52y2-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 14 Sep 2016 01:54:17 -0400 Received: from localhost by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 14 Sep 2016 15:54:14 +1000 From: Nikunj A Dadhania Date: Wed, 14 Sep 2016 11:23:59 +0530 Message-Id: <1473832442-17762-1-git-send-email-nikunj@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v4 0/3] ppc: handle broadcast tlb flush 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 failed to handle broadcast TLB flush operations. Executing instructions that are defined architecturally as synchronizing global TLB should have a global effect. * tlbie on BookS * tlbivax on BookE * H_CALLs (H_REMOVE, H_BULK_REMOVE and H_PROTECT) in case of pseries, since they contain a tlbie on a real hypervisor. 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. Changelog v3: * Updated commit messages and cover letter(benh) Nikunj A Dadhania (3): target-ppc: add TLB_NEED_LOCAL_FLUSH flag target-ppc: add flag in chech_tlb_flush() target-ppc: tlbie/tlbivax 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