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.


Integrated vmm_file and filedisk - now compiles
Peter Dinda [Thu, 5 Aug 2010 18:43:39 +0000 (13:43 -0500)]
palacios/include/palacios/vmm_file.h
palacios/src/devices/filedisk.c

index ea8dd97..20718c3 100644 (file)
     ({                                                                 \
        extern struct v3_file_hooks *file_hooks;                                \
        ((file_hooks) && (file_hooks)->file_read) ?                             \
-           (file_hooks)->file_read((fd),(start),(buf),(length)) : -1 ;  \
+           (file_hooks)->file_read((fd),(start),(buf),(len)) : -1 ;  \
     })
 
 #define V3_FileWrite(fd,start,buf,len)                                 \
     ({                                                                 \
        extern struct v3_file_hooks *file_hooks;                                \
        ((file_hooks) && (file_hooks)->file_write) ?                            \
-           (file_hooks)->file_write((fd),(start),(buf),(length)) : -1 ;  \
+           (file_hooks)->file_write((fd),(start),(buf),(len)) : -1 ;  \
     })
 
 
index 3c6e573..d58c30f 100644 (file)
@@ -90,7 +90,6 @@ static struct v3_device_ops dev_ops = {
 
 static int disk_init(struct guest_info * vm, v3_cfg_tree_t * cfg) {
     struct disk_state * disk = NULL;
-    struct v3_cfg_file * file = NULL;
     char * name = v3_cfg_val(cfg, "filename");
     char * filename = v3_cfg_val(cfg, "file");