DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Liu, Jijiang" <jijiang.liu@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Stephen Hemminger <shemming@brocade.com>
Subject: Re: [dpdk-dev] [PATCH 1/4] xen: allow choosing dom0 support at runtime
Date: Thu, 26 Feb 2015 06:53:24 +0000	[thread overview]
Message-ID: <1ED644BD7E0A5F4091CF203DAFB8E4CC01DDF030@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20150215092747.2f6a4822@uryu.home.lan>



> -----Original Message-----
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Sunday, February 15, 2015 10:28 PM
> To: Liu, Jijiang
> Cc: Stephen Hemminger; dev@dpdk.org
> Subject: Re: [dpdk-dev] [PATCH 1/4] xen: allow choosing dom0 support at
> runtime
> 
> On Sun, 15 Feb 2015 04:07:21 +0000
> "Liu, Jijiang" <jijiang.liu@intel.com> wrote:
> 
> > Hi Stephen,
> >
> > What do you mean ' allow choosing dom0 support at runtime'?
> > If you mean user can choose DPDK  to run Xen Dom0 or not on DOM0 by a
> runtime flag, I don't think your change can achieve this goal.
> >
> > Thanks
> > Jijiang Liu
> 
> With the existing DPDK model if application is built with DOM0 support it will
> not work (it crashes) if the application is run in a non DOM0 environment (with
> real huge pages). And vice-versa if application is built without DOM0 support
> and it will crash if run in Xen Paravirt mode.
> 
> This patch allows the library to be built in such a way that only one version
> needs to be shipped which is important for distro's like RHEL who want to ship a
> shared library. And also important for users like Brocade/Vyatta who build one
> binary that needs to work on bare Linux and in Xen PV mode.
> 
Ok, thanks for the explanation.

Could you  replace 'internal_config.xen_dom0_support' with  'is_xen_dom0_supported()' in the function  rte_eal_hugepage_init()?

/* check if app runs on Xen Dom0 */
	if (internal_config.xen_dom0_support) {
#ifdef RTE_LIBRTE_XEN_DOM0
		/* use dom0_mm kernel driver to init memory */
		if (rte_xen_dom0_memory_init() < 0)
			return -1;
		else
			return 0;
#endif

  reply	other threads:[~2015-02-26  6:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-15  4:07 Liu, Jijiang
2015-02-15 14:27 ` Stephen Hemminger
2015-02-26  6:53   ` Liu, Jijiang [this message]
2015-02-26  7:05     ` Stephen Hemminger
  -- strict thread matches above, loose matches on Subject: below --
2015-02-14 18:06 Stephen Hemminger
2015-02-14 19:25 ` Neil Horman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ED644BD7E0A5F4091CF203DAFB8E4CC01DDF030@SHSMSX101.ccr.corp.intel.com \
    --to=jijiang.liu@intel.com \
    --cc=dev@dpdk.org \
    --cc=shemming@brocade.com \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).