From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Y9g-0007Ox-5j for qemu-devel@nongnu.org; Fri, 09 Jan 2015 06:55:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Y9b-0003gG-3F for qemu-devel@nongnu.org; Fri, 09 Jan 2015 06:55:04 -0500 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:53143) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Y9a-0003fv-QT for qemu-devel@nongnu.org; Fri, 09 Jan 2015 06:54:59 -0500 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 9 Jan 2015 11:54:56 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id C21102190046 for ; Fri, 9 Jan 2015 11:54:22 +0000 (GMT) Received: from d06av12.portsmouth.uk.ibm.com (d06av12.portsmouth.uk.ibm.com [9.149.37.247]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t09BssFR59834404 for ; Fri, 9 Jan 2015 11:54:54 GMT Received: from d06av12.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av12.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t09BsrSU017230 for ; Fri, 9 Jan 2015 04:54:54 -0700 Date: Fri, 9 Jan 2015 12:54:51 +0100 From: Cornelia Huck Message-ID: <20150109125451.4b33a41d.cornelia.huck@de.ibm.com> In-Reply-To: <1420790680-3266-2-git-send-email-blaschka@linux.vnet.ibm.com> References: <1420790680-3266-1-git-send-email-blaschka@linux.vnet.ibm.com> <1420790680-3266-2-git-send-email-blaschka@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/3 V3] s390: Add PCI bus support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frank Blaschka Cc: borntraeger@de.ibm.com, Frank Blaschka , qemu-devel@nongnu.org On Fri, 9 Jan 2015 09:04:38 +0100 Frank Blaschka wrote: > +static IOMMUTLBEntry s390_translate_iommu(MemoryRegion *iommu, hwaddr addr, > + bool is_write) > +{ > + uint64_t pte; > + uint32_t flags; > + S390PCIBusDevice *pbdev = container_of(iommu, S390PCIBusDevice, mr); > + S390pciState *s = S390_PCI_HOST_BRIDGE(pci_device_root_bus(pbdev->pdev) > + ->qbus.parent); > + IOMMUTLBEntry ret = { > + .target_as = &address_space_memory, > + .iova = 0, > + .translated_addr = 0, > + .addr_mask = ~(hwaddr)0, > + .perm = IOMMU_NONE, > + }; > + > + DPRINTF("iommu trans addr 0x%lx\n", addr); This won't compile on 32 bit with debugging enabled (needs to be PRIx64). No need to resend the series, though; I've fixed up this and the other occurence in this file (and the two in the inst code) since it is a trivial change. > + > + /* s390 does not have an APIC maped to main storage so we use ^ And while at it, I also fixed up this typo :) > + * a separate AddressSpace only for msix notifications > + */