From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7SMv-00049L-Lp for qemu-devel@nongnu.org; Thu, 08 Aug 2013 11:43:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7SMo-0003qo-6U for qemu-devel@nongnu.org; Thu, 08 Aug 2013 11:43:17 -0400 Received: from goliath.siemens.de ([192.35.17.28]:15546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7SMn-0003q1-Tj for qemu-devel@nongnu.org; Thu, 08 Aug 2013 11:43:10 -0400 Message-ID: <5203BC8A.8040605@siemens.com> Date: Thu, 08 Aug 2013 17:43:06 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <51FCBFCD.5020608@web.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] memory: Provide separate handling of unassigned io ports accesses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paolo Bonzini , qemu-devel On 2013-08-08 17:33, Peter Maydell wrote: > On 3 August 2013 09:31, Jan Kiszka wrote: >> --- a/ioport.c >> +++ b/ioport.c >> @@ -44,6 +44,22 @@ typedef struct MemoryRegionPortioList { >> MemoryRegionPortio ports[]; >> } MemoryRegionPortioList; >> >> +static uint64_t unassigned_io_read(void *opaque, hwaddr addr, unsigned size) >> +{ >> + return -1UL; > > This should probably be "-1ULL", otherwise we'll return > different values on 32 bit and 64 bit hosts. (Actually > managing a 64 bit read of the i/o space is pretty > unlikely, though possibly alpha memory-mapped via the > PCI space might let you do it.) No problem with changing this - but wouldn't 64-bit i/o accesses be a bug? It's not allowed according to PCI, no device can handle it (officially), so no arch should forward such requests from mmio, rather break them up first. > > PS: something about the way these patches were submitted > has confused Anthony's patches tool -- it reports them > as two separate patches rather than a single series. > (No cover letter, maybe?) Something on my side broke the reference from the second to the first email. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux