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?