xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [ help! ] tools/libxl/libxl.c is of no use?
@ 2013-08-05  0:15 Li Yechen
  2013-08-05  0:39 ` Wei Liu
  2013-08-05  8:44 ` Andrew Cooper
  0 siblings, 2 replies; 3+ messages in thread
From: Li Yechen @ 2013-08-05  0:15 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 986 bytes --]

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?



-- 
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

[-- Attachment #1.2: Type: text/html, Size: 1788 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-05  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05  0:15 [ help! ] tools/libxl/libxl.c is of no use? Li Yechen
2013-08-05  0:39 ` Wei Liu
2013-08-05  8:44 ` Andrew Cooper

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).