From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5uPh-0002LF-05 for qemu-devel@nongnu.org; Sat, 21 Oct 2017 10:06:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5uPd-0005R5-QJ for qemu-devel@nongnu.org; Sat, 21 Oct 2017 10:06:08 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:42483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5uPd-0005QP-Fm for qemu-devel@nongnu.org; Sat, 21 Oct 2017 10:06:05 -0400 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <87d16o53xr.fsf@frigg.lan> <87o9pywt8k.fsf@frigg.lan> <87shf5zlty.fsf@frigg.lan> <20170929175943.GA25038@flamenco> <87vak1w53a.fsf@frigg.lan> <20170930180941.GA22048@flamenco> <8760bu333n.fsf@frigg.lan> <20171005005043.GA20425@flamenco> <87vajsl3h7.fsf@frigg.lan> <20171006175929.GA28281@flamenco> <87tvz08jc3.fsf@frigg.lan> Date: Sat, 21 Oct 2017 17:05:46 +0300 In-Reply-To: (Peter Maydell's message of "Sun, 15 Oct 2017 17:47:21 +0100") Message-ID: <877evo8ukl.fsf@frigg.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v6 01/22] instrument: Add documentation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "Emilio G. Cota" , QEMU Developers , Stefan Hajnoczi , Markus Armbruster Peter Maydell writes: > On 15 October 2017 at 17:30, Llu=C3=ADs Vilanova wr= ote: >> Thinking about it, shouldn't this always be the same given QEMU's TLB/pa= ge table >> consistency assurances? > What TLB/page table consistency assurances? For ARM at least > we will only update (ie flush) the TLB when the guest next > executes a relevant TLB maintenance instruction. So a > misbehaving guest can set things up so the page table > is completely different from what's in QEMU's TLB if it > wants. This all falls in the realms of architecturally > unpredictable behaviour for the guest -- whether you > want the instrumentation to be confused as well is a > different question... I meant that if the contents of a virtual memory page change while QEMU is translating an instruction, it must be able to detect that and act accordin= gly for correctness. Having that in mind, the same should hold true when an instrumentor reads a page's contents during translation (e.g., to gather information on opcodes). Cheers, Lluis