From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRj99-0008Ld-AT for qemu-devel@nongnu.org; Fri, 26 Oct 2012 08:36:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRj93-0005Ab-HC for qemu-devel@nongnu.org; Fri, 26 Oct 2012 08:36:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRj93-0005AV-8s for qemu-devel@nongnu.org; Fri, 26 Oct 2012 08:36:13 -0400 Message-ID: <508A83B7.8050401@redhat.com> Date: Fri, 26 Oct 2012 14:36:07 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <0c11f3611c74b87c53cfff65ea24f8d6ec82f666.1351229557.git.peter.crosthwaite@xilinx.com> In-Reply-To: <0c11f3611c74b87c53cfff65ea24f8d6ec82f666.1351229557.git.peter.crosthwaite@xilinx.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 11/11] usb/ehci: Put RAM in undefined MMIO regions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: vineshp@xilinx.com, peter.maydell@linaro.org, qemu-devel@nongnu.org, john.williams@xilinx.com, edgar.iglesias@gmail.com, afaerber@suse.de On 10/26/12 07:47, Peter Crosthwaite wrote: > Just put RAM regions in the unimplemented spaces in the MMIO region. These > regions have undefined behaviour, but this at least stops QEMU from segfaulting > when the guest bangs on these registers (and sucessfully fakes reading and > writing the registers with no side effects). Make that an io region, have the read() handler return 0xff, write handler do nothing except maybe logging/tracing the access for debugging purposes. That is more correct for unassigned mmio space than backing by memory. Adding memory also breaks migration btw. I somehow still think this should be handled one layer up (i.e. the parent region) which could do the approximate arch-specific action. Any chance the access you are seeing is at offset 0x68? cheers, Gerd