Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cf5pK-00060C-Ac for qemu-devel@nongnu.org; Thu, 16 Dec 2004 19:18:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cf5pI-0005zL-0p for qemu-devel@nongnu.org; Thu, 16 Dec 2004 19:18:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cf5pH-0005yv-Na for qemu-devel@nongnu.org; Thu, 16 Dec 2004 19:18:31 -0500 Received: from [131.111.8.135] (helo=ppsw-5.csi.cam.ac.uk) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cf5eb-0007cx-7j for qemu-devel@nongnu.org; Thu, 16 Dec 2004 19:07:29 -0500 From: Mark Williamson Subject: Re: [Qemu-devel] page fault during ins Date: Fri, 17 Dec 2004 00:07:15 +0000 References: <41BF5DBF.2050101@bellard.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412170007.15316.maw48@cl.cam.ac.uk> Sender: maw48@hermes.cam.ac.uk Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > Do we have any device where iomem read changes device state? It seems like a plausible thing to do, despite seemingly slightly strange semantically. > Wouldn't such hardware cause problems with speculative execution > (memory reads) on some real CPUs? Or am I missing something? IO memory regions would have a flag(s) set in the relevant page tables telling the CPU that it's not real memory. This flag would be set by the operating system. This allows the CPU to maintain correct semantics for such devices (not reordering writes, not caching reads, etc), whilst still being able to optimise accesses to physical RAM aggressively. Cheers, Mark