|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [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
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 <=
|
|
|
|
|