From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stephen@networkplumber.org>
Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com
 [209.85.223.180]) by dpdk.org (Postfix) with ESMTP id 10E43567F
 for <dev@dpdk.org>; Thu, 26 Feb 2015 17:09:13 +0100 (CET)
Received: by ierx19 with SMTP id x19so17188550ier.3
 for <dev@dpdk.org>; Thu, 26 Feb 2015 08:09:12 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to
 :references:mime-version:content-type:content-transfer-encoding;
 bh=JpTlAuvpSLiIW5I/+VPw6hYhqdNQYnwpGy3TawgCpG4=;
 b=NAAYhkFTdjuRrJ+MT04cbozeMHaWe/b1gZFaWIKJSkvBn3arFC70dumFLL1eee0Q6C
 l3Brub3u3Yie9qOtwoxyyOaV26ajOc5ykGXxqltXhPPYiipMQ8Oow//elKtzB4beYK71
 vlPakHA+2x558sB28TtAeLQqfBediVzf9U6wiTDC+eQQD1QonMGGTk/8fF3zhDhMeHal
 uFj7fCtKMNz46QmWs9BCoV9tb8HR/LAfWnqdA6HDr3bzaUyjbYHZ97XVOXeLgesPgLhw
 1CFEDroZzH6eWDuiSOmS+y+YykEZFcPNIQcCNdaMCyrg/+56jn5ol8A2QZrn1hlZkYZu
 OUPQ==
X-Gm-Message-State: ALoCoQkRScYjMltTxBG4eQ2SGerdF9cYxKBLbPD6Pq2+lVN6w33saTfrR8Nu4jjMgJhttBAbgdiG
X-Received: by 10.50.4.97 with SMTP id j1mr12508451igj.46.1424966952372;
 Thu, 26 Feb 2015 08:09:12 -0800 (PST)
Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net.
 [50.53.82.155])
 by mx.google.com with ESMTPSA id o76sm612450ioi.20.2015.02.26.08.09.11
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 26 Feb 2015 08:09:12 -0800 (PST)
Date: Thu, 26 Feb 2015 08:09:14 -0800
From: Stephen Hemminger <stephen@networkplumber.org>
To: "Liu, Jijiang" <jijiang.liu@intel.com>
Message-ID: <20150226080914.7a3ff49b@urahara>
In-Reply-To: <1ED644BD7E0A5F4091CF203DAFB8E4CC01DDF09A@SHSMSX101.ccr.corp.intel.com>
References: <1424013889-2226-1-git-send-email-shemming@brocade.com>
 <1424013889-2226-3-git-send-email-shemming@brocade.com>
 <1ED644BD7E0A5F4091CF203DAFB8E4CC01DDF09A@SHSMSX101.ccr.corp.intel.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: "dev@dpdk.org" <dev@dpdk.org>, Stephen Hemminger <shemming@brocade.com>
Subject: Re: [dpdk-dev] [PATCH 3/5] xen: add phys-addr command line argument
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Thu, 26 Feb 2015 16:09:13 -0000

On Thu, 26 Feb 2015 07:55:13 +0000
"Liu, Jijiang" <jijiang.liu@intel.com> wrote:

> If the application is built with DOM0 support , the application will run in non Dom0 environment when using the new argument, correct?

Yes.

Our startup script has

    if [ -d /proc/xen ] ; then
        log_progress_msg "xen_uio"
        modprobe xen_uio
        if [ "$(cat /proc/xen/domain)" == "pv" ]; then
            log_progress_msg "rte_dom0_mm"
            modprobe rte_dom0_mm xen_phys_addr=y
            set_domU_memsize
            XEN_ARGS="--xen-dom0 --xen-phys-addr"
        fi
    fi