On 02/13/2014 09:13 AM, Igor Mammedov wrote: > Adds option to -m > "mem" - startup memory amount > > For compatibility with legacy CLI if suffix-less number is passed, > it assumes amount in MiB. > > Otherwise user is free to use suffixed number using suffixes b,k/K,M,G > > Signed-off-by: Igor Mammedov > Signed-off-by: Paolo Bonzini > --- > v3: > - fixes suggested by Eric Blake > - check for empty string in more efficient way > - fix MB/MiB inconsistency > - use EXIT_FAILURE instead of 1 > - add missing exit() if overflow occurres Reviewed-by: Eric Blake -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org