From: Peter Dinda Date: Sun, 18 Aug 2013 20:57:27 +0000 (-0500) Subject: Bug fixes to v3_mem X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcf55914f4278b9158b6dc6500d5643172bacaaa;p=palacios.releases.git Bug fixes to v3_mem --- diff --git a/linux_usr/v3_mem.c b/linux_usr/v3_mem.c index 9c04776..ed08f86 100644 --- a/linux_usr/v3_mem.c +++ b/linux_usr/v3_mem.c @@ -72,10 +72,13 @@ int main(int argc, char * argv[]) { case '?': if (optopt=='n') { printf("-n requires the numa node...\n"); + return -1; } else if (optopt=='m') { printf("-m requires the minimum starting address (in MB)...\n"); + return -1; } else { printf("Unknown option %c\n",optopt); + return -1; } break; default: @@ -100,7 +103,7 @@ int main(int argc, char * argv[]) { return -1; } mem.type=PREALLOCATED; - mem.node=0; + mem.node=node; mem.base_addr=base_addr; mem.num_pages=num_bytes/4096; } else {