WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] small cleanups

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] small cleanups
From: "Cihula, Joseph" <joseph.cihula@xxxxxxxxx>
Date: Fri, 11 Nov 2005 01:32:45 -0800
Delivery-date: Fri, 11 Nov 2005 09:32:59 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXmot8vmXRpJxeERzaoSOaVb79bPA==
Thread-topic: [PATCH] small cleanups
Here are a couple of items that I came across (attached as well).

The first fixes the xprintk() function definition so that it is (almost)
empty if this is not a privileged domain.

The second installs libxc/xenguest.h to /usr/include.

Joe

Signed-Off-by: Joseph Cihula <joseph.cihula@xxxxxxxxx>


diff -r b9e8654c3f10 linux-2.6-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6-xen-sparse/drivers/xen/console/console.c        Thu Nov
10 18:43:56 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c        Fri Nov
11 02:29:59 2005
@@ -241,12 +241,9 @@
 #endif

 /*** Useful function for console debugging -- goes straight to Xen.
***/
+asmlinkage int xprintk(const char *fmt, ...)
+{
 #ifdef CONFIG_XEN_PRIVILEGED_GUEST
-asmlinkage int xprintk(const char *fmt, ...)
-#else
-asmlinkage int xprintk(const char *fmt, ...)
-#endif
-{
        va_list args;
        int printk_len;
        static char printk_buf[1024];
@@ -258,7 +255,7 @@

        /* Send the processed output directly to Xen. */
        kcons_write_dom0(NULL, printk_buf, printk_len);
-
+#endif
        return 0;
 }

diff -r b9e8654c3f10 tools/libxc/Makefile
--- a/tools/libxc/Makefile      Thu Nov 10 18:43:56 2005
+++ b/tools/libxc/Makefile      Fri Nov 11 02:29:59 2005
@@ -102,6 +102,7 @@
        $(INSTALL_DATA) libxenguest.a $(DESTDIR)/usr/$(LIBDIR)
        ln -sf libxenguest.so.$(MAJOR).$(MINOR)
$(DESTDIR)/usr/$(LIBDIR)/libxenguest.so.$(MAJOR)
        ln -sf libxenguest.so.$(MAJOR)
$(DESTDIR)/usr/$(LIBDIR)/libxenguest.so
+       $(INSTALL_DATA) xenguest.h $(DESTDIR)/usr/include

 .PHONY: TAGS clean rpm install all

Attachment: misc.patch
Description: misc.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] small cleanups, Cihula, Joseph <=