From patchwork Mon Jun 16 16:18:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 31983 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9C8D721379 for ; Mon, 16 Jun 2014 16:20:07 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id db11sf26133595veb.5 for ; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=2/1S9WOx9LfMzwyoKtyu/4iHIMTSVYeF8d0jZBXUYKA=; b=k4TB4scjdDeZ+qtPO5fEJu8vdVH58+3e0GXuXDmSBY4EWlLPSEmUBYimOO7N8TwNC7 6tbnIdqE0tneykyiLNWhqqzRyXSHDtPeLE/rhHAXXnrh4/oBjSF0sF870veuI7bZr5KK xo+x5RMhh+5ClNMLX2LvWamGbdVGhaUJ7sCLeXKxkAOUSajhhiz4LZWlTrMRpD/4Fa65 Tc/tBeJ0mrFh0qELiDMFyVQshJBkdyrTRW30tUI9vXRQ+CGP6K1lcYEf13U/cEbN9yZi fGJv/Az0NvhNAqqypDKG/+38s+wKNWQ/jSo7pYPoQwZyHJ4LYfoA+W3M2PvIxgUonqop FiOw== X-Gm-Message-State: ALoCoQlDvcp0UbA4YVN+J4JZEup9zPiz0fcXV6j/OvCeiKPYsfYs9pylu78dVrFuEYyBIlgRmUQI X-Received: by 10.236.128.112 with SMTP id e76mr588524yhi.38.1402935607457; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.183 with SMTP id 52ls4414626qgv.15.gmail; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) X-Received: by 10.58.186.78 with SMTP id fi14mr386996vec.73.1402935607386; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id ot8si4281657vcb.95.2014.06.16.09.20.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Jun 2014 09:20:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so6147162veb.26 for ; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) X-Received: by 10.58.216.163 with SMTP id or3mr94133vec.80.1402935607317; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp146175vcb; Mon, 16 Jun 2014 09:20:07 -0700 (PDT) X-Received: by 10.229.112.5 with SMTP id u5mr28010264qcp.3.1402935606408; Mon, 16 Jun 2014 09:20:06 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id w3si13805610qas.67.2014.06.16.09.20.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 16 Jun 2014 09:20:06 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WwZcF-0006uN-Hb; Mon, 16 Jun 2014 16:18:39 +0000 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: from [193.109.254.147:26017] by server-10.bemta-14.messagelabs.com id 51/DB-04546-DD81F935; Mon, 16 Jun 2014 16:18:37 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-10.tower-27.messagelabs.com!1402935516!11604001!1 X-Originating-IP: [74.125.82.51] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19850 invoked from network); 16 Jun 2014 16:18:36 -0000 Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com) (74.125.82.51) by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 16 Jun 2014 16:18:36 -0000 Received: by mail-wg0-f51.google.com with SMTP id x12so5698446wgg.34 for ; Mon, 16 Jun 2014 09:18:36 -0700 (PDT) X-Received: by 10.180.84.226 with SMTP id c2mr28941234wiz.50.1402935516517; Mon, 16 Jun 2014 09:18:36 -0700 (PDT) Received: from belegaer.uk.xensource.com ([185.25.64.249]) by mx.google.com with ESMTPSA id l45sm34836161eep.25.2014.06.16.09.18.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Jun 2014 09:18:35 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 16 Jun 2014 17:18:02 +0100 Message-Id: <1402935486-29136-16-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> References: <1402935486-29136-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [RFC 15/19] xen/arm: Reserve region in guest memory for device passthrough X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: 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. */