From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [ help! ] tools/libxl/libxl.c is of no use? Date: Mon, 5 Aug 2013 09:44:25 +0100 Message-ID: <51FF65E9.6090301@citrix.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4584815906712278939==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Li Yechen Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============4584815906712278939== Content-Type: multipart/alternative; boundary="------------030207070308080107010608" --------------030207070308080107010608 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On 05/08/13 01:15, Li Yechen wrote: > my xen version is 4.2.1 > not matter how I modify the function : libxl_set_memory_target > in libxl.c, ie: add return 0, or assert ... > the xl command behaves the same. > > > an example is: > run a guest domain, and use command: xl mem-set GUESTID 33333333 > then it will output an error as: libxl: error: > libxl.c:3455:libxl_set_memory_target: memory_dynamic_max must be less > than or equal to memory_static_max > > this error message is in tools/libxl/libxl.c, near LINE 3428, in the > if (new_target_memkb > memorykb){LIBXL__LOG.} > > change the message to any characters, recompile and install xen, reboot > xl mem-set GUESTID 33333333, the original message come out again! > > I have been trapped in this for ten hours. Has anyone ever modified > the libxl.c successfully? > libxl.c forms part of libxenlight.so.$VERSION, so unless you are reinstalling your librarys rather than just reinstalling `xl`, you really wont see any difference. ~Andrew > > > -- > Yechen Li > > Team of System Virtualization and Cloud Computing > School of Electronic Engineering and Computer Science, > Peking University, China > > Nothing is impossible because impossible itself says: " I'm possible " > lccycc From PKU > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel --------------030207070308080107010608 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit
On 05/08/13 01:15, Li Yechen wrote:
my xen version is 4.2.1
not matter how I modify the function : libxl_set_memory_target 
in libxl.c, ie: add return 0, or assert ...
the xl command behaves the same.


an example is:
run a guest domain, and use command: xl mem-set GUESTID 33333333
then it will output an error as: libxl: error: libxl.c:3455:libxl_set_memory_target: memory_dynamic_max must be less than or equal to memory_static_max

this error message is in tools/libxl/libxl.c, near LINE 3428, in the if (new_target_memkb > memorykb){LIBXL__LOG.}

change the message to any characters, recompile and install xen, reboot
xl mem-set GUESTID 33333333, the original message come out again!

I have been trapped in this for ten hours. Has anyone ever modified the libxl.c successfully?


libxl.c forms part of libxenlight.so.$VERSION, so unless you are reinstalling your librarys rather than just reinstalling `xl`, you really wont see any difference.

~Andrew



--
Yechen Li

Team of System Virtualization and Cloud Computing 
School of Electronic Engineering  and Computer Science

Peking University, China

Nothing is impossible because impossible itself  says: " I'm possible "
lccycc From PKU


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

--------------030207070308080107010608-- --===============4584815906712278939== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4584815906712278939==--