{"id":833278,"url":"http://patchwork.ozlabs.org/api/1.2/covers/833278/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20171102103559.7382-1-luc.michel@git.antfield.fr/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.2/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20171102103559.7382-1-luc.michel@git.antfield.fr>","list_archive_url":null,"date":"2017-11-02T10:35:58","name":"[0/1] target-ppc: booke206 tlb: fix tlbwe instruction","submitter":{"id":71520,"url":"http://patchwork.ozlabs.org/api/1.2/people/71520/?format=json","name":"Luc MICHEL","email":"luc.michel@git.antfield.fr"},"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/cover/20171102103559.7382-1-luc.michel@git.antfield.fr/mbox/","series":[{"id":11469,"url":"http://patchwork.ozlabs.org/api/1.2/series/11469/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=11469","date":"2017-11-02T10:35:58","name":"target-ppc: booke206 tlb: fix tlbwe instruction","version":1,"mbox":"http://patchwork.ozlabs.org/series/11469/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/833278/comments/","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3ySM142llgz9t30\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu,  2 Nov 2017 21:35:18 +1100 (AEDT)","from localhost ([::1]:59552 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1eACqB-0007Pj-8A\n\tfor incoming@patchwork.ozlabs.org; Thu, 02 Nov 2017 06:35:15 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:50891)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <luc.michel@git.antfield.fr>) id 1eACph-0007PW-HF\n\tfor qemu-devel@nongnu.org; Thu, 02 Nov 2017 06:34:46 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <luc.michel@git.antfield.fr>) id 1eACpe-0005Xr-BX\n\tfor qemu-devel@nongnu.org; Thu, 02 Nov 2017 06:34:45 -0400","from bee.antfield.fr ([188.165.75.195]:36556)\n\tby eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.71) (envelope-from <luc.michel@git.antfield.fr>)\n\tid 1eACpe-0005WI-6L; Thu, 02 Nov 2017 06:34:42 -0400"],"From":"Luc MICHEL <luc.michel@git.antfield.fr>","To":"qemu-devel@nongnu.org","Date":"Thu,  2 Nov 2017 11:35:58 +0100","Message-Id":"<20171102103559.7382-1-luc.michel@git.antfield.fr>","X-Mailer":"git-send-email 2.14.3","X-detected-operating-system":"by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]\n\t[fuzzy]","X-Received-From":"188.165.75.195","Subject":"[Qemu-devel] [PATCH 0/1] target-ppc: booke206 tlb: fix tlbwe\n\tinstruction","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"David Gibson <david@gibson.dropbear.id.au>, qemu-ppc@nongnu.org,\n\tAlexander Graf <agraf@suse.de>, Luc MICHEL <luc.michel@git.antfield.fr>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"},"content":"Hi,\n\nI was experiencing random segmentation faults of userland applications\nin a guest e500 powerpc Linux. After investigating, I found that this\nbug appeared with commit 9fb044911444fdd09f5f072ad0ca269d7f8b841d. This\ncommit introduces more MMU indices to avoid unnecessary TLB flushes when\nthe CPU changes mode.\n\nIt triggers a new bug however, that I finally traced down into the tlbwe\ninstructions simulation. When replacing a valid TLB entry with a new\none, the previous page was not flushed from QEMU TLB.\n\nThis fixes my random crashes in guest Linux. Note that I think there is\na similar issue in booke206_invalidate_ea_tlb but in my case, Linux\nnever triggers this code so I was not able to test.\n\nLuc MICHEL (1):\n  target-ppc: Fix booke206 tlbwe TLB instruction\n\n target/ppc/mmu_helper.c | 23 ++++++++++++++++++-----\n 1 file changed, 18 insertions(+), 5 deletions(-)"}