From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz4cG-0002qo-I1 for qemu-devel@nongnu.org; Tue, 16 Jul 2013 08:44:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz4cF-0001rd-CE for qemu-devel@nongnu.org; Tue, 16 Jul 2013 08:44:28 -0400 Received: from david.siemens.de ([192.35.17.14]:20326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz4cF-0001rM-2a for qemu-devel@nongnu.org; Tue, 16 Jul 2013 08:44:27 -0400 Message-ID: <51E54027.1060302@siemens.com> Date: Tue, 16 Jul 2013 14:44:23 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1369947836-2638-1-git-send-email-pbonzini@redhat.com> <1369947836-2638-7-git-send-email-pbonzini@redhat.com> <51E53C62.3070204@siemens.com> <51E53D7E.4060002@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 06/22] memory: dispatch unassigned accesses based on .valid.accepts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , "qemu-devel@nongnu.org" , Stefan Hajnoczi On 2013-07-16 14:38, Peter Maydell wrote: > On 16 July 2013 13:33, Paolo Bonzini wrote: >> Il 16/07/2013 14:28, Jan Kiszka ha scritto: >>> This changed the value read from unassigned memory from -1 to 0. Any >>> particular reason or an unintentional change? >> >> Cut-and-paste (unassigned RAM used to return 0, invalid MMIO used to >> return -1, unifying the paths dropped the difference). >> >> I guess unassigned RAM can read as -1 just fine, so we can just change >> unassigned_mem_read to return -1. > > Behaviour for accesses to unassigned addresses should really > be both bus and CPU specific... Yes, that's what I was thinking as well when reading it. Still, lets restore what we did before, then refine. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux