Received: from eggs.gnu.org ([2001:4830:134:3::10]:48672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH6qp-0005TT-Ma for qemu-devel@nongnu.org; Mon, 20 Jul 2015 04:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZH6qm-0004Hi-GZ for qemu-devel@nongnu.org; Mon, 20 Jul 2015 04:55:07 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:21688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZH6qm-0004Cn-An for qemu-devel@nongnu.org; Mon, 20 Jul 2015 04:55:04 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NRS000LW3FPG180@mailout2.w1.samsung.com> for qemu-devel@nongnu.org; Mon, 20 Jul 2015 09:55:01 +0100 (BST) From: Pavel Fedin Date: Mon, 20 Jul 2015 11:55:00 +0300 Message-id: <00ee01d0c2c9$c308c010$491a4030$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-language: ru Subject: [Qemu-devel] [RFC] Virt machine memory map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: 'Peter Maydell' Hello! In our project we work on a very fast paravirtualized network I/O drivers, based on ivshmem. We successfully got ivshmem working on ARM, however with one hack. Currently we have: --- cut --- [VIRT_PCIE_MMIO] = { 0x10000000, 0x2eff0000 }, [VIRT_PCIE_PIO] = { 0x3eff0000, 0x00010000 }, [VIRT_PCIE_ECAM] = { 0x3f000000, 0x01000000 }, [VIRT_MEM] = { 0x40000000, 30ULL * 1024 * 1024 * 1024 }, --- cut --- And MMIO region is not enough for us because we want to have 1GB mapping for PCI device. In order to make it working, we modify the map as follows: --- cut --- [VIRT_PCIE_MMIO] = { 0x10000000, 0x7eff0000 }, [VIRT_PCIE_PIO] = { 0x8eff0000, 0x00010000 }, [VIRT_PCIE_ECAM] = { 0x8f000000, 0x01000000 }, [VIRT_MEM] = { 0x90000000, 30ULL * 1024 * 1024 * 1024 }, --- cut --- The question is - how could we upstream this? I believe modifying 32-bit virt memory map this way is not good. Will it be OK to have different memory map for 64-bit virt ? Another possible approach is not to use PCI, but MMIO instead, and just specify our region in the device tree. This way we work around the limitation of having only a single PCI MMIO region, and we could happily place our 1GB device after system RAM. Any opinions ? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia