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.


minor bug fixes, and copyright additions
Jack Lange [Thu, 2 Oct 2008 23:06:39 +0000 (18:06 -0500)]
palacios/include/devices/cdrom.h
palacios/include/devices/ramdisk.h
palacios/src/devices/cdrom.c
palacios/src/devices/generic.c
palacios/src/devices/ramdisk.c

index fb49ad9..18dc385 100644 (file)
@@ -1,8 +1,6 @@
-/*
- * Zheng Cui
- * cuizheng@cs.unm.edu
- * July 2008
- */
+/* (c) 2008, Zheng Cui <cuizheng@cs.unm.edu> */
+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
 
 #ifndef __DEVICES_CDROM_H_
 #define __DEVICES_CDROM_H_
index 77eb44d..fa95695 100644 (file)
@@ -1,8 +1,6 @@
-/*
- * Zheng Cui
- * cuizheng@cs.unm.edu
- * July 2008
- */
+/* (c) 2008, Zheng Cui <cuizheng@cs.unm.edu> */
+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
 
 #ifndef __DEVICES_RAMDISK_H_
 #define __DEVICES_RAMDISK_H_
index fc833a8..a4f8dd5 100644 (file)
@@ -1,9 +1,6 @@
-/*
- * Zheng Cui
- * cuizheng@cs.unm.edu
- * July 2008
- */
-
+/* (c) 2008, Zheng Cui <cuizheng@cs.unm.edu> */
+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
 
 #include <devices/cdrom.h>
 #include <palacios/vmm.h>
index dc018ab..98836d1 100644 (file)
@@ -101,10 +101,6 @@ int generic_write_port_passthrough(ushort_t port,
 
   switch (length) {
   case 1:
-<<<<<<< HEAD:palacios/src/devices/generic.c
-=======
-
->>>>>>> ramdisk:palacios/src/devices/generic.c
     v3_outb(port,((uchar_t*)src)[0]);
     break;
   case 2:
@@ -112,10 +108,6 @@ int generic_write_port_passthrough(ushort_t port,
     break;
   case 4:
     v3_outdw(port,((uint_t*)src)[0]);
-<<<<<<< HEAD:palacios/src/devices/generic.c
-=======
-
->>>>>>> ramdisk:palacios/src/devices/generic.c
     break;
   default:
     for (i = 0; i < length; i++) { 
index 05d9333..d20fa88 100644 (file)
@@ -1,14 +1,14 @@
-/*
- * Zheng Cui
- * cuizheng@cs.unm.edu
- * July 2008
- */
+/* (c) 2008, Zheng Cui <cuizheng@cs.unm.edu> */
+/* (c) 2008, Jack Lange <jarusl@cs.northwestern.edu> */
+/* (c) 2008, The V3VEE Project <http://www.v3vee.org> */
+
+
 
 #include <devices/ramdisk.h>
 #include <palacios/vmm.h>
 #include <devices/cdrom.h>
 #include <devices/ide.h>
-#include <devices/atapi.h>
+
 
 #ifndef DEBUG_RAMDISK
 #undef PrintDebug
@@ -1275,7 +1275,7 @@ static int write_general_port(ushort_t port, void * src, uint_t length, struct v
     }
   default:
     PrintError("\t\thard drive: io write to unhandled port 0x%x  (value = %c)\n", port, value);
-    return -1;
+    //return -1;
   }
 
   return length;
@@ -1999,13 +1999,17 @@ int rd_init_send_atapi_command(struct vm_device * dev, struct channel_t * channe
 
 void rd_atapi_cmd_error(struct vm_device * dev, struct channel_t * channel, sense_t sense_key, asc_t asc)
 {
-  struct ramdisk_t *ramdisk = (struct ramdisk_t *)(dev->private_data);
   struct drive_t * drive = &(channel->drives[channel->drive_select]);
   struct controller_t * controller = &(drive->controller);
 
-  PrintDebug("[rd_atapi_cmd_error]\n");
-  PrintDebug("Error: atapi_cmd_error channel=%02x key=%02x asc=%02x\n", 
-            get_channel_no(ramdisk, channel), sense_key, asc);
+#ifdef DEBUG_RAMDISK
+  {
+    struct ramdisk_t *ramdisk = (struct ramdisk_t *)(dev->private_data);
+    PrintDebug("[rd_atapi_cmd_error]\n");
+    PrintDebug("Error: atapi_cmd_error channel=%02x key=%02x asc=%02x\n", 
+              get_channel_no(ramdisk, channel), sense_key, asc);
+  }
+#endif
 
   controller->error_register = sense_key << 4;
   controller->interrupt_reason.i_o = 1;