From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Chen, Tiejun" Subject: Re: [v4][PATCH 15/19] tools: introduce a new parameter to set a predefined rdm boundary Date: Fri, 26 Jun 2015 14:54:15 +0800 Message-ID: <558CF717.4030506@intel.com> References: <1435053450-25131-1-git-send-email-tiejun.chen@intel.com> <1435053450-25131-16-git-send-email-tiejun.chen@intel.com> <20150625112747.GK6545@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20150625112747.GK6545@zion.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Stefano Stabellini , Ian Jackson , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >> diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5 >> index 638b350..079465f 100644 >> --- a/docs/man/xl.cfg.pod.5 >> +++ b/docs/man/xl.cfg.pod.5 >> @@ -767,6 +767,27 @@ to a given device, and "strict" is default here. >> >> Note this would override global B option. >> >> +=item B >> + >> +Number of megabytes to set a boundary for checking rdm conflict. >> + >> +When RDM conflicts with RAM, RDM probably scatter the whole RAM space. >> +Especially multiple RDM entries would worsen this to lead a complicated >> +memory layout. So here we're trying to figure out a simple solution to >> +avoid breaking existing layout. So when a conflict occurs, >> + >> + #1. Above a predefined boundary >> + - move lowmem_end below reserved region to solve conflict; >> + >> + #2. Below a predefined boundary >> + - Check strict/relaxed policy. >> + "strict" policy leads to fail libxl. Note when both policies >> + are specified on a given region, 'strict' is always preferred. >> + "relaxed" policy issue a warning message and also mask this entry INVALID >> + to indicate we shouldn't expose this entry to hvmloader. >> + > > Can you check the generated manpage to see if the format is correct? > Yes, the format is correct but according to your comment below, I need to move this elsewhere. >> +Here the default is 2G. >> + >> =back >> [snip] >> if (ret) { >> LOG(ERROR, "checking reserved device memory failed"); >> diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl >> index 5ba075d..d130d48 100644 >> --- a/tools/libxl/libxl_types.idl >> +++ b/tools/libxl/libxl_types.idl >> @@ -395,6 +395,7 @@ libxl_domain_build_info = Struct("domain_build_info",[ >> ("target_memkb", MemKB), >> ("video_memkb", MemKB), >> ("shadow_memkb", MemKB), >> + ("rdm_mem_boundary_memkb", MemKB), > > Should this be restricted to .hvm? This is HVM only feature after all. > Yes, I think this make sense but I think should move that parameter, "rdm" into .hvm as well. Thanks Tiejun