rpms/kernel-xen-2.6/devel linux-2.6-xen-paravirt-nographics-pvfb-fix.patch, NONE, 1.1.2.1

Eduardo Habkost (ehabkost) fedora-extras-commits at redhat.com
Wed Oct 24 17:34:45 UTC 2007


Author: ehabkost

Update of /cvs/pkgs/rpms/kernel-xen-2.6/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31237

Added Files:
      Tag: private-ehabkost-debuginfo-branch
	linux-2.6-xen-paravirt-nographics-pvfb-fix.patch 
Log Message:
Adding missing patch file



linux-2.6-xen-paravirt-nographics-pvfb-fix.patch:

--- NEW FILE linux-2.6-xen-paravirt-nographics-pvfb-fix.patch ---
From: Markus Armbruster <armbru at redhat.com>
Date: Tue, 23 Oct 2007 17:11:05 +0200
Subject: Patch back lost hack to get a working console when PVFB is off

Eduardo,

Dan pointed me to the fact that virt-install --nographics --paravirt
doesn't work in F-7 and Rawhide.  I checked, and found that we lost
our hack to make sure console output goes somewhere sane when PVFB is
off.  The appended patch applies both to kernel-xen-2.6/F-7 and devel.
I built a devel kernel, and it fixes virt-install.

Want me to push it through brew before you take it?



--- a/drivers/xen/console/console.c	2007-10-23 15:42:30.000000000 +0200
+++ b/drivers/xen/console/console.c	2007-10-23 16:05:12.000000000 +0200
@@ -86,10 +86,7 @@
 
 void xencons_early_setup(void)
 {
-	if (is_initial_xendomain())
-		xc_mode = XC_SERIAL;
-	else
-		xc_mode = XC_XVC;
+	xc_mode = XC_XVC;
 }
 
 static int __init xencons_setup(char *str)
@@ -704,6 +701,15 @@
 	printk("Xen virtual console successfully installed as %s%d\n",
 	       DRV(xencons_driver)->name, xc_num);
 
+        /* Check about framebuffer messing up the console */
+        if (!is_initial_xendomain() &&
+	    !xenbus_exists(XBT_NIL, "device", "vfb")) {
+		/* FIXME: this is ugly */
+		unregister_console(&kcons_info);
+		kcons_info.flags |= CON_CONSDEV;
+		register_console(&kcons_info);
+	}
+
 	return 0;
 }
 







More information about the fedora-extras-commits mailing list