From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: [RFC 15/19] xen/arm: Reserve region in guest memory for device passthrough Date: Mon, 16 Jun 2014 17:18:02 +0100 Message-ID: <1402935486-29136-16-git-send-email-julien.grall@linaro.org> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WwZcD-0006sT-TK for xen-devel@lists.xenproject.org; Mon, 16 Jun 2014 16:18:38 +0000 Received: by mail-wg0-f51.google.com with SMTP id x12so5698446wgg.34 for ; Mon, 16 Jun 2014 09:18:36 -0700 (PDT) In-Reply-To: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org This region will be split by the toolstack to allocate MMIO range for eac device. For now only reserve a 512MB region, this should be enought to passthrough multiple device at the same time. Signed-off-by: Julien Grall --- xen/include/public/arch-arm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h index ac54cd6..789bffb 100644 --- a/xen/include/public/arch-arm.h +++ b/xen/include/public/arch-arm.h @@ -369,6 +369,10 @@ typedef uint64_t xen_callback_t; #define GUEST_GICC_BASE 0x03002000ULL #define GUEST_GICC_SIZE 0x00000100ULL +/* Space for mapping MMIO from device passthrough: 512MB @ 256MB*/ +#define GUEST_MMIO_BASE 0x10000000ULL +#define GUEST_MMIO_SIZE 0x20000000ULL + /* 16MB == 4096 pages reserved for guest to use as a region to map its * grant table in. */ -- 1.7.10.4