[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] small cleanups


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.