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.


Linux printing macros for linux module
Ben Scholbrock [Tue, 19 Jun 2012 20:44:39 +0000 (15:44 -0500)]
linux_module/palacios.h

index 6450887..7b48adb 100644 (file)
 
 #define V3_VM_KSTREAM_USER_CONNECT (11244+1)
 
+// KERN_EMERG    "<0>"  /* system is unusable               */
+// KERN_ALERT    "<1>"  /* action must be taken immediately */
+// KERN_CRIT     "<2>"  /* critical conditions              */
+// KERN_ERR      "<3>"  /* error conditions                 */
+// KERN_WARNING  "<4>"  /* warning conditions               */
+// KERN_NOTICE   "<5>"  /* normal but significant condition */
+// KERN_INFO     "<6>"  /* informational                    */
+// KERN_DEBUG    "<7>"  /* debug-level messages             */
+
+// All 'printk's should be changed to one of these macros, for easier control
+#define ERROR(fmt, args...) printk((KERN_ERR fmt), ##args)
+#define WARNING(fmt, args...) printk((KERN_WARNING fmt), ##args)
+#define NOTICE(fmt, args...) printk((KERN_NOTICE fmt), ##args)
+#define INFO(fmt, args...) printk((KERN_INFO fmt), ##args)
+#define DEBUG(fmt, args...) printk((KERN_DEBUG fmt), ##args)
 
 struct v3_guest_img {
     unsigned long long size;