Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Changed to using strcasecmp to avoid adding library dependencies
Patrick Bridges [Tue, 10 Aug 2010 21:44:48 +0000 (15:44 -0600)]
palacios/src/palacios/vmm_config.c

index bc5aa23..6825066 100644 (file)
@@ -189,9 +189,9 @@ static inline uint32_t get_alignment(char * align_str) {
     uint32_t alignment = PAGE_SIZE_4KB;
 
     if (align_str != NULL) {
-       if (strncasecmp(align_str, "2MB", strlen("2MB")) == 0) {
+       if (strcasecmp(align_str, "2MB") == 0) {
            alignment = PAGE_SIZE_2MB;
-       } else if (strncasecmp(align_str, "4MB", strlen("4MB")) == 0) {
+       } else if (strcasecmp(align_str, "4MB") == 0) {
            alignment = PAGE_SIZE_4MB;
        }
     }