From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPSvD-0000Iv-Qm for qemu-devel@nongnu.org; Mon, 26 Jun 2017 08:15:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPSvC-0002dZ-UT for qemu-devel@nongnu.org; Mon, 26 Jun 2017 08:15:15 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:36530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPSvC-0002cl-NV for qemu-devel@nongnu.org; Mon, 26 Jun 2017 08:15:14 -0400 Received: by mail-wm0-x230.google.com with SMTP id 62so5600763wmw.1 for ; Mon, 26 Jun 2017 05:15:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87mv8vc5va.fsf@frigg.lan> References: <8760fqorbp.fsf@frigg.lan> <87mv91tn7d.fsf@linaro.org> <87r2y8gsy1.fsf@frigg.lan> <87efu89di5.fsf@linaro.org> <87shindrqi.fsf@frigg.lan> <87mv8vc5va.fsf@frigg.lan> From: Peter Maydell Date: Mon, 26 Jun 2017 13:14:52 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Tracing guest virtual addresses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Jayanto Minocha , QEMU Developers On 26 June 2017 at 13:04, Llu=C3=ADs Vilanova wrote: > Peter Maydell writes: > >> On 26 June 2017 at 10:26, Llu=C3=ADs Vilanova wrot= e: >>> There's two places where memory access tracing is triggered: >>> >>> * tcg_gen_qemu_ld/st_... >>> * ld/st templates (both softmmu and user) >>> >>> AFAIK, helpers use the ld/st templates to access guest memory. > >> Mostly, but there are one or two special cases, for instance >> the ARM HELPER(dc_zva) in target/arm/helper.c, which has a >> fastpath that uses tlb_vaddr_to_host to look up the host memory >> address and then memset to do the clear-to-zeroes operation. > > Should that be replaced with a cpu_memset or similar? Possibly -- PPC and S390 also have a fast-memset like this (and S390 also has a fast-memmove). However I would be wary of there being architecture-specific corner cases (eg needing to get the right vaddr for a fault if the accesses fault). thanks -- PMM